antypasd commited on
Commit
56aca46
·
1 Parent(s): b2c2937

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-tweet-sentiment
2
+
3
+ This is a [RoBERTa-base](https://huggingface.co/cardiffnlp/twitter-roberta-base-2022-154m) model fine-tuned on [tweet_sentiment](https://huggingface.co/datasets/cardiffnlp/super_tweeteval).
4
+
5
+ ```python
6
+ from transformers import pipeline
7
+ text= 'If I make a game as a #windows10 Universal App. Will #xboxone owners be able to download and play it in November? @user @microsoft'
8
+ target = "@microsoft"
9
+ text_input = f"{text} </s> {target}"
10
+
11
+ pipe = pipeline('text-classification', model="cardiffnlp/twitter-roberta-base-latest-tweet-sentiment")
12
+ pipe(text)
13
+ >> [{'label': 'negative or neutral', 'score': 0.9601162672042847}]
14
+ ```