tiedaar / longformer-content-global

huggingface.co
Total runs: 98
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Model's Last Updated: Juillet 03 2024
text-classification

Introduction of longformer-content-global

Model Details of longformer-content-global

Content Model

This is a longformer model with a regression head designed to predict the Content score of a summary. By default, longformers assign global attention to only the classification token with a sliding attention window which moves across the rest of the test. This model, however, is trained to assign global attention to the entire summary with a reduced sliding window. When performing inference using this model, you should make sure to assign a custom global attention mask as follows:

def inference(summary, source, model):
    combined = summary + tokenizer.sep_token + source
    context = tokenizer(combined)
    sep_index = context['input_ids'].index(2)
    context['global_attention_mask'] = [1]*(sep_index + 1) + [0]*(len(context['input_ids'])-(sep_index + 1))
    inputs = {}
    for key in context:
        inputs[key] = torch.tensor([context[key]])
    return float(model(**inputs)['logits'][0][0])
Corpus

It was trained on a corpus of 4,233 summaries of 101 sources compiled by Botarleanu et al. (2022). The summaries were graded by expert raters on 6 criteria: Details, Main Point, Cohesion, Paraphrasing, Objective Language, and Language Beyond the Text. A principle component analyis was used to reduce the dimensionality of the outcome variables to two.

  • Content includes Details, Main Point, Paraphrasing and Cohesion
  • Wording includes Objective Language, and Language Beyond the Text
Score

This model predicts the Content score. The model to predict the Wording score can be found here . The following diagram illustrates the model architecture:

model diagram

When providing input to the model, the summary and the source should be concatenated using the seperator token </s>. All summaries for 15 sources were withheld from the training set to use for testing. This allows the model to have access to both the summary and the source to provide more accurate scores. The model reported an R2 of 0.82 on the test set of summaries. content scatter

Contact
This model was developed by LEAR Lab at Vanderbilt University. For questions or comments about this model, please contact [email protected] .

Runs of tiedaar longformer-content-global on huggingface.co

98
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs

More Information About longformer-content-global huggingface.co Model

More longformer-content-global license Visit here:

https://choosealicense.com/licenses/apache-2.0

longformer-content-global huggingface.co

longformer-content-global huggingface.co is an AI model on huggingface.co that provides longformer-content-global's model effect (), which can be used instantly with this tiedaar longformer-content-global model. huggingface.co supports a free trial of the longformer-content-global model, and also provides paid use of the longformer-content-global. Support call longformer-content-global model through api, including Node.js, Python, http.

longformer-content-global huggingface.co Url

https://huggingface.co/tiedaar/longformer-content-global

tiedaar longformer-content-global online free

longformer-content-global huggingface.co is an online trial and call api platform, which integrates longformer-content-global's modeling effects, including api services, and provides a free online trial of longformer-content-global, you can try longformer-content-global online for free by clicking the link below.

tiedaar longformer-content-global online free url in huggingface.co:

https://huggingface.co/tiedaar/longformer-content-global

longformer-content-global install

longformer-content-global is an open source model from GitHub that offers a free installation service, and any user can find longformer-content-global on GitHub to install. At the same time, huggingface.co provides the effect of longformer-content-global install, users can directly use longformer-content-global installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

longformer-content-global install url in huggingface.co:

https://huggingface.co/tiedaar/longformer-content-global

Url of longformer-content-global

longformer-content-global huggingface.co Url

Provider of longformer-content-global huggingface.co

tiedaar
ORGANIZATIONS

Other API from tiedaar

huggingface.co

Total runs: 109
Run Growth: 0
Growth Rate: 0.00%
Updated:Mai 23 2024