Downloads · 30 days
18
1% of all-time downloads
MMG/xlm-roberta-base-sa-spanish
xlm-roberta-base-sa-spanish is a text classification model from MMG. Use it when you need a label for a piece of text. It is set up for transformers.
from transformers import AutoTokenizer, AutoModelForSequenceClassification, pipeline
Downloads · 30 days
18
1% of all-time downloads
All-time downloads
2.6K
Public
Parameters
278M
2.2 GB on disk
Likes
1
Public
Click a slice to open those files.
.bin1.1 GB · 50%
How the weights are stored.
F32278M · 100%
From the Hugging Face model README
from transformers import AutoTokenizer, AutoModelForSequenceClassification, pipeline
tokenizer = AutoTokenizer.from_pretrained("MMG/xlm-roberta-base-sa-spanish")
model = AutoModelForSequenceClassification.from_pretrained("MMG/xlm-roberta-base-sa-spanish")
pipe = pipeline("sentiment-analysis", model=model, tokenizer=tokenizer)
pipe(["Este bar es horrible", "Este bar es buenísimo"]))