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"]))

Downloads last month
31
Safetensors
Model size
278M params
Tensor type
I64
·
F32
·
Inference Examples
This model does not have enough activity to be deployed to Inference API (serverless) yet. Increase its social visibility and check back later, or deploy to Inference Endpoints (dedicated) instead.