/
ner_ontonotes_m1.json
131 lines (131 loc) · 3.33 KB
/
ner_ontonotes_m1.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
{
"dataset_reader": {
"class_name": "conll2003_reader",
"data_path": "{DOWNLOADS_PATH}/ontonotes/",
"dataset_name": "ontonotes",
"provide_pos": false,
"provide_chunk": false,
"iobes": true
},
"dataset_iterator": {
"class_name": "data_learning_iterator"
},
"chainer": {
"in": ["x"],
"in_y": ["y"],
"pipe": [
{
"in": ["x"],
"out": ["x_tokens"],
"class_name": "lazy_tokenizer"
},
{
"in": ["x_tokens"],
"out": ["x_lower", "sent_lengths", "x_tokens_elmo"],
"class_name": "ner_preprocessor",
"get_x_padded_for_elmo": true
},
{
"in": ["x_lower"],
"out": ["x_tok_ind"],
"fit_on": ["x_lower"],
"class_name": "ner_vocab",
"id": "word_vocab",
"save_path": "{MODEL_PATH}/word.dict",
"load_path": "{MODEL_PATH}/word.dict"
},
{
"in": ["y"],
"out": ["y_ind"],
"fit_on": ["y"],
"class_name": "ner_vocab",
"id": "tag_vocab",
"save_path": "{MODEL_PATH}/tag.dict",
"load_path": "{MODEL_PATH}/tag.dict"
},
{
"in": ["x_tokens"],
"out": ["x_char_ind"],
"fit_on": ["x_tokens"],
"class_name": "ner_vocab",
"char_level": true,
"id": "char_vocab",
"save_path": "{MODEL_PATH}/char.dict",
"load_path": "{MODEL_PATH}/char.dict"
},
{
"in":[
"sent_lengths",
"x_tok_ind",
"x_char_ind",
"x_tokens_elmo"
],
"in_y": ["y_ind"],
"out": ["y_predicted"],
"class_name": "hybrid_ner_model",
"n_tags": "#tag_vocab.len",
"word_emb_path": "{DOWNLOADS_PATH}/embeddings/glove.6B.100d.txt",
"word_emb_name": "glove",
"word_dim": 100,
"word_vocab": "#word_vocab",
"char_vocab_size": "#char_vocab.len",
"char_dim": 100,
"elmo_dim": 128,
"lstm_hidden_size": 256,
"save_path": "{MODEL_PATH}/ontonotes",
"load_path": "{MODEL_PATH}/ontonotes",
"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",
"MODEL_PATH": "{ROOT_PATH}/models/ontonotes"
},
"download": [
{
"url": "http://files.deeppavlov.ai/deeppavlov_data/ner_ontonotes_m1.tar.gz",
"subdir": "{MODEL_PATH}"
},
{
"url": "http://files.deeppavlov.ai/embeddings/glove.6B.100d.txt",
"subdir": "{DOWNLOADS_PATH}/embeddings"
}
]
}
}