forked from deeppavlov/DeepPavlov
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathintents_sample_json.json
128 lines (128 loc) · 2.92 KB
/
intents_sample_json.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
{
"dataset": {
"type": "classification",
"format": "json",
"orient": "records",
"lines": true,
"data_path": "sample",
"train": "sample.json",
"x": "text",
"y": "intents",
"url": "http://lnsigo.mipt.ru/export/datasets/snips_intents/train.json",
"seed": 42,
"field_to_split": "train",
"split_fields": [
"train",
"valid"
],
"split_proportions": [
0.9,
0.1
]
},
"chainer": {
"in": [
"x"
],
"in_y": [
"y"
],
"pipe": [
{
"id": "classes_vocab",
"name": "default_vocab",
"fit_on": [
"y"
],
"level": "token",
"save_path": "vocabs/snips_classes.dict",
"load_path": "vocabs/snips_classes.dict"
},
{
"id": "my_embedder",
"name": "fasttext",
"save_path": "embeddings/dstc2_fastText_model.bin",
"load_path": "embeddings/dstc2_fastText_model.bin",
"dim": 100
},
{
"id": "my_tokenizer",
"name": "nltk_tokenizer",
"tokenizer": "wordpunct_tokenize"
},
{
"in": [
"x"
],
"in_y": [
"y"
],
"out": [
"y_labels",
"y_probas_dict"
],
"main": true,
"name": "intent_model",
"save_path": "intents/intent_cnn_snips_v4",
"load_path": "intents/intent_cnn_snips_v4",
"classes": "#classes_vocab.keys()",
"kernel_sizes_cnn": [
1,
2,
3
],
"filters_cnn": 256,
"confident_threshold": 0.5,
"optimizer": "Adam",
"lear_rate": 0.01,
"lear_rate_decay": 0.1,
"loss": "binary_crossentropy",
"text_size": 15,
"coef_reg_cnn": 1e-4,
"coef_reg_den": 1e-4,
"dropout_rate": 0.5,
"dense_size": 100,
"model_name": "cnn_model",
"embedder": "#my_embedder",
"tokenizer": "#my_tokenizer"
}
],
"out": [
"y_labels",
"y_probas_dict"
]
},
"train": {
"epochs": 100,
"batch_size": 64,
"metrics": [
"classification_accuracy",
"classification_f1",
"classification_roc_auc"
],
"validation_patience": 5,
"val_every_n_epochs": 1,
"log_every_n_epochs": 1,
"show_examples": false,
"validate_best": true,
"test_best": false
},
"metadata": {
"labels": {
"telegram_utils": "IntentModel",
"server_utils": "KerasIntentModel"
},
"download": [
"http://lnsigo.mipt.ru/export/deeppavlov_data/intents.tar.gz",
"http://lnsigo.mipt.ru/export/deeppavlov_data/vocabs.tar.gz",
{
"url": "http://lnsigo.mipt.ru/export/datasets/snips_intents/train.json",
"subdir": "sample"
},
{
"url": "http://lnsigo.mipt.ru/export/deeppavlov_data/embeddings/dstc2_fastText_model.bin",
"subdir": "embeddings"
}
]
}
}