Downloads · 30 days
9
16% of all-time downloads
catgamer1/mdeberta-ru-en-emotion
mdeberta-ru-en-emotion is a text classification model from catgamer1. Use it when you need a label for a piece of text. The card lists the license as mit.
This model is a fine-tuned version of microsoft/mdeberta-v3-base for multi-label emotion recognition in social media data. It was trained to handle 6 Ekman's emotions (anger, disgust, fear, joy, sadness, surprise) and…
Downloads · 30 days
9
16% of all-time downloads
All-time downloads
57
Public
Parameters
279M
574 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors558 MB · 97%
From the Hugging Face model README
This model is a fine-tuned version of microsoft/mdeberta-v3-base for multi-label emotion recognition in social media data. It was trained to handle 6 Ekman's emotions (anger, disgust, fear, joy, sadness, surprise) and a neutral category. It supports both Russian and English texts.
Public emotion recognition datasets were used:
Training was done with the following:
Model achieved 0.9291 macro AUC and 0.6957 macro F1 for 7-class multilabel emotion recognition on the combined GoEmotion + CEDR + BRIGHTER set. F1 was calculated with validation-optimal thresholds. Per-emotion breakdown is shown below:
| Emotion | AUC | F1 |
|---|---|---|
| Anger | 0.9113 | 0.6198 |
| Fear | 0.9505 | 0.7717 |
| Joy | 0.9376 | 0.7937 |
| Sadness | 0.9245 | 0.7043 |
| Disgust | 0.9725 | 0.6442 |
| Surprise | 0.9048 | 0.6432 |
| Neutral | 0.9024 | 0.6931 |
You can use pipeline with top_k=None and function_to_apply='sigmoid' to get probabilities for all classes with a simple callable API.
from transformers import pipeline
model_path = "catgamer1/mdeberta-ru-en-emotion"
classifier = pipeline(
"text-classification",
model=model_path,
tokenizer=model_path,
top_k=None,
function_to_apply='sigmoid'
)
sentence = "What a relief, the tire is fine!"
result = classifier(sentence)