lewtun HF staff commited on
Commit
930d26c
1 Parent(s): 887432e

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