Downloads · 30 days
92
17% of all-time downloads
anggars/xlm-emotion
xlm-emotion is a text classification model from anggars. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as mit.
This model is a fine-tuned version of xlm-roberta-base for Emotion Classification (28 labels based on the GoEmotions taxonomy). It has been architecturally recalibrated using a Hybrid Corpus to recognize complex emoti…
Downloads · 30 days
92
17% of all-time downloads
All-time downloads
550
Public
Parameters
278M
1.1 GB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors1.1 GB · 98%
From the Hugging Face model README
This model is a fine-tuned version of xlm-roberta-base for Emotion Classification (28 labels based on the GoEmotions taxonomy). It has been architecturally recalibrated using a Hybrid Corpus to recognize complex emotional nuances, poetic hyperboles, and depressive metaphors specifically found in Midwest Emo and Math Rock lyrical styles.
anggars/mbti-emotion (Hybrid Corpus: 120,060 total rows. Stratified split: 96,048 train / 24,012 eval)Initial iterations of this model were trained purely on synthetic narrative data, which caused severe Domain Shift when predicting real-world music lyrics. To mitigate this blind spot, a Hybrid Corpus Integration was executed. The model was forced to adapt to organic lyrics scraped directly from Genius.com and augmented with high-quality, balanced synthetic data generated via Gemma-2B-IT.
The integration process successfully recalibrated the latent space, forcing the model to understand poetic contexts and lyrical structures. The aggressive weight decay (0.05) ensures the model does not overconfidently hallucinate on ambiguous lyrics, resulting in highly generalized, real-world zero-shot capabilities.
The following results were achieved on the evaluation set (24,012 rows) during the 3-epoch training process:
| Epoch | Training Loss | Validation Loss | Accuracy | F1 Macro |
|---|---|---|---|---|
| 1.0 | 0.2403 | 0.2086 | 0.9347 | 0.9339 |
| 2.0 | 0.1403 | 0.1837 | 0.9480 | 0.9475 |
| 3.0 | 0.1005 | 0.1888 | 0.9546 | 0.9544 |
This model is explicitly designed for the backend NLP engine of music analytics dashboards, predicting emotions directly from raw song lyrics. Limitations: Because the model has been highly adapted to read poetic, dramatic, and emotionally dense lyrical structures, its performance may degrade if deployed on standard formal documents, legal text, or casual short-form social media chats.