/
gobot_dstc2_minimal.json
121 lines (119 loc) · 3.36 KB
/
gobot_dstc2_minimal.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
{
"dataset_reader": {
"class_name": "dstc2_reader",
"data_path": "{DATA_PATH}"
},
"dataset_iterator": {
"class_name": "dialog_iterator"
},
"chainer": {
"in": ["x"],
"in_y": ["y"],
"out": ["y_predicted"],
"pipe": [
{
"class_name": "deeppavlov.models.go_bot.wrapper:DialogComponentWrapper",
"component": { "class_name": "split_tokenizer" },
"in": ["x"],
"out": ["x_tokens"]
},
{
"id": "word_vocab",
"class_name": "simple_vocab",
"fit_on": ["x_tokens"],
"save_path": "{MODEL_PATH}/word.dict",
"load_path": "{MODEL_PATH}/word.dict"
},
{
"class_name": "go_bot",
"load_path": "{MODEL_PATH}/model",
"save_path": "{MODEL_PATH}/model",
"in": ["x"],
"in_y": ["y"],
"out": ["y_predicted"],
"main": true,
"debug": false,
"learning_rate": 0.003,
"learning_rate_drop_patience": 5,
"learning_rate_drop_div": 10.0,
"momentum": 0.95,
"optimizer": "tensorflow.train:AdamOptimizer",
"clip_norm": 2.0,
"dropout_rate": 0.4,
"l2_reg_coef": 3e-4,
"hidden_size": 128,
"dense_size": 160,
"word_vocab": "#word_vocab",
"database": null,
"nlg_manager": {
"class_name": "gobot_nlg_manager",
"template_path": "{DATA_PATH}/dstc2-templates.txt",
"template_type": "DualTemplate",
"api_call_action": "api_call"
},
"api_call_action": null,
"use_action_mask": false,
"slot_filler": null,
"intent_classifier": null,
"embedder": {
"class_name": "glove",
"load_path": "{DOWNLOADS_PATH}/embeddings/glove.6B.100d.txt"
},
"bow_embedder": null,
"tokenizer": {
"class_name": "stream_spacy_tokenizer",
"lowercase": false
},
"tracker": {
"class_name": "featurized_tracker",
"slot_names": ["pricerange", "this", "area", "food", "name"]
}
}
]
},
"train": {
"epochs": 200,
"batch_size": 4,
"metrics": ["per_item_dialog_accuracy"],
"validation_patience": 10,
"val_every_n_batches": 15,
"log_every_n_batches": 15,
"log_on_k_batches": -1,
"show_examples": false,
"evaluation_targets": [
"valid",
"test"
],
"class_name": "nn_trainer"
},
"metadata": {
"variables": {
"ROOT_PATH": "~/.deeppavlov",
"CONFIGS_PATH": "{DEEPPAVLOV_PATH}/configs",
"DOWNLOADS_PATH": "{ROOT_PATH}/downloads",
"DATA_PATH": "{DOWNLOADS_PATH}/dstc2_v3",
"MODELS_PATH": "{ROOT_PATH}/models",
"MODEL_PATH": "{MODELS_PATH}/gobot_dstc2_minimal"
},
"requirements": [
"{DEEPPAVLOV_PATH}/requirements/tf.txt",
"{DEEPPAVLOV_PATH}/requirements/gensim.txt",
"{DEEPPAVLOV_PATH}/requirements/spacy.txt",
"{DEEPPAVLOV_PATH}/requirements/en_core_web_sm.txt"
],
"download": [
{
"url": "http://files.deeppavlov.ai/deeppavlov_data/gobot_dstc2_v9.tar.gz",
"subdir": "{MODELS_PATH}"
},
{
"url": "http://files.deeppavlov.ai/embeddings/glove.6B.100d.txt",
"subdir": "{DOWNLOADS_PATH}/embeddings"
},
{
"url": "http://files.deeppavlov.ai/datasets/dstc2_v3.tar.gz",
"subdir": "{DATA_PATH}"
}
]
}
}