SetFit/amazon_reviews_multi_en
Viewer • Updated • 210k • 1.23k • 7
This model is a fine-tuned version of roberta-base for 5-class sentiment classification, predicting star ratings (1-5) from Amazon product reviews.
This model was trained as part of a model comparison study:
| Model | Parameters | Accuracy | Off-by-one Accuracy | Inference Speed |
|---|---|---|---|---|
| DistilBERT | 67M | 54.95% | 92.45% | 1.83x faster |
| RoBERTa | 125M | 59.90% | 95.10% | Baseline |
RoBERTa provides ~5 percentage points higher accuracy at the cost of slower inference.
from transformers import pipeline
classifier = pipeline("text-classification", model="Nav772/roberta-amazon-reviews-5star")
result = classifier("This product exceeded my expectations! Great quality.")
print(result)
Try the model comparison demo: sentiment-model-comparison