fix the label2id in config
Browse files- config.json +67 -88
config.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
{
|
2 |
-
"_name_or_path": "/
|
3 |
"architectures": [
|
4 |
"MegatronBertForTokenClassification"
|
5 |
],
|
@@ -8,96 +8,75 @@
|
|
8 |
"hidden_dropout_prob": 0.1,
|
9 |
"hidden_size": 1024,
|
10 |
"id2label": {
|
11 |
-
"0": "
|
12 |
-
"1": "
|
13 |
-
"2": "
|
14 |
-
"3": "
|
15 |
-
"4": "
|
16 |
-
"5": "
|
17 |
-
"6": "
|
18 |
-
"7": "
|
19 |
-
"8": "
|
20 |
-
"9": "
|
21 |
-
"10": "
|
22 |
-
"11": "
|
23 |
-
"12": "
|
24 |
-
"13": "
|
25 |
-
"14": "
|
26 |
-
"15": "
|
27 |
-
"16": "
|
28 |
-
"17": "
|
29 |
-
"18": "
|
30 |
-
"19": "
|
31 |
-
"20": "
|
32 |
-
"21": "
|
33 |
-
"22": "
|
34 |
-
"23": "
|
35 |
-
"24": "
|
36 |
-
"25": "
|
37 |
-
"26": "
|
38 |
-
"27": "
|
39 |
-
"28": "
|
40 |
-
"29": "
|
41 |
-
"30": "
|
42 |
-
"31": "
|
43 |
-
"32": "
|
44 |
-
"33": "
|
45 |
-
"34": "
|
46 |
-
"35": "
|
47 |
-
"36": "
|
48 |
-
"37": "
|
49 |
-
"38": "
|
50 |
-
"39": "
|
51 |
-
"40": "
|
52 |
-
"41": "
|
53 |
-
"42": "
|
54 |
},
|
55 |
"initializer_range": 0.02,
|
56 |
"intermediate_size": 4096,
|
57 |
"label2id": {
|
58 |
-
"
|
59 |
-
"
|
60 |
-
"
|
61 |
-
"
|
62 |
-
"
|
63 |
-
"
|
64 |
-
"
|
65 |
-
"
|
66 |
-
"
|
67 |
-
"
|
68 |
-
"
|
69 |
-
"
|
70 |
-
"
|
71 |
-
"
|
72 |
-
"
|
73 |
-
"
|
74 |
-
"
|
75 |
-
"
|
76 |
-
"
|
77 |
-
"
|
78 |
-
"
|
79 |
-
"
|
80 |
-
"LABEL_29": 29,
|
81 |
-
"LABEL_3": 3,
|
82 |
-
"LABEL_30": 30,
|
83 |
-
"LABEL_31": 31,
|
84 |
-
"LABEL_32": 32,
|
85 |
-
"LABEL_33": 33,
|
86 |
-
"LABEL_34": 34,
|
87 |
-
"LABEL_35": 35,
|
88 |
-
"LABEL_36": 36,
|
89 |
-
"LABEL_37": 37,
|
90 |
-
"LABEL_38": 38,
|
91 |
-
"LABEL_39": 39,
|
92 |
-
"LABEL_4": 4,
|
93 |
-
"LABEL_40": 40,
|
94 |
-
"LABEL_41": 41,
|
95 |
-
"LABEL_42": 42,
|
96 |
-
"LABEL_5": 5,
|
97 |
-
"LABEL_6": 6,
|
98 |
-
"LABEL_7": 7,
|
99 |
-
"LABEL_8": 8,
|
100 |
-
"LABEL_9": 9
|
101 |
},
|
102 |
"layer_norm_eps": 1e-12,
|
103 |
"max_position_embeddings": 512,
|
@@ -112,4 +91,4 @@
|
|
112 |
"type_vocab_size": 2,
|
113 |
"use_cache": true,
|
114 |
"vocab_size": 50176
|
115 |
-
}
|
|
|
1 |
{
|
2 |
+
"_name_or_path": "UFNLP/gatortrons",
|
3 |
"architectures": [
|
4 |
"MegatronBertForTokenClassification"
|
5 |
],
|
|
|
8 |
"hidden_dropout_prob": 0.1,
|
9 |
"hidden_size": 1024,
|
10 |
"id2label": {
|
11 |
+
"0": "['Living Beings', 'Virus']",
|
12 |
+
"1": "['Living Beings', 'Virus']",
|
13 |
+
"2": "['Living Beings', 'Bacterium']",
|
14 |
+
"3": "['Living Beings', 'Bacterium']",
|
15 |
+
"4": "['Anatomy', 'Anatomical Structure']",
|
16 |
+
"5": "['Anatomy', 'Anatomical Structure']",
|
17 |
+
"6": "['Anatomy', 'Body System']",
|
18 |
+
"7": "['Anatomy', 'Body System']",
|
19 |
+
"8": "['Anatomy', 'Body Substance']",
|
20 |
+
"9": "['Anatomy', 'Body Substance']",
|
21 |
+
"10": "['Disorders', 'Finding']",
|
22 |
+
"11": "['Disorders', 'Finding']",
|
23 |
+
"12": "['Disorders', 'Injury or Poisoning']",
|
24 |
+
"13": "['Disorders', 'Injury or Poisoning']",
|
25 |
+
"14": "['Phenomena', 'Biologic Function']",
|
26 |
+
"15": "['Phenomena', 'Biologic Function']",
|
27 |
+
"16": "['Procedures', 'Health Care Activity']",
|
28 |
+
"17": "['Procedures', 'Health Care Activity']",
|
29 |
+
"18": "['Procedures', 'Research Activity']",
|
30 |
+
"19": "['Procedures', 'Research Activity']",
|
31 |
+
"20": "['Devices', 'Medical Device']",
|
32 |
+
"21": "['Devices', 'Medical Device']",
|
33 |
+
"22": "['Concepts & Ideas', 'Spatial Concept']",
|
34 |
+
"23": "['Concepts & Ideas', 'Spatial Concept']",
|
35 |
+
"24": "['Occupations', 'Biomedical Occupation or Discipline']",
|
36 |
+
"25": "['Occupations', 'Biomedical Occupation or Discipline']",
|
37 |
+
"26": "['Organizations', 'Organization']",
|
38 |
+
"27": "['Organizations', 'Organization']",
|
39 |
+
"28": "['Living Beings', 'Professional or Occupational Group']",
|
40 |
+
"29": "['Living Beings', 'Professional or Occupational Group']",
|
41 |
+
"30": "['Living Beings', 'Population Group']",
|
42 |
+
"31": "['Living Beings', 'Population Group']",
|
43 |
+
"32": "['Chemicals & Drugs', 'Chemical']",
|
44 |
+
"33": "['Chemicals & Drugs', 'Chemical']",
|
45 |
+
"34": "['Objects', 'Food']",
|
46 |
+
"35": "['Objects', 'Food']",
|
47 |
+
"36": "['Concepts & Ideas', 'Intellectual Product']",
|
48 |
+
"37": "['Concepts & Ideas', 'Intellectual Product']",
|
49 |
+
"38": "['Physiology', 'Clinical Attribute']",
|
50 |
+
"39": "['Physiology', 'Clinical Attribute']",
|
51 |
+
"40": "['Living Beings', 'Eukaryote']",
|
52 |
+
"41": "['Living Beings', 'Eukaryote']",
|
53 |
+
"42": "None"
|
54 |
},
|
55 |
"initializer_range": 0.02,
|
56 |
"intermediate_size": 4096,
|
57 |
"label2id": {
|
58 |
+
"['Living Beings', 'Virus']": 1,
|
59 |
+
"['Living Beings', 'Bacterium']": 3,
|
60 |
+
"['Anatomy', 'Anatomical Structure']": 5,
|
61 |
+
"['Anatomy', 'Body System']": 7,
|
62 |
+
"['Anatomy', 'Body Substance']": 9,
|
63 |
+
"['Disorders', 'Finding']": 11,
|
64 |
+
"['Disorders', 'Injury or Poisoning']": 13,
|
65 |
+
"['Phenomena', 'Biologic Function']": 15,
|
66 |
+
"['Procedures', 'Health Care Activity']": 17,
|
67 |
+
"['Procedures', 'Research Activity']": 19,
|
68 |
+
"['Devices', 'Medical Device']": 21,
|
69 |
+
"['Concepts & Ideas', 'Spatial Concept']": 23,
|
70 |
+
"['Occupations', 'Biomedical Occupation or Discipline']": 25,
|
71 |
+
"['Organizations', 'Organization']": 27,
|
72 |
+
"['Living Beings', 'Professional or Occupational Group']": 29,
|
73 |
+
"['Living Beings', 'Population Group']": 31,
|
74 |
+
"['Chemicals & Drugs', 'Chemical']": 33,
|
75 |
+
"['Objects', 'Food']": 35,
|
76 |
+
"['Concepts & Ideas', 'Intellectual Product']": 37,
|
77 |
+
"['Physiology', 'Clinical Attribute']": 39,
|
78 |
+
"['Living Beings', 'Eukaryote']": 41,
|
79 |
+
"None": 42
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
80 |
},
|
81 |
"layer_norm_eps": 1e-12,
|
82 |
"max_position_embeddings": 512,
|
|
|
91 |
"type_vocab_size": 2,
|
92 |
"use_cache": true,
|
93 |
"vocab_size": 50176
|
94 |
+
}
|