Views
No views yet
| 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 |
top_k=None and function_to_apply='sigmoid' to get probabilities for all classes with a simple callable API.1from transformers import pipeline
2
3model_path = "catgamer1/mdeberta-ru-en-emotion"
4
5classifier = pipeline(
6 "text-classification",
7 model=model_path,
8 tokenizer=model_path,
9 top_k=None,
10 function_to_apply='sigmoid'
11)
12
13sentence = "What a relief, the tire is fine!"
14result = classifier(sentence)