Downloads · 30 days
20
10% of all-time downloads
Bduenas/sentiate-sentiment-classifier
sentiate-sentiment-classifier is a text classification model from Bduenas. Use it when you need a label for a piece of text. The card lists the license as apache-2.0.
sentiate-sentiment-classifier is a fine-tuned RoBERTa model built to classify Amazon Electronics product reviews into one of four sentiment classes:
Downloads · 30 days
20
10% of all-time downloads
All-time downloads
192
Public
Parameters
125M
499 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors499 MB · 99%
From the Hugging Face model README
sentiate-sentiment-classifier is a fine-tuned RoBERTa model built to classify Amazon Electronics product reviews into one of four sentiment classes:
roberta-basefrom transformers import AutoTokenizer, AutoModelForSequenceClassification
model = AutoModelForSequenceClassification.from_pretrained("your-username/sentiate-sentiment-classifier")
tokenizer = AutoTokenizer.from_pretrained("your-username/sentiate-sentiment-classifier")
text = "This charger broke after one week. I'm disappointed."
inputs = tokenizer(text, return_tensors="pt", truncation=True, padding=True)
outputs = model(**inputs)
sentiment = outputs.logits.argmax().item()