Downloads · 30 days
9
10% of all-time downloads
c-ram/roberta-amazon-reviews-sentiment
roberta-amazon-reviews-sentiment is a text classification model from c-ram. Use it when you need a label for a piece of text. The card lists the license as mit.
Fine-tuned version of roberta-base for 3-class sentiment classification (negative / neutral / positive) on Amazon product reviews.
Downloads · 30 days
9
10% of all-time downloads
All-time downloads
89
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
Fine-tuned version of roberta-base for 3-class sentiment classification (negative / neutral / positive) on Amazon product reviews.
Evaluated on a held-out test set of 1,086 reviews:
| Class | Precision | Recall | F1-Score | Support |
|---|---|---|---|---|
| Negative | 0.84 | 0.85 | 0.85 | 361 |
| Neutral | 0.77 | 0.71 | 0.74 | 350 |
| Positive | 0.86 | 0.91 | 0.89 | 375 |
| Macro avg | 0.82 | 0.82 | 0.82 | 1086 |
| Weighted avg | 0.82 | 0.83 | 0.83 | 1086 |
Overall accuracy: 83%
from transformers import pipeline
classifier = pipeline("text-classification", model="c-ram/roberta-amazon-reviews-sentiment")
classifier("This product exceeded my expectations!")