Update README.md
Browse files
README.md
CHANGED
@@ -3,6 +3,9 @@ language:
|
|
3 |
- es
|
4 |
pipeline_tag: text-classification
|
5 |
---
|
6 |
-
from transformers import pipeline
|
|
|
|
|
|
|
7 |
pipe = pipeline("text-classification", model=model, tokenizer=tokenizer)
|
8 |
pipe(["Este bar es horrible", "Este bar es buenísimo"]))
|
|
|
3 |
- es
|
4 |
pipeline_tag: text-classification
|
5 |
---
|
6 |
+
from transformers import AutoTokenizer, AutoModelForSequenceClassification, pipeline
|
7 |
+
|
8 |
+
tokenizer = AutoTokenizer.from_pretrained("MMG/xlm-roberta-base-sa-spanish")
|
9 |
+
model = AutoModelForSequenceClassification.from_pretrained("MMG/xlm-roberta-base-sa-spanish")
|
10 |
pipe = pipeline("text-classification", model=model, tokenizer=tokenizer)
|
11 |
pipe(["Este bar es horrible", "Este bar es buenísimo"]))
|