Align label mapping with conll2003 dataset
Browse filesHi there, your model is using a default label mapping. Accept this PR to align the label mapping with the `conll2003` 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=conll2003)
- config.json +11 -11
config.json
CHANGED
@@ -13,7 +13,7 @@
|
|
13 |
"hidden_act": "gelu_new",
|
14 |
"hidden_dropout_prob": 0,
|
15 |
"hidden_size": 768,
|
16 |
-
|
17 |
"0": "O",
|
18 |
"1": "B-PER",
|
19 |
"2": "I-PER",
|
@@ -28,15 +28,15 @@
|
|
28 |
"inner_group_num": 1,
|
29 |
"intermediate_size": 3072,
|
30 |
"label2id": {
|
31 |
-
"
|
32 |
-
"
|
33 |
-
"
|
34 |
-
"
|
35 |
-
"
|
36 |
-
"
|
37 |
-
"
|
38 |
-
"
|
39 |
-
"
|
40 |
},
|
41 |
"layer_norm_eps": 1e-12,
|
42 |
"max_position_embeddings": 512,
|
@@ -52,4 +52,4 @@
|
|
52 |
"transformers_version": "4.16.2",
|
53 |
"type_vocab_size": 2,
|
54 |
"vocab_size": 30000
|
55 |
-
}
|
|
|
13 |
"hidden_act": "gelu_new",
|
14 |
"hidden_dropout_prob": 0,
|
15 |
"hidden_size": 768,
|
16 |
+
"id2label": {
|
17 |
"0": "O",
|
18 |
"1": "B-PER",
|
19 |
"2": "I-PER",
|
|
|
28 |
"inner_group_num": 1,
|
29 |
"intermediate_size": 3072,
|
30 |
"label2id": {
|
31 |
+
"O": 0,
|
32 |
+
"B-PER": 1,
|
33 |
+
"I-PER": 2,
|
34 |
+
"B-ORG": 3,
|
35 |
+
"I-ORG": 4,
|
36 |
+
"B-LOC": 5,
|
37 |
+
"I-LOC": 6,
|
38 |
+
"B-MISC": 7,
|
39 |
+
"I-MISC": 8
|
40 |
},
|
41 |
"layer_norm_eps": 1e-12,
|
42 |
"max_position_embeddings": 512,
|
|
|
52 |
"transformers_version": "4.16.2",
|
53 |
"type_vocab_size": 2,
|
54 |
"vocab_size": 30000
|
55 |
+
}
|