File size: 1,536 Bytes
95dd1e3 19fe807 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | ---
license: apache-2.0
language: en
tags:
- sentiment
- roberta
- amazon
- 4-class
- text-classification
datasets:
- amazon_polarity
metrics:
- accuracy
- f1
pipeline_tag: text-classification
base_model: roberta-base
---
# Sentiate: Amazon Review Sentiment Classifier (4-Class, RoBERTa)
`sentiate-sentiment-classifier` is a fine-tuned RoBERTa model built to classify **Amazon Electronics product reviews** into one of **four sentiment classes**:
- **0 โ Low Sentiment** (strongly negative)
- **1 โ Medium-Low** (somewhat negative/mixed)
- **2 โ Medium-High** (somewhat positive)
- **3 โ High Sentiment** (strongly positive)
## ๐ Use Cases
- eCommerce product research
- Dropshipping product analysis
- Brand sentiment tracking
- Batch review scoring at scale
## ๐ง Model Details
- Base: `roberta-base`
- Trained on: 394,000 Amazon Electronics reviews
- Framework: Hugging Face Transformers
- Classes: 4-class multi-class sentiment
- Evaluation Accuracy: ~81.9%
- F1 Score: ~0.80 (weighted)
## ๐ How to Use
```python
from 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()
|