julien-c HF staff lewtun HF staff commited on
Commit
574fad7
1 Parent(s): 887432e

Align label mapping with imdb dataset (#1)

Browse files

- Align label mapping with imdb dataset (930d26cd462b0e513eb7ed8e5f3b992437ab2917)


Co-authored-by: Lewis Tunstall <lewtun@users.noreply.huggingface.co>

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
+ }