luisespinosa
commited on
Commit
โข
856553b
1
Parent(s):
8bc605c
Update README.md
Browse files
README.md
CHANGED
@@ -22,9 +22,12 @@ This is a XLM-roBERTa-base model trained on ~198M tweets and finetuned for senti
|
|
22 |
from transformers import pipeline
|
23 |
model_path = "cardiffnlp/twitter-xlm-roberta-base-sentiment"
|
24 |
sentiment_task = pipeline("sentiment-analysis", model=model_path, tokenizer=model_path)
|
25 |
-
|
26 |
sentiment_task("T'estimo!")
|
27 |
```
|
|
|
|
|
|
|
|
|
28 |
|
29 |
## Full classification example
|
30 |
|
|
|
22 |
from transformers import pipeline
|
23 |
model_path = "cardiffnlp/twitter-xlm-roberta-base-sentiment"
|
24 |
sentiment_task = pipeline("sentiment-analysis", model=model_path, tokenizer=model_path)
|
|
|
25 |
sentiment_task("T'estimo!")
|
26 |
```
|
27 |
+
Output:
|
28 |
+
```
|
29 |
+
[{'label': 'LABEL_2', 'score': 0.6600581407546997}]
|
30 |
+
```
|
31 |
|
32 |
## Full classification example
|
33 |
|