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
@@ -14,29 +14,29 @@
14
  "hidden_dropout_prob": 0,
15
  "hidden_size": 768,
16
  "id2label": {
17
- "0": "LABEL_0",
18
- "1": "LABEL_1",
19
- "2": "LABEL_2",
20
- "3": "LABEL_3",
21
- "4": "LABEL_4",
22
- "5": "LABEL_5",
23
- "6": "LABEL_6",
24
- "7": "LABEL_7",
25
- "8": "LABEL_8"
26
  },
27
  "initializer_range": 0.02,
28
  "inner_group_num": 1,
29
  "intermediate_size": 3072,
30
  "label2id": {
31
- "LABEL_0": 0,
32
- "LABEL_1": 1,
33
- "LABEL_2": 2,
34
- "LABEL_3": 3,
35
- "LABEL_4": 4,
36
- "LABEL_5": 5,
37
- "LABEL_6": 6,
38
- "LABEL_7": 7,
39
- "LABEL_8": 8
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
- }
 
14
  "hidden_dropout_prob": 0,
15
  "hidden_size": 768,
16
  "id2label": {
17
+ "0": "O",
18
+ "1": "B-PER",
19
+ "2": "I-PER",
20
+ "3": "B-ORG",
21
+ "4": "I-ORG",
22
+ "5": "B-LOC",
23
+ "6": "I-LOC",
24
+ "7": "B-MISC",
25
+ "8": "I-MISC"
26
  },
27
  "initializer_range": 0.02,
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
+ }