Views
No views yet
"id2label": {
"0": "strongly negative",
"1": "negative",
"2": "negative or neutral",
"3": "positive",
"4": "strongly positive"
}
1from transformers import pipeline
2text= 'If I make a game as a #windows10 Universal App. Will #xboxone owners be able to download and play it in November? @user @microsoft'
3target = "@microsoft"
4text_input = f"{text} </s> {target}"
5
6pipe = pipeline('text-classification', model="cardiffnlp/twitter-roberta-large-topic-sentiment-latest")
7pipe(text)
8>> [{'label': 'negative or neutral', 'score': 0.8927537798881531}]1@inproceedings{antypas2023supertweeteval,
2 title={SuperTweetEval: A Challenging, Unified and Heterogeneous Benchmark for Social Media NLP Research},
3 author={Dimosthenis Antypas and Asahi Ushio and Francesco Barbieri and Leonardo Neves and Kiamehr Rezaee and Luis Espinosa-Anke and Jiaxin Pei and Jose Camacho-Collados},
4 booktitle={Findings of the Association for Computational Linguistics: EMNLP 2023},
5 year={2023}
6}