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
@@ -10,22 +10,22 @@
|
|
10 |
"hidden_dropout_prob": 0.1,
|
11 |
"hidden_size": 768,
|
12 |
"id2label": {
|
13 |
-
"0": "
|
14 |
-
"1": "
|
15 |
-
"2": "
|
16 |
-
"3": "
|
17 |
-
"4": "
|
18 |
-
"5": "
|
19 |
},
|
20 |
"initializer_range": 0.02,
|
21 |
"intermediate_size": 3072,
|
22 |
"label2id": {
|
23 |
-
"
|
24 |
-
"
|
25 |
-
"
|
26 |
-
"
|
27 |
-
"
|
28 |
-
"
|
29 |
},
|
30 |
"layer_norm_eps": 1e-12,
|
31 |
"max_position_embeddings": 512,
|
@@ -45,4 +45,4 @@
|
|
45 |
"type_vocab_size": 2,
|
46 |
"use_cache": true,
|
47 |
"vocab_size": 119547
|
48 |
-
}
|
|
|
10 |
"hidden_dropout_prob": 0.1,
|
11 |
"hidden_size": 768,
|
12 |
"id2label": {
|
13 |
+
"0": "sadness",
|
14 |
+
"1": "joy",
|
15 |
+
"2": "love",
|
16 |
+
"3": "anger",
|
17 |
+
"4": "fear",
|
18 |
+
"5": "surprise"
|
19 |
},
|
20 |
"initializer_range": 0.02,
|
21 |
"intermediate_size": 3072,
|
22 |
"label2id": {
|
23 |
+
"sadness": 0,
|
24 |
+
"joy": 1,
|
25 |
+
"love": 2,
|
26 |
+
"anger": 3,
|
27 |
+
"fear": 4,
|
28 |
+
"surprise": 5
|
29 |
},
|
30 |
"layer_norm_eps": 1e-12,
|
31 |
"max_position_embeddings": 512,
|
|
|
45 |
"type_vocab_size": 2,
|
46 |
"use_cache": true,
|
47 |
"vocab_size": 119547
|
48 |
+
}
|