lannelin lewtun HF staff commited on
Commit
7808be7
1 Parent(s): ab77be8

Align label mapping with imdb dataset (#1)

Browse files

- Align label mapping with imdb dataset (49efae7da386920e4b82bf20956650a18015bd24)


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

Files changed (1) hide show
  1. 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
+ }