Align label mapping with imdb dataset

#1
by lewtun HF staff - opened
Files changed (1) hide show
  1. config.json +10 -2
config.json CHANGED
@@ -18,5 +18,13 @@
18
  "seq_classif_dropout": 0.2,
19
  "sinusoidal_pos_embds": false,
20
  "tie_weights_": true,
21
- "vocab_size": 30522
22
- }
 
 
 
 
 
 
 
 
 
18
  "seq_classif_dropout": 0.2,
19
  "sinusoidal_pos_embds": false,
20
  "tie_weights_": true,
21
+ "vocab_size": 30522,
22
+ "label2id": {
23
+ "neg": 0,
24
+ "pos": 1
25
+ },
26
+ "id2label": {
27
+ "0": "neg",
28
+ "1": "pos"
29
+ }
30
+ }