CoolFace
Modelpublic

cardiffnlp/twitter-roberta-base-dec2021-tweet-topic-single-all

sourceHugging Faceupdated 4y agoView on Hugging Face
3likes90downloads
Model Card

cardiffnlp/twitter-roberta-base-dec2021-tweet-topic-single-all

This model is a fine-tuned version of cardiffnlp/twitter-roberta-base-dec2021 on the tweet_topic_single. This model is fine-tuned on train_all split and validated on test_2021 split of tweettopic. Fine-tuning script can be found [here](https://huggingface.co/datasets/cardiffnlp/tweettopicsingle/blob/main/lmfinetuning.py). It achieves the following results on the test_2021 set:

  • —F1 (micro): 0.8948611931482575
  • —F1 (macro): 0.800952410284692
  • —Accuracy: 0.8948611931482575

Usage

python
from transformers import pipeline

pipe = pipeline("text-classification", "cardiffnlp/twitter-roberta-base-dec2021-tweet-topic-single-all")  
topic = pipe("Love to take night time bike rides at the jersey shore. Seaside Heights boardwalk. Beautiful weather. Wishing everyone a safe Labor Day weekend in the US.")
print(topic)

Reference


@inproceedings{dimosthenis-etal-2022-twitter,
    title = "{T}witter {T}opic {C}lassification",
    author = "Antypas, Dimosthenis  and
    Ushio, Asahi  and
    Camacho-Collados, Jose  and
    Neves, Leonardo  and
    Silva, Vitor  and
    Barbieri, Francesco",
    booktitle = "Proceedings of the 29th International Conference on Computational Linguistics",
    month = oct,
    year = "2022",
    address = "Gyeongju, Republic of Korea",
    publisher = "International Committee on Computational Linguistics"
}