Align label mapping with mnli config of glue dataset
#1
by
lewtun
HF staff
- opened
- config.json +7 -7
config.json
CHANGED
@@ -15,17 +15,17 @@
|
|
15 |
"hidden_dropout_prob": 0,
|
16 |
"hidden_size": 768,
|
17 |
"id2label": {
|
18 |
-
"0": "
|
19 |
-
"1": "
|
20 |
-
"2": "
|
21 |
},
|
22 |
"initializer_range": 0.02,
|
23 |
"inner_group_num": 1,
|
24 |
"intermediate_size": 3072,
|
25 |
"label2id": {
|
26 |
-
"
|
27 |
-
"
|
28 |
-
"
|
29 |
},
|
30 |
"layer_norm_eps": 1e-12,
|
31 |
"max_position_embeddings": 512,
|
@@ -42,4 +42,4 @@
|
|
42 |
"transformers_version": "4.9.1",
|
43 |
"type_vocab_size": 2,
|
44 |
"vocab_size": 30000
|
45 |
-
}
|
|
|
15 |
"hidden_dropout_prob": 0,
|
16 |
"hidden_size": 768,
|
17 |
"id2label": {
|
18 |
+
"0": "entailment",
|
19 |
+
"1": "neutral",
|
20 |
+
"2": "contradiction"
|
21 |
},
|
22 |
"initializer_range": 0.02,
|
23 |
"inner_group_num": 1,
|
24 |
"intermediate_size": 3072,
|
25 |
"label2id": {
|
26 |
+
"entailment": 0,
|
27 |
+
"neutral": 1,
|
28 |
+
"contradiction": 2
|
29 |
},
|
30 |
"layer_norm_eps": 1e-12,
|
31 |
"max_position_embeddings": 512,
|
|
|
42 |
"transformers_version": "4.9.1",
|
43 |
"type_vocab_size": 2,
|
44 |
"vocab_size": 30000
|
45 |
+
}
|