/
vlsp2016_full.json
174 lines (174 loc) · 4.48 KB
/
vlsp2016_full.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
{
"dataset_reader": {
"class_name": "conll2003_reader",
"data_path": "{DOWNLOADS_PATH}/vlsp2016/",
"dataset_name": "vlsp2016",
"provide_pos": true,
"provide_chunk": true,
"iobes": true
},
"dataset_iterator": {
"class_name": "data_learning_iterator"
},
"chainer": {
"in": ["x", "pos", "chunk"],
"in_y": ["y"],
"pipe": [
{
"in": ["x"],
"out": ["x_tokens"],
"class_name": "lazy_tokenizer"
},
{
"in": ["pos"],
"out": ["pos_tokens"],
"class_name": "lazy_tokenizer"
},
{
"in": ["chunk"],
"out": ["chunk_tokens"],
"class_name": "lazy_tokenizer"
},
{
"in": ["x_tokens"],
"out": ["x_lower", "sent_lengths"],
"class_name": "ner_preprocessor",
"id": "ner_preprocessor",
"get_x_padded_for_elmo": false,
"get_x_cap_padded": false
},
{
"in": ["x_lower"],
"out": ["x_tok_ind"],
"fit_on": ["x_lower"],
"class_name": "ner_vocab",
"id": "word_vocab",
"save_path": "{MODELS_PATH}/word.dict",
"load_path": "{MODELS_PATH}/word.dict"
},
{
"in": ["pos_tokens"],
"out": ["pos_ind"],
"fit_on": ["pos_tokens"],
"class_name": "ner_vocab",
"id": "pos_vocab",
"save_path": "{MODELS_PATH}/pos.dict",
"load_path": "{MODELS_PATH}/pos.dict"
},
{
"in": ["chunk_tokens"],
"out": ["chunk_ind"],
"fit_on": ["chunk_tokens"],
"class_name": "ner_vocab",
"id": "chunk_vocab",
"save_path": "{MODELS_PATH}/chunk.dict",
"load_path": "{MODELS_PATH}/chunk.dict"
},
{
"in": ["y"],
"out": ["y_ind"],
"fit_on": ["y"],
"class_name": "ner_vocab",
"id": "tag_vocab",
"save_path": "{MODELS_PATH}/tag.dict",
"load_path": "{MODELS_PATH}/tag.dict"
},
{
"in": ["x_tokens"],
"out": ["x_char"],
"class_name": "char_splitter"
},
{
"in": ["x_tokens"],
"out": ["x_char_ind"],
"fit_on": ["x_tokens"],
"class_name": "ner_vocab",
"char_level": true,
"id": "char_vocab",
"save_path": "{MODELS_PATH}/char.dict",
"load_path": "{MODELS_PATH}/char.dict"
},
{
"in":[
"sent_lengths",
"x_tok_ind",
"pos_ind",
"chunk_ind",
"x_char_ind"
],
"in_y": ["y_ind"],
"out": ["y_predicted"],
"class_name": "hybrid_ner_model",
"n_tags": "#tag_vocab.len",
"word_emb_path": "{DOWNLOADS_PATH}/embeddings/baomoi.bin",
"word_emb_name": "baomoi",
"word_dim": 300,
"word_vocab": "#word_vocab",
"char_vocab_size": "#char_vocab.len",
"pos_vocab_size": "#pos_vocab.len",
"chunk_vocab_size": "#chunk_vocab.len",
"pos_dim": 40,
"chunk_dim": 40,
"char_dim": 100,
"lstm_hidden_size": 256,
"save_path": "{MODELS_PATH}/vlsp2016_full",
"load_path": "{MODELS_PATH}/vlsp2016_full",
"learning_rate": 1e-3,
"learning_rate_drop_patience": 5,
"learning_rate_drop_div": 10,
"dropout_keep_prob": 0.7
},
{
"in": ["y_predicted"],
"out": ["tags"],
"class_name": "convert_ids2tags",
"id2tag": "#tag_vocab.i2t"
}
],
"out": ["x_tokens", "tags"]
},
"train": {
"epochs": 100,
"batch_size": 64,
"metrics": [
{
"name": "ner_f1",
"inputs": ["y", "tags"]
},
{
"name": "ner_token_f1",
"inputs": ["y", "tags"]
}
],
"validation_patience": 10,
"val_every_n_epochs": 1,
"log_every_n_epochs": 1,
"show_examples": false,
"class_name": "nn_trainer",
"evaluation_targets": [
"valid",
"test"
]
},
"metadata": {
"variables": {
"ROOT_PATH": "~/.deeppavlov",
"DOWNLOADS_PATH": "{ROOT_PATH}/downloads",
"MODELS_PATH": "{ROOT_PATH}/models/vlsp2016_full"
},
"requirements": [
"{DEEPPAVLOV_PATH}/requirements/gensim.txt",
"{DEEPPAVLOV_PATH}/requirements/tf.txt"
],
"download": [
{
"url": "http://files.deeppavlov.ai/deeppavlov_data/ner_vlsp2016_full.tar.gz",
"subdir": "{MODELS_PATH}"
},
{
"url": "http://files.deeppavlov.ai/embeddings/baomoi.bin",
"subdir": "{DOWNLOADS_PATH}/embeddings"
}
]
}
}