Downloads · 30 days
14
1% of all-time downloads
mrm8488/electricidad-small-finetuned-muchocine
electricidad-small-finetuned-muchocine is a text classification model from mrm8488. Use it when you need a label for a piece of text. It is set up for transformers.
Electricidad small fine-tuned on muchocine dataset for Spanish Sentiment Analysis downstream task.
Downloads · 30 days
14
1% of all-time downloads
All-time downloads
1.3K
Public
Repo size
109 MB
Likes
2
Public
Click a slice to open those files.
.bin54.5 MB · 100%
From the Hugging Face model README
Electricidad small fine-tuned on muchocine dataset for Spanish Sentiment Analysis downstream task.
pipelines 🚀# pip install -q transformers
from transformers import AutoModelForSequenceClassification, AutoTokenizer
CHKPT = 'mrm8488/electricidad-small-finetuned-muchocine'
model = AutoModelForSequenceClassification.from_pretrained(CHKPT)
tokenizer = AutoTokenizer.from_pretrained(CHKPT)
from transformers import pipeline
classifier = pipeline('sentiment-analysis', model=model, tokenizer=tokenizer)
# It ranks your comments between 1 and 5 (stars)
classifier('Es una obra mestra. Brillante.')
classifier('Es una película muy buena.')
classifier('Una buena película, sin más.')
classifier('Esperaba mucho más.')
classifier('He tirado el dinero. Una basura. Vergonzoso.')