Align label mapping with conll2003 dataset

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