/
ner_few_shot_ru_simulate.json
145 lines (145 loc) · 2.99 KB
/
ner_few_shot_ru_simulate.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
{
"dataset_reader": {
"class_name": "conll2003_reader",
"dataset_name": "collection_rus",
"data_path": "{DOWNLOADS_PATH}/ner_few_shot_data/"
},
"dataset_iterator": {
"class_name": "ner_few_shot_iterator",
"target_tag": "PER"
},
"chainer": {
"in": [
"x"
],
"in_y": [
"tags"
],
"pipe": [
{
"in": [
"x"
],
"class_name": "lazy_tokenizer",
"out": [
"x_tokens"
]
},
{
"in": [
"tags"
],
"id": "tag_vocab",
"class_name": "simple_vocab",
"pad_with_zeros": false,
"fit_on": [
"tags"
],
"save_path": "{MODELS_PATH}/ner_fs/tag.dict",
"load_path": "{MODELS_PATH}/ner_fs/tag.dict",
"out": [
"tag_indices"
]
},
{
"class_name": "elmo_embedder",
"elmo_output_names": [
"lstm_outputs1",
"lstm_outputs2",
"word_emb"
],
"mini_batch_size": 32,
"in": [
"x_tokens"
],
"spec": "{DOWNLOADS_PATH}/embeddings/elmo_ru_news",
"out": [
"tokens_emb"
]
},
{
"class_name": "ner_svm",
"in": "tokens_emb",
"out": "tag_indices",
"fit_on": [
"tokens_emb",
"tag_indices"
],
"save_path": "{MODELS_PATH}/ner_fs/model",
"load_path": "{MODELS_PATH}/ner_fs/model"
},
{
"ref": "tag_vocab",
"in": [
"tag_indices"
],
"out": [
"tags_hat"
]
},
{
"class_name": "ner_bio_converter",
"in": [
"tags_hat"
],
"out": [
"tags_bio_hat"
]
},
{
"class_name": "ner_bio_converter",
"in": [
"tags"
],
"out": [
"tags_bio"
]
}
],
"out": [
"x_tokens",
"tags_bio_hat"
]
},
"train": {
"epochs": 100,
"batch_size": 64,
"metrics": [
{
"name": "ner_f1",
"inputs": [
"tags_bio",
"tags_bio_hat"
]
}
],
"validation_patience": 7,
"val_every_n_epochs": 1,
"log_every_n_epochs": 1,
"show_examples": false,
"tensorboard_log_dir": "{MODELS_PATH}/ner_fs/logs",
"class_name": "fit_trainer",
"evaluation_targets": [
"valid",
"test"
]
},
"metadata": {
"variables": {
"ROOT_PATH": "~/.deeppavlov",
"DOWNLOADS_PATH": "{ROOT_PATH}/downloads",
"MODELS_PATH": "{ROOT_PATH}/models"
},
"requirements": [
"{DEEPPAVLOV_PATH}/requirements/fasttext.txt",
"{DEEPPAVLOV_PATH}/requirements/tf.txt",
"{DEEPPAVLOV_PATH}/requirements/tf-hub.txt"
],
"download": [
{
"url": "http://files.deeppavlov.ai/deeppavlov_data/elmo_ru-news_wmt11-16_1.5M_steps.tar.gz",
"subdir": "{DOWNLOADS_PATH}/embeddings/elmo_ru_news"
}
]
}
}