alex2awesome / stance-detection-t5

huggingface.co
Total runs: 8
24-hour runs: -2
7-day runs: -6
30-day runs: -39
Model's Last Updated: January 04 2024
text-generation

Introduction of stance-detection-t5

Model Details of stance-detection-t5

Stance detection model distilled from a news dataset label by a larger model. The larger model was trained on a combination of stance datasets in the literature:

FNC-1 (Pomerleau and Rao, 2017), Perspectrum (Chen et al., 2019), ARC (Habernal et al., 2017), Emergent (Ferreira and Vlachos, 2016) NewsClaims (Reddy et al., 2021)7.

Achieves a .0.5712643678160919 f1-score on hand labeled indomain news data

To run:

    from transformers import AutoTokenizer, T5ForConditionalGeneration
    model = T5ForConditionalGeneration.from_pretrained('alex2awesome/stance-detection-t5')

    tokenizer = AutoTokenizer.from_pretrained(model_name_or_path)
    tokenizer_with_prefix_space = AutoTokenizer.from_pretrained(model_name_or_path, add_prefix_space=True)
    def get_tokens_as_tuple(word):
        return tuple(tokenizer_with_prefix_space([word], add_special_tokens=False).input_ids[0])

    input_ids = tokenizer(text, return_tensors="pt").input_ids
    y_pred_gen_output = model.generate(
        input_ids,
        renormalize_logits=True, 
        sequence_bias= {
            get_tokens_as_tuple('__Affirm__'):     0.143841,
            get_tokens_as_tuple('__Discuss__'):   -0.294732,
            get_tokens_as_tuple('__Neutral__'):   -0.103820,
            get_tokens_as_tuple('__Refute__'):     0.637734,
        },
    )

You can tweak the class weights yourself if you want.

Runs of alex2awesome stance-detection-t5 on huggingface.co

8
Total runs
-2
24-hour runs
-2
3-day runs
-6
7-day runs
-39
30-day runs

More Information About stance-detection-t5 huggingface.co Model

More stance-detection-t5 license Visit here:

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

stance-detection-t5 huggingface.co

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

stance-detection-t5 huggingface.co Url

https://huggingface.co/alex2awesome/stance-detection-t5

alex2awesome stance-detection-t5 online free

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

alex2awesome stance-detection-t5 online free url in huggingface.co:

https://huggingface.co/alex2awesome/stance-detection-t5

stance-detection-t5 install

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

stance-detection-t5 install url in huggingface.co:

https://huggingface.co/alex2awesome/stance-detection-t5

Url of stance-detection-t5

stance-detection-t5 huggingface.co Url

Provider of stance-detection-t5 huggingface.co

alex2awesome
ORGANIZATIONS

Other API from alex2awesome