antypasd's picture
Create README.md
1c8345f
|
raw
history blame
764 Bytes

cardiffnlp/twitter-roberta-base-latest-tempo-wic

This is a RoBERTa-base model fine-tuned on tempo-wic.

from transformers import pipeline
text_1 = "We don't like the search and frisk so this bitch in neutral"
text_2 = "who the fuck is listening to mike bloomberg railing in 'bernie bros'? mr stop and frisk, literally turned the police on occupy wall street, rnc protestors, and new york muslims. get the fuck out"
text_input = f"{text_1}</s>{text_2}"

pipe = pipeline('text-classification', model="cardiffnlp/twitter-roberta-base-latest-tempo-wic")
pipe(text_input)
>> [{'label': 'yes', 'score': 0.9994196891784668}]