AniMAntZeZo's picture
Update README.md
a2c73cf verified
|
raw
history blame
2.86 kB
---
license: apache-2.0
datasets:
- seara/ru_go_emotions
language:
- ru
base_model:
- cointegrated/rubert-tiny2
pipeline_tag: text-classification
---
# RuBert-tiny2-EmotionsDetected
This model was obtained by fine-tuning the model [RuBert-tiny2](https://huggingface.co/cointegrated/rubert-tiny2) on the dataset [ru-goemotions](https://github.com/searayeah/ru-goemotions) containing 28 emotions:
```
0: admiration (восхищение)
1: amusement (веселье)
2: anger (злость)
3: annoyance (раздражение)
4: approval (одобрение)
5: caring (забота)
6: confusion (непонимание)
7: curiosity (любопытство)
8: desire (желание)
9: disappointment (разочарование)
10: disapproval (неодобрение)
11: disgust (отвращение)
12: embarrassment (смущение)
13: excitement (возбуждение)
14: fear (страх)
15: gratitude (признательность)
16: grief (горе)
17: joy (радость)
18: love (любовь)
19: nervousness (нервозность)
20: optimism (оптимизм)
21: pride (гордость)
22: realization (осознание)
23: relief (облегчение)
24: remorse (раскаяние)
25: sadness (грусть)
26: surprise (удивление)
27: neutral (нейтральность)
```
At the moment, the model has been trained for 40 epochs with the following hyperparameters:
```
per_device_train_batch_size=16,
per_device_eval_batch_size=16,
num_train_epochs=1,
weight_decay=0.01,
learning_rate=1e-5,
save_total_limit=2,
load_best_model_at_end=True,
metric_for_best_model="f1",
greater_is_better=True
```
## Test
With the help of a well-known AI, a data set was compiled to verify the veracity of the model's predictions. Here's what happened:
**!The data for the test did not undergo a thorough manual inspection!**
![TrueEmotion](https://huggingface.co/AniMAntZeZo/RuBert-tiny2-EmotionsDetected/blob/main/RuBert-tiny2-EmotionsDetected/img/TrueEmotion.png)
![PredictedEmotion](https://huggingface.co/AniMAntZeZo/RuBert-tiny2-EmotionsDetected/blob/main/RuBert-tiny2-EmotionsDetected/img/PredictedEmotion.png)
![Comparison](https://huggingface.co/AniMAntZeZo/RuBert-tiny2-EmotionsDetected/blob/main/RuBert-tiny2-EmotionsDetected/img/Comparison.png)
It can be seen from the above that the model is able to distinguish between basic emotions, but has problems with specific ones (grief (горе), pride (гордость)), and also defines a neutral emotion more often than expected (most likely this happened due to inaccuracies in the dataset, since in ordinary speech you can "use" several emojis at once and most often people use the neutral one)
The model will be updated as improvements are made.