antypasd commited on
Commit
1c8345f
·
1 Parent(s): c3c1ff5

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +14 -0
README.md ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # cardiffnlp/twitter-roberta-base-latest-tempo-wic
2
+
3
+ This is a [RoBERTa-base](https://huggingface.co/cardiffnlp/twitter-roberta-base-2022-154m) model fine-tuned on [tempo-wic](https://huggingface.co/datasets/cardiffnlp/super_tweeteval).
4
+
5
+ ```python
6
+ from transformers import pipeline
7
+ text_1 = "We don't like the search and frisk so this bitch in neutral"
8
+ 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"
9
+ text_input = f"{text_1}</s>{text_2}"
10
+
11
+ pipe = pipeline('text-classification', model="cardiffnlp/twitter-roberta-base-latest-tempo-wic")
12
+ pipe(text_input)
13
+ >> [{'label': 'yes', 'score': 0.9994196891784668}]
14
+ ```