Commit
•
0a6cedd
1
Parent(s):
6ec49cd
Align label mapping with emotion dataset (#1)
Browse files- Align label mapping with emotion dataset (0c3a5254659815d9c74380523e4e1e2ffd27537b)
Co-authored-by: Lewis Tunstall <lewtun@users.noreply.huggingface.co>
- config.json +13 -13
config.json
CHANGED
@@ -9,21 +9,21 @@
|
|
9 |
"dropout": 0.1,
|
10 |
"hidden_dim": 3072,
|
11 |
"id2label": {
|
12 |
-
"0": "
|
13 |
-
"1": "
|
14 |
-
"2": "
|
15 |
-
"3": "
|
16 |
-
"4": "
|
17 |
-
"5": "
|
18 |
},
|
19 |
"initializer_range": 0.02,
|
20 |
"label2id": {
|
21 |
-
"
|
22 |
-
"
|
23 |
-
"
|
24 |
-
"
|
25 |
-
"
|
26 |
-
"
|
27 |
},
|
28 |
"max_position_embeddings": 512,
|
29 |
"model_type": "distilbert",
|
@@ -38,4 +38,4 @@
|
|
38 |
"torch_dtype": "float32",
|
39 |
"transformers_version": "4.18.0",
|
40 |
"vocab_size": 30522
|
41 |
-
}
|
|
|
9 |
"dropout": 0.1,
|
10 |
"hidden_dim": 3072,
|
11 |
"id2label": {
|
12 |
+
"0": "sadness",
|
13 |
+
"1": "joy",
|
14 |
+
"2": "love",
|
15 |
+
"3": "anger",
|
16 |
+
"4": "fear",
|
17 |
+
"5": "surprise"
|
18 |
},
|
19 |
"initializer_range": 0.02,
|
20 |
"label2id": {
|
21 |
+
"sadness": 0,
|
22 |
+
"joy": 1,
|
23 |
+
"love": 2,
|
24 |
+
"anger": 3,
|
25 |
+
"fear": 4,
|
26 |
+
"surprise": 5
|
27 |
},
|
28 |
"max_position_embeddings": 512,
|
29 |
"model_type": "distilbert",
|
|
|
38 |
"torch_dtype": "float32",
|
39 |
"transformers_version": "4.18.0",
|
40 |
"vocab_size": 30522
|
41 |
+
}
|