Spanish Emotion Classification
Usage
Does not work. Probably because RoBERTa Base BNE from PlanTL-GOB-ES is deprecated.
from transformers import pipeline
pipe = pipeline("text-classification",
model = "/tmp/emotions/marIA/",
tokenizer = "PlanTL-GOB-ES/roberta-base-bne", # NOTE Do not delete this
padding = True,
truncation = "longest_first",
top_k = None,
)
print(list(pipe("estoy triste")))
print(list(pipe("estoy triste " * 1024)))
Output
Error. No output.
Dependencies
- Python 3.10.15
- Transformers 4.50.3
- Torch 2.6.0
requirements.txt:
transformers==4.50.3
torch==2.6.0
- Downloads last month
- 6
Inference Providers
NEW
This model isn't deployed by any Inference Provider.
๐
Ask for provider support