-
Notifications
You must be signed in to change notification settings - Fork 1
/
intent_catcher_config.json
97 lines (97 loc) · 2.06 KB
/
intent_catcher_config.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
{
"dataset_reader": {
"class_name": "intent_catcher_reader",
"data_path": "{DOWNLOADS_PATH}/intent_catcher_data"
},
"dataset_iterator": {
"class_name": "basic_classification_iterator",
"seed": 42
},
"chainer": {
"in": [
"x"
],
"in_y": [
"y"
],
"pipe": [
{
"id": "classes_vocab",
"class_name": "simple_vocab",
"fit_on": [
"y"
],
"save_path": "{MODEL_PATH}/classes.dict",
"load_path": "{MODEL_PATH}/classes.dict",
"in": "y",
"out": "y_ids"
},
{
"in": [
"x"
],
"in_y": [
"y_ids"
],
"out": [
"y_pred_probas"
],
"class_name": "intent_catcher",
"embeddings": "use",
"limit": 20,
"multilabel": false,
"number_of_layers": 6,
"number_of_intents": 4,
"hidden_dim": 1024,
"save_path": "{MODEL_PATH}/model",
"load_path": "{MODEL_PATH}/model",
"mode": "train"
},
{
"in": "y_pred_probas",
"out": "y_pred_ids",
"class_name": "proba2labels",
"max_proba": true
},
{
"in": "y_pred_ids",
"out": "y_pred_labels",
"ref": "classes_vocab"
}
],
"out": [
"y_pred_labels"
]
},
"train": {
"epochs": 400,
"batch_size": 50,
"metrics": [
"accuracy",
"f1_macro"
],
"validation_patience": 3,
"val_every_n_epochs": 50,
"log_every_n_epochs": 5,
"show_examples": false,
"evaluation_targets": [
"valid",
"test"
],
"class_name": "nn_trainer"
},
"metadata": {
"variables": {
"ROOT_PATH": "files",
"DOWNLOADS_PATH": "{ROOT_PATH}/downloads",
"MODELS_PATH": "{ROOT_PATH}/models",
"MODEL_PATH": "{MODELS_PATH}/classifiers/intent_catcher"
},
"download": [
{
"url": "http://files.deeppavlov.ai/deeppavlov_data/intent_catcher/intent_catcher.tar.gz",
"subdir": "{MODELS_PATH}/classifiers"
}
]
}
}