Text Classification
Transformers
PyTorch
TensorFlow
JAX
Safetensors
Russian
bert
sentiment-analysis
multi-label-classification
sentiment analysis
rubert
sentiment
tiny
russian
multilabel
classification
emotion-classification
emotion-recognition
emotion
emotion-detection
text-embeddings-inference
Instructions to use seara/rubert-tiny2-russian-emotion-detection-cedr with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use seara/rubert-tiny2-russian-emotion-detection-cedr with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="seara/rubert-tiny2-russian-emotion-detection-cedr")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("seara/rubert-tiny2-russian-emotion-detection-cedr") model = AutoModelForSequenceClassification.from_pretrained("seara/rubert-tiny2-russian-emotion-detection-cedr", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -9,14 +9,18 @@ metrics:
|
|
| 9 |
- recall
|
| 10 |
pipeline_tag: text-classification
|
| 11 |
tags:
|
| 12 |
-
- rubert
|
| 13 |
-
- emotion
|
| 14 |
-
- sentiment
|
| 15 |
- emotion-classification
|
| 16 |
- emotion-recognition
|
|
|
|
|
|
|
| 17 |
- russian
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
- classification
|
| 19 |
- multilabel
|
|
|
|
| 20 |
datasets:
|
| 21 |
- cedr
|
| 22 |
---
|
|
@@ -33,6 +37,17 @@ The task is a __multi-label classification__ with the following labels:
|
|
| 33 |
5: anger
|
| 34 |
```
|
| 35 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
## Usage
|
| 37 |
|
| 38 |
```python
|
|
@@ -63,10 +78,10 @@ num_epochs: 30
|
|
| 63 |
|
| 64 |
## Eval results (on test split)
|
| 65 |
|
| 66 |
-
| |no_emotion|joy |sadness|surprise|fear |anger
|
| 67 |
-
|---------|----------|------|-------|--------|-------|-----
|
| 68 |
-
|precision|0.
|
| 69 |
-
|recall |0.
|
| 70 |
-
|f1-score |0.
|
| 71 |
-
|
|
| 72 |
-
|
|
|
|
|
| 9 |
- recall
|
| 10 |
pipeline_tag: text-classification
|
| 11 |
tags:
|
|
|
|
|
|
|
|
|
|
| 12 |
- emotion-classification
|
| 13 |
- emotion-recognition
|
| 14 |
+
- multi-label-classification
|
| 15 |
+
- emotion
|
| 16 |
- russian
|
| 17 |
+
- rubert
|
| 18 |
+
- tiny
|
| 19 |
+
- sentiment
|
| 20 |
+
- sentiment-analysis
|
| 21 |
- classification
|
| 22 |
- multilabel
|
| 23 |
+
- bert
|
| 24 |
datasets:
|
| 25 |
- cedr
|
| 26 |
---
|
|
|
|
| 37 |
5: anger
|
| 38 |
```
|
| 39 |
|
| 40 |
+
Label to Russian label:
|
| 41 |
+
|
| 42 |
+
```yaml
|
| 43 |
+
no_emotion: нет эмоции
|
| 44 |
+
joy: радость
|
| 45 |
+
sadness: грусть
|
| 46 |
+
surprise: удивление
|
| 47 |
+
fear: страх
|
| 48 |
+
anger: злость
|
| 49 |
+
```
|
| 50 |
+
|
| 51 |
## Usage
|
| 52 |
|
| 53 |
```python
|
|
|
|
| 78 |
|
| 79 |
## Eval results (on test split)
|
| 80 |
|
| 81 |
+
| |no_emotion|joy |sadness|surprise|fear |anger|micro avg|macro avg|weighted avg|
|
| 82 |
+
|---------|----------|------|-------|--------|-------|-----|---------|---------|------------|
|
| 83 |
+
|precision|0.82 |0.84 |0.84 |0.79 |0.78 |0.55 |0.81 |0.77 |0.8 |
|
| 84 |
+
|recall |0.84 |0.83 |0.85 |0.66 |0.67 |0.33 |0.78 |0.7 |0.78 |
|
| 85 |
+
|f1-score |0.83 |0.83 |0.84 |0.72 |0.72 |0.41 |0.79 |0.73 |0.79 |
|
| 86 |
+
|auc-roc |0.92 |0.96 |0.96 |0.91 |0.91 |0.77 |0.94 |0.91 |0.93 |
|
| 87 |
+
|support |734 |353 |379 |170 |141 |125 |1902 |1902 |1902 |
|