Align label mapping with imdb dataset
#1
by
lewtun
HF staff
- opened
- config.json +10 -2
config.json
CHANGED
@@ -17,5 +17,13 @@
|
|
17 |
"num_hidden_layers": 1,
|
18 |
"pad_token_id": 0,
|
19 |
"type_vocab_size": 2,
|
20 |
-
"vocab_size": 30522
|
21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
"num_hidden_layers": 1,
|
18 |
"pad_token_id": 0,
|
19 |
"type_vocab_size": 2,
|
20 |
+
"vocab_size": 30522,
|
21 |
+
"label2id": {
|
22 |
+
"neg": 0,
|
23 |
+
"pos": 1
|
24 |
+
},
|
25 |
+
"id2label": {
|
26 |
+
"0": "neg",
|
27 |
+
"1": "pos"
|
28 |
+
}
|
29 |
+
}
|