Downloads · 30 days
0
Go-Raw/final-sentiment-model-go-raw
final-sentiment-model-go-raw is a text classification model from Go-Raw. Use it when you need a label for a piece of text. The card lists the license as apache-2.0.
This is a fine-tuned roberta-base model for multi-class sentiment classification. It was trained on a custom dataset of ~240k examples with 3 sentiment classes: - 0: Negative - 1: Positive - 2: Neutral
Downloads · 30 days
0
Access
Public
Updated Jul 7, 2025
Repo size
—
Likes
1
Public
Click a slice to open those files.
.md1.9 KB · 55%
From the Hugging Face model README
This is a fine-tuned roberta-base model for multi-class sentiment classification.
It was trained on a custom dataset of ~240k examples with 3 sentiment classes:
The model shows significant improvement over the base model on this task.
roberta-base| Metric | Base Model | Fine-tuned Model |
|---|---|---|
| Accuracy | 34.1% | 88.1% |
| Macro F1 | 24.3% | 87.5% |
| Weighted F1 | 27.1% | 88.1% |
| Class | Precision | Recall | F1-score |
|---|---|---|---|
| 0 (Negative) | 85.3% | 83.1% | 84.2% |
| 1 (Neutral) | 91.4% | 89.8% | 90.5% |
| 2 (Positive) | 86.0% | 89.4% | 87.7% |
from transformers import AutoModelForSequenceClassification, AutoTokenizer
model = AutoModelForSequenceClassification.from_pretrained("Go-Raw/final-sentiment-model-go-raw")
tokenizer = AutoTokenizer.from_pretrained("Go-Raw/final-sentiment-model-go-raw")
text = "I absolutely love this!"
inputs = tokenizer(text, return_tensors="pt")
outputs = model(**inputs)
predicted_class = outputs.logits.argmax().item()
print(predicted_class)