forked from deeppavlov/DeepPavlov
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathranking_insurance.json
79 lines (79 loc) · 2.09 KB
/
ranking_insurance.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
{
"dataset_reader": {
"name": "insurance_reader",
"data_path": "./insurance_data"
},
"dataset_iterator": {
"name": "ranking_iterator",
"seed": 243,
"len_vocab": 24981,
"sample_candidates": "global",
"sample_candidates_valid": "pool",
"sample_candidates_test": "pool",
"num_negative_samples": 500,
"num_ranking_samples_valid": 500,
"num_ranking_samples_test": 500
},
"chainer": {
"in": ["x"],
"in_y": ["y"],
"pipe": [
{
"in": ["x"],
"in_y": ["y"],
"out": ["y_predicted"],
"name": "ranking_model",
"device_num": 0,
"train_now": true,
"vocab_name": "insurance",
"vocabs_path": "insurance_data/insuranceQA-master/V1",
"embeddings": "fasttext",
"embeddings_path": "insurance_embeddings/wiki.en.bin",
"embedding_dim": 300,
"use_matrix": false,
"seed": 243,
"max_sequence_length": 200,
"reccurent": "bilstm",
"max_pooling": true,
"type_of_weights": "shared",
"hidden_dim": 300,
"learning_rate": 1e-3,
"margin": 0.1,
"save_path": "insurance_ranking/model_weights.h5",
"load_path": "insurance_ranking/model_weights.h5",
"interact_pred_num": 3
}
],
"out": ["y_predicted"]
},
"train": {
"epochs": 200,
"batch_size": 256,
"pytest_max_batches": 2,
"metrics": ["r@1", "rank_response", "loss"],
"validation_patience": 5,
"val_every_n_epochs": 10,
"log_every_n_batches": 10
},
"metadata": {
"requirements": [
"../dp_requirements/tf.txt",
"../dp_requirements/gensim.txt"
],
"labels": {
"telegram_utils": "RankingModel",
"server_utils": "Ranker"
},
"download": [
"http://lnsigo.mipt.ru/export/deeppavlov_data/insurance_ranking.tar.gz",
{
"url": "http://lnsigo.mipt.ru/export/datasets/insuranceQA-master.zip",
"subdir": "insurance_data"
},
{
"url": "http://lnsigo.mipt.ru/export/embeddings/wiki.en.bin",
"subdir": "insurance_embeddings"
}
]
}
}