Downloads · 30 days
13
0% of all-time downloads
mrm8488/electricidad-base-finetuned-muchocine
electricidad-base-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 base fine-tuned on muchocine dataset for Spanish Sentiment Analysis downstream task.
Downloads · 30 days
13
0% of all-time downloads
All-time downloads
3.9K
Public
Parameters
110M
879 MB on disk
Likes
0
Public
Click a slice to open those files.
.bin440 MB · 50%
How the weights are stored.
F32110M · 100%
From the Hugging Face model README
Electricidad base fine-tuned on muchocine dataset for Spanish Sentiment Analysis downstream task.
pipelines 🚀# pip install -q transformers
from transformers import AutoModelForSequenceClassification, AutoTokenizer
CHKPT = 'mrm8488/electricidad-base-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.')
# [{'label': '5', 'score': 0.9498381614685059}]
classifier('Es una película muy buena.')
# {'label': '4', 'score': 0.9277070760726929}]
classifier('Una buena película, sin más.')
# [{'label': '3', 'score': 0.9768431782722473}]
classifier('Esperaba mucho más.')
# [{'label': '2', 'score': 0.7063605189323425}]
classifier('He tirado el dinero. Una basura. Vergonzoso.')
# [{'label': '1', 'score': 0.8494752049446106}]