lewtun HF staff commited on
Commit
cf68326
1 Parent(s): dc68791

Align label mapping with conll2003 dataset

Browse files

Hi 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)

Files changed (1) hide show
  1. config.json +19 -19
config.json CHANGED
@@ -9,28 +9,28 @@
9
  "hidden_dropout_prob": 0.1,
10
  "hidden_size": 1024,
11
  "id2label": {
12
- "0": "LABEL_0",
13
- "1": "LABEL_1",
14
- "2": "LABEL_2",
15
- "3": "LABEL_3",
16
- "4": "LABEL_4",
17
- "5": "LABEL_5",
18
- "6": "LABEL_6",
19
- "7": "LABEL_7",
20
- "8": "LABEL_8"
21
  },
22
  "initializer_range": 0.02,
23
  "intermediate_size": 4096,
24
  "label2id": {
25
- "LABEL_0": 0,
26
- "LABEL_1": 1,
27
- "LABEL_2": 2,
28
- "LABEL_3": 3,
29
- "LABEL_4": 4,
30
- "LABEL_5": 5,
31
- "LABEL_6": 6,
32
- "LABEL_7": 7,
33
- "LABEL_8": 8
34
  },
35
  "layer_norm_eps": 1e-12,
36
  "max_position_embeddings": 512,
@@ -43,4 +43,4 @@
43
  "type_vocab_size": 2,
44
  "use_cache": true,
45
  "vocab_size": 30522
46
- }
9
  "hidden_dropout_prob": 0.1,
10
  "hidden_size": 1024,
11
  "id2label": {
12
+ "0": "O",
13
+ "1": "B-PER",
14
+ "2": "I-PER",
15
+ "3": "B-ORG",
16
+ "4": "I-ORG",
17
+ "5": "B-LOC",
18
+ "6": "I-LOC",
19
+ "7": "B-MISC",
20
+ "8": "I-MISC"
21
  },
22
  "initializer_range": 0.02,
23
  "intermediate_size": 4096,
24
  "label2id": {
25
+ "O": 0,
26
+ "B-PER": 1,
27
+ "I-PER": 2,
28
+ "B-ORG": 3,
29
+ "I-ORG": 4,
30
+ "B-LOC": 5,
31
+ "I-LOC": 6,
32
+ "B-MISC": 7,
33
+ "I-MISC": 8
34
  },
35
  "layer_norm_eps": 1e-12,
36
  "max_position_embeddings": 512,
43
  "type_vocab_size": 2,
44
  "use_cache": true,
45
  "vocab_size": 30522
46
+ }