dair-ai/emotion
Viewer • Updated • 437k • 33.7k • 444
This model is a fine-tuned version of the ALBERT-Large model designed for emotion sentiment classification, capable of detecting six different emotional categories in text: Anger, Disgust, Fear, Happiness, Sadness, and Surprise. It achieves high performance on sentiment classification tasks, making it suitable for a variety of real-world applications such as emotion detection, content moderation, and sentiment analysis.
| Metric | Value |
|---|---|
| Evaluation Loss | 0.08795 |
| Evaluation Accuracy | 94.15% |
| Evaluation Precision | 94.90% |
| Evaluation Recall | 94.15% |
| Evaluation F1-Score | 94.25% |
Use the code below to get started with the model.
from transformers import pipeline
emotion_classifier = pipeline("text-classification", model="SandeepVvigneshwar/sentiment-classification-albert-large-v2")
text = "Hello! How are you?"
emotion = emotion_classifier(text)
print(emotion)
transformers libraryBase model
albert/albert-large-v2