LTP
/

ylfeng commited on
Commit
9987b0e
1 Parent(s): 94e22e2

Uploaded model

Browse files
Files changed (3) hide show
  1. config.json +352 -0
  2. pytorch_model.bin +3 -0
  3. vocab.txt +0 -0
config.json ADDED
@@ -0,0 +1,352 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model": {
3
+ "_ltp_target_": "ltp_core.models.ltp_model.LTPModule",
4
+ "backbone": {
5
+ "_ltp_target_": "ltp_core.models.utils.load_transformers",
6
+ "config": {
7
+ "output_attentions": false,
8
+ "output_hidden_states": false,
9
+ "use_cache": true,
10
+ "torchscript": false,
11
+ "use_bfloat16": false,
12
+ "pruned_heads": {},
13
+ "is_encoder_decoder": false,
14
+ "is_decoder": false,
15
+ "max_length": 20,
16
+ "min_length": 0,
17
+ "do_sample": false,
18
+ "early_stopping": false,
19
+ "num_beams": 1,
20
+ "temperature": 1.0,
21
+ "top_k": 50,
22
+ "top_p": 1.0,
23
+ "repetition_penalty": 1.0,
24
+ "length_penalty": 1.0,
25
+ "no_repeat_ngram_size": 0,
26
+ "bad_words_ids": null,
27
+ "num_return_sequences": 1,
28
+ "architectures": null,
29
+ "finetuning_task": null,
30
+ "id2label": {
31
+ "0": "LABEL_0",
32
+ "1": "LABEL_1"
33
+ },
34
+ "label2id": {
35
+ "LABEL_0": 0,
36
+ "LABEL_1": 1
37
+ },
38
+ "prefix": null,
39
+ "bos_token_id": null,
40
+ "pad_token_id": 0,
41
+ "eos_token_id": null,
42
+ "decoder_start_token_id": null,
43
+ "task_specific_params": null,
44
+ "xla_device": null,
45
+ "directionality": "bidi",
46
+ "vocab_size": 21128,
47
+ "embedding_size": 128,
48
+ "hidden_size": 256,
49
+ "num_hidden_layers": 12,
50
+ "num_attention_heads": 4,
51
+ "intermediate_size": 1024,
52
+ "hidden_act": "gelu",
53
+ "hidden_dropout_prob": 0.1,
54
+ "attention_probs_dropout_prob": 0.1,
55
+ "max_position_embeddings": 512,
56
+ "type_vocab_size": 2,
57
+ "initializer_range": 0.02,
58
+ "layer_norm_eps": 1e-12,
59
+ "model_type": "electra"
60
+ }
61
+ },
62
+ "processor": {
63
+ "cws": {
64
+ "_ltp_target_": "ltp_core.models.processor.TokenOnly"
65
+ },
66
+ "pos": {
67
+ "_ltp_target_": "ltp_core.models.processor.WordsOnly"
68
+ },
69
+ "ner": {
70
+ "_ltp_target_": "ltp_core.models.processor.WordsOnly"
71
+ },
72
+ "srl": {
73
+ "_ltp_target_": "ltp_core.models.processor.WordsOnly"
74
+ },
75
+ "dep": {
76
+ "_ltp_target_": "ltp_core.models.processor.WordsWithHead"
77
+ },
78
+ "sdp": {
79
+ "_ltp_target_": "ltp_core.models.processor.WordsWithHead"
80
+ }
81
+ },
82
+ "heads": {
83
+ "cws": {
84
+ "_ltp_target_": "ltp_core.models.components.token.MLPTokenClassifier",
85
+ "input_size": 256,
86
+ "num_labels": 2,
87
+ "dropout": 0.1
88
+ },
89
+ "pos": {
90
+ "_ltp_target_": "ltp_core.models.components.token.MLPTokenClassifier",
91
+ "input_size": 256,
92
+ "num_labels": 27,
93
+ "dropout": 0.1
94
+ },
95
+ "ner": {
96
+ "_ltp_target_": "ltp_core.models.components.token.RelTransformerTokenClassifier",
97
+ "input_size": 256,
98
+ "num_labels": 13,
99
+ "dropout": 0.1,
100
+ "num_heads": 4,
101
+ "num_layers": 2
102
+ },
103
+ "srl": {
104
+ "_ltp_target_": "ltp_core.models.components.token.BiaffineTokenClassifier",
105
+ "input_size": 256,
106
+ "hidden_size": 300,
107
+ "num_labels": 97,
108
+ "dropout": 0.1,
109
+ "use_crf": true
110
+ },
111
+ "dep": {
112
+ "_ltp_target_": "ltp_core.models.components.graph.BiaffineClassifier",
113
+ "input_size": 256,
114
+ "num_labels": 14,
115
+ "dropout": 0.1,
116
+ "arc_hidden_size": 500,
117
+ "rel_hidden_size": 100
118
+ },
119
+ "sdp": {
120
+ "_ltp_target_": "ltp_core.models.components.graph.BiaffineClassifier",
121
+ "input_size": 256,
122
+ "num_labels": 56,
123
+ "arc_hidden_size": 600,
124
+ "rel_hidden_size": 600
125
+ }
126
+ }
127
+ },
128
+ "nerual": true,
129
+ "vocabs": {
130
+ "cws": [
131
+ "B-W",
132
+ "I-W"
133
+ ],
134
+ "pos": [
135
+ "n",
136
+ "v",
137
+ "wp",
138
+ "u",
139
+ "d",
140
+ "a",
141
+ "m",
142
+ "p",
143
+ "r",
144
+ "ns",
145
+ "c",
146
+ "q",
147
+ "nt",
148
+ "nh",
149
+ "nd",
150
+ "j",
151
+ "i",
152
+ "b",
153
+ "ni",
154
+ "nz",
155
+ "nl",
156
+ "z",
157
+ "k",
158
+ "ws",
159
+ "o",
160
+ "h",
161
+ "e"
162
+ ],
163
+ "ner": [
164
+ "O",
165
+ "S-Ns",
166
+ "S-Nh",
167
+ "B-Ni",
168
+ "E-Ni",
169
+ "I-Ni",
170
+ "S-Ni",
171
+ "B-Ns",
172
+ "E-Ns",
173
+ "I-Ns",
174
+ "B-Nh",
175
+ "E-Nh",
176
+ "I-Nh"
177
+ ],
178
+ "srl": [
179
+ "O",
180
+ "B-A0",
181
+ "B-A0-ADV",
182
+ "B-A0-CND",
183
+ "B-A0-CRD",
184
+ "B-A0-MNR",
185
+ "B-A0-PRD",
186
+ "B-A0-PSE",
187
+ "B-A0-PSR",
188
+ "B-A0-QTY",
189
+ "B-A1",
190
+ "B-A1-CRD",
191
+ "B-A1-DIS",
192
+ "B-A1-FRQ",
193
+ "B-A1-PRD",
194
+ "B-A1-PSE",
195
+ "B-A1-PSR",
196
+ "B-A1-QTY",
197
+ "B-A1-TPC",
198
+ "B-A2",
199
+ "B-A2-CRD",
200
+ "B-A2-PRD",
201
+ "B-A2-PSE",
202
+ "B-A2-PSR",
203
+ "B-A2-QTY",
204
+ "B-A3",
205
+ "B-A3-TMP",
206
+ "B-A4",
207
+ "B-ARGM-ADV",
208
+ "B-ARGM-BNF",
209
+ "B-ARGM-CND",
210
+ "B-ARGM-CRD",
211
+ "B-ARGM-DGR",
212
+ "B-ARGM-DIR",
213
+ "B-ARGM-DIS",
214
+ "B-ARGM-EXT",
215
+ "B-ARGM-FRQ",
216
+ "B-ARGM-LOC",
217
+ "B-ARGM-MNR",
218
+ "B-ARGM-PRD",
219
+ "B-ARGM-PRP",
220
+ "B-ARGM-QTY",
221
+ "B-ARGM-T",
222
+ "B-ARGM-TMP",
223
+ "B-ARGM-TPC",
224
+ "B-rel-ADV",
225
+ "B-rel-DIS",
226
+ "B-rel-EXT",
227
+ "B-rel-MNR",
228
+ "I-A0",
229
+ "I-A0-ADV",
230
+ "I-A0-CND",
231
+ "I-A0-CRD",
232
+ "I-A0-MNR",
233
+ "I-A0-PRD",
234
+ "I-A0-PSE",
235
+ "I-A0-PSR",
236
+ "I-A0-QTY",
237
+ "I-A1",
238
+ "I-A1-CRD",
239
+ "I-A1-DIS",
240
+ "I-A1-FRQ",
241
+ "I-A1-PRD",
242
+ "I-A1-PSE",
243
+ "I-A1-PSR",
244
+ "I-A1-QTY",
245
+ "I-A1-TPC",
246
+ "I-A2",
247
+ "I-A2-CRD",
248
+ "I-A2-PRD",
249
+ "I-A2-PSE",
250
+ "I-A2-PSR",
251
+ "I-A2-QTY",
252
+ "I-A3",
253
+ "I-A3-TMP",
254
+ "I-A4",
255
+ "I-ARGM-ADV",
256
+ "I-ARGM-BNF",
257
+ "I-ARGM-CND",
258
+ "I-ARGM-CRD",
259
+ "I-ARGM-DGR",
260
+ "I-ARGM-DIR",
261
+ "I-ARGM-DIS",
262
+ "I-ARGM-EXT",
263
+ "I-ARGM-FRQ",
264
+ "I-ARGM-LOC",
265
+ "I-ARGM-MNR",
266
+ "I-ARGM-PRD",
267
+ "I-ARGM-PRP",
268
+ "I-ARGM-QTY",
269
+ "I-ARGM-T",
270
+ "I-ARGM-TMP",
271
+ "I-ARGM-TPC",
272
+ "I-rel-ADV",
273
+ "I-rel-DIS",
274
+ "I-rel-EXT",
275
+ "I-rel-MNR"
276
+ ],
277
+ "dep": [
278
+ "ATT",
279
+ "WP",
280
+ "ADV",
281
+ "VOB",
282
+ "SBV",
283
+ "COO",
284
+ "RAD",
285
+ "HED",
286
+ "POB",
287
+ "CMP",
288
+ "LAD",
289
+ "FOB",
290
+ "DBL",
291
+ "IOB"
292
+ ],
293
+ "sdp": [
294
+ "mDEPD",
295
+ "mPUNC",
296
+ "FEAT",
297
+ "mRELA",
298
+ "Root",
299
+ "AGT",
300
+ "eSUCC",
301
+ "EXP",
302
+ "MEAS",
303
+ "eCOO",
304
+ "CONT",
305
+ "LOC",
306
+ "DATV",
307
+ "LINK",
308
+ "PAT",
309
+ "TIME",
310
+ "dCONT",
311
+ "SCO",
312
+ "MANN",
313
+ "mNEG",
314
+ "ePREC",
315
+ "dFEAT",
316
+ "rEXP",
317
+ "dEXP",
318
+ "dTIME",
319
+ "rCONT",
320
+ "rAGT",
321
+ "dLINK",
322
+ "STAT",
323
+ "REAS",
324
+ "rPAT",
325
+ "TOOL",
326
+ "dSTAT",
327
+ "dMANN",
328
+ "rTIME",
329
+ "rLOC",
330
+ "dDATV",
331
+ "rFEAT",
332
+ "MATL",
333
+ "rDATV",
334
+ "dREAS",
335
+ "dLOC",
336
+ "rLINK",
337
+ "dPAT",
338
+ "rMANN",
339
+ "rREAS",
340
+ "rTOOL",
341
+ "rMEAS",
342
+ "dSCO",
343
+ "dMEAS",
344
+ "rSCO",
345
+ "dAGT",
346
+ "rMATL",
347
+ "rSTAT",
348
+ "dTOOL",
349
+ "dMATL"
350
+ ]
351
+ }
352
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a64f412c8fc2181d228d1bea7da15f391dfe395f9073f97da250054f847869dc
3
+ size 179675533
vocab.txt ADDED
The diff for this file is too large to render. See raw diff