Align label mapping with emotion dataset
Browse filesHi there, your model is using a default label mapping. Accept this PR to align the label mapping with the `emotion` dataset this model was trained on. This will enable your model to be evaluated by [Hugging Face's automatic model evaluator](https://huggingface.co/spaces/autoevaluate/model-evaluator?dataset=emotion)
- config.json +13 -13
config.json
CHANGED
@@ -12,22 +12,22 @@
|
|
12 |
"hidden_dropout_prob": 0.1,
|
13 |
"hidden_size": 768,
|
14 |
"id2label": {
|
15 |
-
"0": "
|
16 |
-
"1": "
|
17 |
-
"2": "
|
18 |
-
"3": "
|
19 |
-
"4": "
|
20 |
-
"5": "
|
21 |
},
|
22 |
"initializer_range": 0.02,
|
23 |
"intermediate_size": 3072,
|
24 |
"label2id": {
|
25 |
-
"
|
26 |
-
"
|
27 |
-
"
|
28 |
-
"
|
29 |
-
"
|
30 |
-
"
|
31 |
},
|
32 |
"layer_norm_eps": 1e-05,
|
33 |
"max_position_embeddings": 130,
|
@@ -43,4 +43,4 @@
|
|
43 |
"type_vocab_size": 1,
|
44 |
"use_cache": true,
|
45 |
"vocab_size": 64001
|
46 |
-
}
|
|
|
12 |
"hidden_dropout_prob": 0.1,
|
13 |
"hidden_size": 768,
|
14 |
"id2label": {
|
15 |
+
"0": "sadness",
|
16 |
+
"1": "joy",
|
17 |
+
"2": "love",
|
18 |
+
"3": "anger",
|
19 |
+
"4": "fear",
|
20 |
+
"5": "surprise"
|
21 |
},
|
22 |
"initializer_range": 0.02,
|
23 |
"intermediate_size": 3072,
|
24 |
"label2id": {
|
25 |
+
"sadness": 0,
|
26 |
+
"joy": 1,
|
27 |
+
"love": 2,
|
28 |
+
"anger": 3,
|
29 |
+
"fear": 4,
|
30 |
+
"surprise": 5
|
31 |
},
|
32 |
"layer_norm_eps": 1e-05,
|
33 |
"max_position_embeddings": 130,
|
|
|
43 |
"type_vocab_size": 1,
|
44 |
"use_cache": true,
|
45 |
"vocab_size": 64001
|
46 |
+
}
|