dair-ai/emotion
Viewer • Updated • 437k • 34.9k • 443
This model fine-tunes DistilBERT for multi-class emotion classification on the dair-ai/emotion dataset.
The model is designed to classify text into one of six emotions: sadness, joy, love, anger, fear, or surprise.
It can be used in applications requiring emotional analysis in English text.
dair-ai/emotion (16,000 examples)3e-53240.01| Training Loss | Epoch | Step | Validation Loss | Val. Accuracy |
|---|---|---|---|---|
| 0.5164 | 1.0 | 500 | 0.1887 | 0.9275 |
| 0.1464 | 2.0 | 1000 | 0.1487 | 0.9345 |
| 0.0994 | 3.0 | 1500 | 0.1389 | 0.94 |
| 0.0701 | 4.0 | 2000 | 0.1479 | 0.94 |
from transformers import pipeline
classifier = pipeline("text-classification", model="Zoopa/emotion-classification-model")
text = "I am so happy today!"
result = classifier(text)
print(result)