Downloads · 30 days
11
10% of all-time downloads
savalera/isear-emotion-classifier
isear-emotion-classifier is a text classification model from savalera. Use it when you need a label for a piece of text. The card lists the license as apache-2.0.
A BERT-based model that classifies text into seven basic emotions, fine-tuned on the ISEAR dataset.
Downloads · 30 days
11
10% of all-time downloads
All-time downloads
111
Public
Parameters
109M
438 MB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors438 MB · 100%
From the Hugging Face model README
A BERT-based model that classifies text into seven basic emotions, fine-tuned on the ISEAR dataset.
This model predicts one of seven emotions from textual descriptions:
| Label | Emotion | Definition |
|---|---|---|
| 0 | Joy | Happiness, pleasure, or satisfaction |
| 1 | Fear | Anxiety about threat or danger |
| 2 | Anger | Strong displeasure or antagonism |
| 3 | Sadness | Feeling of loss or disadvantage |
| 4 | Disgust | Aversion or revulsion |
| 5 | Shame | Embarrassment or humiliation |
| 6 | Guilt | Feeling responsible for wrongdoing |
Validation metrics:
Top performing emotions: Joy (92% F1), Fear (78% F1)
Most challenging: Shame (59% F1), Anger (60% F1)
from transformers import pipeline
classifier = pipeline("text-classification", model="savalera/isear-emotion-classifier")
result = classifier("I received a surprise visit from my best friend who I hadn't seen in years.")
print(result) # [{'label': 'joy', 'score': 0.9685400724411011}]
The model may struggle to distinguish between closely related emotions (especially shame/guilt), which reflects inherent challenges in emotion classification that even humans face.
This model analyzes textual descriptions to classify emotions. While it has many potential applications, users should consider these ethical guidelines:
Users should be aware of restrictions on emotion recognition systems and ensure any applications developed using this model comply with regulatory requirements. This model should not be used for commercial emotion categorization systems to infer emotions of a natural person.
If you use this model in your research, please cite it directly:
@misc{savalera2025isear,
title={ISEAR Emotion Classifier},
author={Savalera},
year={2025},
howpublished={\url{https://huggingface.co/savalera/isear-emotion-classifier}}
}
This model was trained on the ISEAR dataset, which was derived from research by Scherer & Wallbott (1994).
Apache License 2.0