Upload BertForTokenClassification
Browse files- config.json +194 -0
- pytorch_model.bin +3 -0
config.json
ADDED
@@ -0,0 +1,194 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "google-bert/bert-large-uncased",
|
3 |
+
"architectures": [
|
4 |
+
"BertForTokenClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"classifier_dropout": null,
|
8 |
+
"gradient_checkpointing": false,
|
9 |
+
"hidden_act": "gelu",
|
10 |
+
"hidden_dropout_prob": 0.1,
|
11 |
+
"hidden_size": 1024,
|
12 |
+
"id2label": {
|
13 |
+
"0": "O",
|
14 |
+
"1": "B-disease.epidemiology",
|
15 |
+
"2": "I-disease.epidemiology",
|
16 |
+
"3": "L-disease.epidemiology",
|
17 |
+
"4": "B-disease.history",
|
18 |
+
"5": "I-disease.history",
|
19 |
+
"6": "L-disease.history",
|
20 |
+
"7": "B-disease.cause",
|
21 |
+
"8": "I-disease.cause",
|
22 |
+
"9": "L-disease.cause",
|
23 |
+
"10": "B-disease.screening",
|
24 |
+
"11": "I-disease.screening",
|
25 |
+
"12": "L-disease.screening",
|
26 |
+
"13": "B-disease.infection",
|
27 |
+
"14": "I-disease.infection",
|
28 |
+
"15": "L-disease.infection",
|
29 |
+
"16": "B-disease.fauna",
|
30 |
+
"17": "I-disease.fauna",
|
31 |
+
"18": "L-disease.fauna",
|
32 |
+
"19": "B-disease.genetics",
|
33 |
+
"20": "I-disease.genetics",
|
34 |
+
"21": "L-disease.genetics",
|
35 |
+
"22": "B-disease.prognosis",
|
36 |
+
"23": "I-disease.prognosis",
|
37 |
+
"24": "L-disease.prognosis",
|
38 |
+
"25": "B-disease.geography",
|
39 |
+
"26": "I-disease.geography",
|
40 |
+
"27": "L-disease.geography",
|
41 |
+
"28": "B-disease.diagnosis",
|
42 |
+
"29": "I-disease.diagnosis",
|
43 |
+
"30": "L-disease.diagnosis",
|
44 |
+
"31": "B-disease.research",
|
45 |
+
"32": "I-disease.research",
|
46 |
+
"33": "L-disease.research",
|
47 |
+
"34": "B-disease.pathology",
|
48 |
+
"35": "I-disease.pathology",
|
49 |
+
"36": "L-disease.pathology",
|
50 |
+
"37": "B-disease.medication",
|
51 |
+
"38": "I-disease.medication",
|
52 |
+
"39": "L-disease.medication",
|
53 |
+
"40": "B-disease.symptom",
|
54 |
+
"41": "I-disease.symptom",
|
55 |
+
"42": "L-disease.symptom",
|
56 |
+
"43": "B-disease.tomography",
|
57 |
+
"44": "I-disease.tomography",
|
58 |
+
"45": "L-disease.tomography",
|
59 |
+
"46": "B-disease.surgery",
|
60 |
+
"47": "I-disease.surgery",
|
61 |
+
"48": "L-disease.surgery",
|
62 |
+
"49": "B-disease.complication",
|
63 |
+
"50": "I-disease.complication",
|
64 |
+
"51": "L-disease.complication",
|
65 |
+
"52": "B-disease.mechanism",
|
66 |
+
"53": "I-disease.mechanism",
|
67 |
+
"54": "L-disease.mechanism",
|
68 |
+
"55": "B-disease.risk",
|
69 |
+
"56": "I-disease.risk",
|
70 |
+
"57": "L-disease.risk",
|
71 |
+
"58": "B-disease.culture",
|
72 |
+
"59": "I-disease.culture",
|
73 |
+
"60": "L-disease.culture",
|
74 |
+
"61": "B-disease.classification",
|
75 |
+
"62": "I-disease.classification",
|
76 |
+
"63": "L-disease.classification",
|
77 |
+
"64": "B-disease.pathophysiology",
|
78 |
+
"65": "I-disease.pathophysiology",
|
79 |
+
"66": "L-disease.pathophysiology",
|
80 |
+
"67": "B-disease.management",
|
81 |
+
"68": "I-disease.management",
|
82 |
+
"69": "L-disease.management",
|
83 |
+
"70": "B-disease.prevention",
|
84 |
+
"71": "I-disease.prevention",
|
85 |
+
"72": "L-disease.prevention",
|
86 |
+
"73": "B-disease.etymology",
|
87 |
+
"74": "I-disease.etymology",
|
88 |
+
"75": "L-disease.etymology",
|
89 |
+
"76": "B-disease.treatment",
|
90 |
+
"77": "I-disease.treatment",
|
91 |
+
"78": "L-disease.treatment",
|
92 |
+
"79": "B-disease.other",
|
93 |
+
"80": "I-disease.other",
|
94 |
+
"81": "L-disease.other"
|
95 |
+
},
|
96 |
+
"initializer_range": 0.02,
|
97 |
+
"intermediate_size": 4096,
|
98 |
+
"label2id": {
|
99 |
+
"B-disease.cause": 7,
|
100 |
+
"B-disease.classification": 61,
|
101 |
+
"B-disease.complication": 49,
|
102 |
+
"B-disease.culture": 58,
|
103 |
+
"B-disease.diagnosis": 28,
|
104 |
+
"B-disease.epidemiology": 1,
|
105 |
+
"B-disease.etymology": 73,
|
106 |
+
"B-disease.fauna": 16,
|
107 |
+
"B-disease.genetics": 19,
|
108 |
+
"B-disease.geography": 25,
|
109 |
+
"B-disease.history": 4,
|
110 |
+
"B-disease.infection": 13,
|
111 |
+
"B-disease.management": 67,
|
112 |
+
"B-disease.mechanism": 52,
|
113 |
+
"B-disease.medication": 37,
|
114 |
+
"B-disease.other": 79,
|
115 |
+
"B-disease.pathology": 34,
|
116 |
+
"B-disease.pathophysiology": 64,
|
117 |
+
"B-disease.prevention": 70,
|
118 |
+
"B-disease.prognosis": 22,
|
119 |
+
"B-disease.research": 31,
|
120 |
+
"B-disease.risk": 55,
|
121 |
+
"B-disease.screening": 10,
|
122 |
+
"B-disease.surgery": 46,
|
123 |
+
"B-disease.symptom": 40,
|
124 |
+
"B-disease.tomography": 43,
|
125 |
+
"B-disease.treatment": 76,
|
126 |
+
"I-disease.cause": 8,
|
127 |
+
"I-disease.classification": 62,
|
128 |
+
"I-disease.complication": 50,
|
129 |
+
"I-disease.culture": 59,
|
130 |
+
"I-disease.diagnosis": 29,
|
131 |
+
"I-disease.epidemiology": 2,
|
132 |
+
"I-disease.etymology": 74,
|
133 |
+
"I-disease.fauna": 17,
|
134 |
+
"I-disease.genetics": 20,
|
135 |
+
"I-disease.geography": 26,
|
136 |
+
"I-disease.history": 5,
|
137 |
+
"I-disease.infection": 14,
|
138 |
+
"I-disease.management": 68,
|
139 |
+
"I-disease.mechanism": 53,
|
140 |
+
"I-disease.medication": 38,
|
141 |
+
"I-disease.other": 80,
|
142 |
+
"I-disease.pathology": 35,
|
143 |
+
"I-disease.pathophysiology": 65,
|
144 |
+
"I-disease.prevention": 71,
|
145 |
+
"I-disease.prognosis": 23,
|
146 |
+
"I-disease.research": 32,
|
147 |
+
"I-disease.risk": 56,
|
148 |
+
"I-disease.screening": 11,
|
149 |
+
"I-disease.surgery": 47,
|
150 |
+
"I-disease.symptom": 41,
|
151 |
+
"I-disease.tomography": 44,
|
152 |
+
"I-disease.treatment": 77,
|
153 |
+
"L-disease.cause": 9,
|
154 |
+
"L-disease.classification": 63,
|
155 |
+
"L-disease.complication": 51,
|
156 |
+
"L-disease.culture": 60,
|
157 |
+
"L-disease.diagnosis": 30,
|
158 |
+
"L-disease.epidemiology": 3,
|
159 |
+
"L-disease.etymology": 75,
|
160 |
+
"L-disease.fauna": 18,
|
161 |
+
"L-disease.genetics": 21,
|
162 |
+
"L-disease.geography": 27,
|
163 |
+
"L-disease.history": 6,
|
164 |
+
"L-disease.infection": 15,
|
165 |
+
"L-disease.management": 69,
|
166 |
+
"L-disease.mechanism": 54,
|
167 |
+
"L-disease.medication": 39,
|
168 |
+
"L-disease.other": 81,
|
169 |
+
"L-disease.pathology": 36,
|
170 |
+
"L-disease.pathophysiology": 66,
|
171 |
+
"L-disease.prevention": 72,
|
172 |
+
"L-disease.prognosis": 24,
|
173 |
+
"L-disease.research": 33,
|
174 |
+
"L-disease.risk": 57,
|
175 |
+
"L-disease.screening": 12,
|
176 |
+
"L-disease.surgery": 48,
|
177 |
+
"L-disease.symptom": 42,
|
178 |
+
"L-disease.tomography": 45,
|
179 |
+
"L-disease.treatment": 78,
|
180 |
+
"O": 0
|
181 |
+
},
|
182 |
+
"layer_norm_eps": 1e-12,
|
183 |
+
"max_position_embeddings": 512,
|
184 |
+
"model_type": "bert",
|
185 |
+
"num_attention_heads": 16,
|
186 |
+
"num_hidden_layers": 24,
|
187 |
+
"pad_token_id": 0,
|
188 |
+
"position_embedding_type": "absolute",
|
189 |
+
"torch_dtype": "float32",
|
190 |
+
"transformers_version": "4.28.0",
|
191 |
+
"type_vocab_size": 2,
|
192 |
+
"use_cache": true,
|
193 |
+
"vocab_size": 30522
|
194 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8f154ea84805505d3d00d1400336680c509c5fbce57c44ca49f0d655e96f1db9
|
3 |
+
size 1336844010
|