Update README.md
Browse files
README.md
CHANGED
@@ -4,11 +4,52 @@ datasets:
|
|
4 |
language:
|
5 |
- en
|
6 |
library_name: transformers
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
---
|
8 |
-
# Metrics
|
9 |
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
|
|
|
4 |
language:
|
5 |
- en
|
6 |
library_name: transformers
|
7 |
+
model-index:
|
8 |
+
- name: text-classification-goemotions
|
9 |
+
results:
|
10 |
+
- task:
|
11 |
+
name: Text Classification
|
12 |
+
type: text-classification
|
13 |
+
dataset:
|
14 |
+
name: go_emotions
|
15 |
+
type: multilabel_classification
|
16 |
+
config: simplified
|
17 |
+
split: test
|
18 |
+
args: simplified
|
19 |
+
metrics:
|
20 |
+
- name: F1
|
21 |
+
type: f1
|
22 |
+
value: 0.487
|
23 |
---
|
|
|
24 |
|
25 |
+
# Text Classification GoEmotions
|
26 |
+
|
27 |
+
This model is a fined-tuned version of [nreimers/MiniLMv2-L6-H384-distilled-from-RoBERTa-Large](https://huggingface.co/nreimers/MiniLMv2-L6-H384-distilled-from-RoBERTa-Large) on the on the [go_emotions](https://huggingface.co/datasets/go_emotions) dataset using [tasinho/text-classification-goemotions](https://huggingface.co/tasinhoque/text-classification-goemotions) as teacher model.
|
28 |
+
|
29 |
+
# Load the Model
|
30 |
+
|
31 |
+
```py
|
32 |
+
from transformers import pipeline
|
33 |
+
|
34 |
+
pipe = pipeline(model='Ngit/MiniLMv2-L6-H384-goemotions-v2', task='text-classification')
|
35 |
+
pipe("I am angry")
|
36 |
+
# [{'label': 'anger', 'score': 0.9722517132759094}]
|
37 |
+
```
|
38 |
+
|
39 |
+
The following hyperparameters were used during training:
|
40 |
+
- learning_rate: 6e-05
|
41 |
+
- train_batch_size: 64
|
42 |
+
- eval_batch_size: 64
|
43 |
+
- seed: 42
|
44 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
45 |
+
- lr_scheduler_type: linear
|
46 |
+
- num_epochs: 40
|
47 |
+
|
48 |
+
|
49 |
+
# Metrics (comparison with teacher model)
|
50 |
+
|
51 |
+
| Teacher (params) | Student (params) | Set | Score (teacher) | Score (student) |
|
52 |
+
|--------------------|-------------|----------|--------| --------|
|
53 |
+
| tasinhoque/text-classification-goemotions (355M) | MiniLMv2-L6-H384-goemotions-v2 | Validation | 0.514252 |0.484898 |
|
54 |
+
| tasinhoque/text-classification-goemotions (33M) | MiniLMv2-L6-H384-goemotions-v2 | Test | 0.501937 | 0.486890 |
|
55 |
|