Downloads · 30 days
17
15% of all-time downloads
Nav772/distilbert-amazon-reviews-5star
distilbert-amazon-reviews-5star is a text classification model from Nav772. Use it when you need a label for a piece of text. The card lists the license as mit.
This model is a fine-tuned version of distilbert-base-uncased for 5-class sentiment classification, predicting star ratings (1-5) from Amazon product reviews.
Downloads · 30 days
17
15% of all-time downloads
All-time downloads
115
Public
Parameters
67M
268 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors268 MB · 100%
From the Hugging Face model README
This model is a fine-tuned version of distilbert-base-uncased for 5-class sentiment classification, predicting star ratings (1-5) from Amazon product reviews.
Note: 55% accuracy on a 5-class problem is 2.75x better than random chance (20%). The high off-by-one accuracy (92%) indicates the model rarely makes catastrophic errors.
from transformers import pipeline
classifier = pipeline("text-classification", model="Nav772/distilbert-amazon-reviews-5star")
result = classifier("This product exceeded my expectations! Great quality.")
print(result)