r1char9 commited on
Commit
c5a75f2
1 Parent(s): eeb80d8

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +105 -0
README.md ADDED
@@ -0,0 +1,105 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ language:
4
+ - ru
5
+ metrics:
6
+ - f1
7
+ - roc_auc
8
+ - precision
9
+ - recall
10
+ pipeline_tag: text-classification
11
+ tags:
12
+ - sentiment-analysis
13
+ - multi-label-classification
14
+ - sentiment analysis
15
+ - rubert
16
+ - sentiment
17
+ - bert
18
+ - tiny
19
+ - russian
20
+ - multilabel
21
+ - classification
22
+ - emotion-classification
23
+ - emotion-recognition
24
+ - emotion
25
+ datasets:
26
+ - seara/ru_go_emotions
27
+ ---
28
+
29
+ This is [RuBERT-tiny2](https://huggingface.co/cointegrated/rubert-tiny2) model fine-tuned for __emotion classification__ of short __Russian__ texts.
30
+ The task is a __multi-label classification__ with the following labels:
31
+
32
+ ```yaml
33
+ 0: admiration
34
+ 1: amusement
35
+ 2: anger
36
+ 3: annoyance
37
+ 4: approval
38
+ 5: caring
39
+ 6: confusion
40
+ 7: curiosity
41
+ 8: desire
42
+ 9: disappointment
43
+ 10: disapproval
44
+ 11: disgust
45
+ 12: embarrassment
46
+ 13: excitement
47
+ 14: fear
48
+ 15: gratitude
49
+ 16: grief
50
+ 17: joy
51
+ 18: love
52
+ 19: nervousness
53
+ 20: optimism
54
+ 21: pride
55
+ 22: realization
56
+ 23: relief
57
+ 24: remorse
58
+ 25: sadness
59
+ 26: surprise
60
+ 27: neutral
61
+ ```
62
+
63
+ Label to Russian label:
64
+
65
+ ```yaml
66
+ admiration: восхищение
67
+ amusement: веселье
68
+ anger: злость
69
+ annoyance: раздражение
70
+ approval: одобрение
71
+ caring: забота
72
+ confusion: непонимание
73
+ curiosity: любопытство
74
+ desire: желание
75
+ disappointment: разочарование
76
+ disapproval: неодобрение
77
+ disgust: отвращение
78
+ embarrassment: смущение
79
+ excitement: возбуждение
80
+ fear: страх
81
+ gratitude: признательность
82
+ grief: горе
83
+ joy: радость
84
+ love: любовь
85
+ nervousness: нервозность
86
+ optimism: оптимизм
87
+ pride: гордость
88
+ realization: осознание
89
+ relief: облегчение
90
+ remorse: раскаяние
91
+ sadness: грусть
92
+ surprise: удивление
93
+ neutral: нейтральность
94
+ ```
95
+
96
+ ## Usage
97
+
98
+ ```python
99
+ from transformers import pipeline
100
+ model = pipeline(model="r1char9/rubert-tiny2-ru-go-emotions")
101
+ model("Привет, ты мне нравишься!")
102
+ # [{'label': 'love', 'score': 0.5955629944801331}]
103
+ model('Hello, I love you.')
104
+ # [{'label': 'love', 'score': 0.911257266998291}]
105
+ ```