Views
No views yet
1from transformers import pipeline
2text_1 = "'In this bullpen, you should be able to ask why and understand why we do the things we do.' @Trisha_Ford 😍 #pitchstock2020 @user"
3text_2 = "Castro needs to be the last bullpen guy to pitch."
4target = "bullpen"
5text_input = f"{text_1}</s>{text_2}</s>{target}"
6
7pipe = pipeline('text-classification', model="cardiffnlp/twitter-roberta-base-tempo-wic-latest")
8pipe(text_input)
9>> [{'label': 'yes', 'score': 0.9964596629142761}]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}