lewtun HF staff commited on
Commit
08314bc
1 Parent(s): d0fa5eb

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
@@ -37,5 +37,13 @@
37
  "transformers_version": "4.19.1",
38
  "truncate_seq": true,
39
  "type_vocab_size": 3,
40
- "vocab_size": 30522
41
- }
 
 
 
 
 
 
 
 
37
  "transformers_version": "4.19.1",
38
  "truncate_seq": true,
39
  "type_vocab_size": 3,
40
+ "vocab_size": 30522,
41
+ "label2id": {
42
+ "neg": 0,
43
+ "pos": 1
44
+ },
45
+ "id2label": {
46
+ "0": "neg",
47
+ "1": "pos"
48
+ }
49
+ }