Downloads · 30 days
11
15% of all-time downloads
JuhiSaxena2002/opinion-mining
opinion-mining is a text classification model from JuhiSaxena2002. Use it when you need a label for a piece of text. The card lists the license as apache-2.0.
A fine-tuned DistilBERT model for classifying product reviews as Positive or Negative.
Downloads · 30 days
11
15% of all-time downloads
All-time downloads
72
Public
Parameters
67M
804 MB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors268 MB · 100%
From the Hugging Face model README
A fine-tuned DistilBERT model for classifying product reviews as Positive or Negative.
Fine-tuned on the Amazon Polarity dataset with 5,000 training samples.
| Metric | Score |
|---|---|
| Accuracy | 92.10% |
| F1 Score | 0.9210 |
from transformers import pipeline
classifier = pipeline("text-classification", model="JuhiSaxena2002/opinion-mining")
result = classifier("This product is absolutely amazing! Best purchase ever.")
print(result) # [{'label': 'POSITIVE', 'score': 0.99}]
result = classifier("Terrible quality. Broke after one day. Very disappointed.")
print(result) # [{'label': 'NEGATIVE', 'score': 0.98}]
distilbert-base-uncasedPOSITIVE, NEGATIVEBuilt and fine-tuned by JuhiSaxena2002