Align label mapping with conll2003 dataset
#1
by
lewtun
HF staff
- opened
- 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": "
|
14 |
-
"1": "
|
15 |
-
"2": "
|
16 |
-
"3": "
|
17 |
-
"4": "
|
18 |
-
"5": "
|
19 |
-
"6": "
|
20 |
-
"7": "
|
21 |
-
"8": "
|
22 |
},
|
23 |
"initializer_range": 0.02,
|
24 |
"intermediate_size": 512,
|
25 |
"label2id": {
|
26 |
-
"
|
27 |
-
"
|
28 |
-
"
|
29 |
-
"
|
30 |
-
"
|
31 |
-
"
|
32 |
-
"
|
33 |
-
"
|
34 |
-
"
|
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 |
+
}
|