lewtun HF staff commited on
Commit
df5568a
·
1 Parent(s): 05012ca

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
@@ -20,5 +20,13 @@
20
  "transformers_version": "4.5.1",
21
  "type_vocab_size": 2,
22
  "use_cache": true,
23
- "vocab_size": 28996
24
- }
 
 
 
 
 
 
 
 
 
20
  "transformers_version": "4.5.1",
21
  "type_vocab_size": 2,
22
  "use_cache": true,
23
+ "vocab_size": 28996,
24
+ "label2id": {
25
+ "neg": 0,
26
+ "pos": 1
27
+ },
28
+ "id2label": {
29
+ "0": "neg",
30
+ "1": "pos"
31
+ }
32
+ }