Align label mapping with emotion dataset (#1)
Browse files- Align label mapping with emotion dataset (85e678c57f8979e68be0927ae40e7d0f6c5bb3e0)
Co-authored-by: Lewis Tunstall <[email protected]>
- config.json +13 -13
config.json
CHANGED
@@ -10,22 +10,22 @@
|
|
10 |
"hidden_dropout_prob": 0.1,
|
11 |
"hidden_size": 384,
|
12 |
"id2label": {
|
13 |
-
"0": "
|
14 |
-
"1": "
|
15 |
-
"2": "
|
16 |
-
"3": "
|
17 |
-
"4": "
|
18 |
-
"5": "
|
19 |
},
|
20 |
"initializer_range": 0.02,
|
21 |
"intermediate_size": 1536,
|
22 |
"label2id": {
|
23 |
-
"
|
24 |
-
"
|
25 |
-
"
|
26 |
-
"
|
27 |
-
"
|
28 |
-
"
|
29 |
},
|
30 |
"layer_norm_eps": 1e-12,
|
31 |
"max_position_embeddings": 512,
|
@@ -40,4 +40,4 @@
|
|
40 |
"type_vocab_size": 2,
|
41 |
"use_cache": true,
|
42 |
"vocab_size": 30522
|
43 |
-
}
|
|
|
10 |
"hidden_dropout_prob": 0.1,
|
11 |
"hidden_size": 384,
|
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": 1536,
|
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,
|
|
|
40 |
"type_vocab_size": 2,
|
41 |
"use_cache": true,
|
42 |
"vocab_size": 30522
|
43 |
+
}
|