lewtun HF staff commited on
Commit
49efae7
1 Parent(s): ab77be8

Align label mapping with imdb dataset

Browse files

Hi there, your model is using a default label mapping. Accept this PR to align the label mapping with the `imdb` dataset this model was trained on. This will enable your model to be evaluated by [Hugging Face's automatic model evaluator](https://huggingface.co/spaces/autoevaluate/model-evaluator?dataset=imdb)

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