Align label mapping with imdb dataset
Browse filesHi 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)
- 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 |
+
}
|