/
en_ranker_pop_enwiki20180211.json
103 lines (103 loc) · 2.53 KB
/
en_ranker_pop_enwiki20180211.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
{
"dataset_reader": {
"class_name": "odqa_reader",
"data_path": "{DOWNLOADS_PATH}/odqa/enwiki",
"save_path": "{DOWNLOADS_PATH}/odqa/enwiki.db",
"dataset_format": "wiki"
},
"dataset_iterator": {
"class_name": "sqlite_iterator",
"shuffle": false,
"load_path": "{DOWNLOADS_PATH}/odqa/enwiki.db"
},
"chainer": {
"in": [
"docs"
],
"in_y": [
"doc_ids",
"doc_nums"
],
"out": [
"pop_doc_ids"
],
"pipe": [
{
"class_name": "hashing_tfidf_vectorizer",
"id": "vectorizer",
"fit_on_batch": [
"docs",
"doc_ids",
"doc_nums"
],
"save_path": "{MODELS_PATH}/odqa/enwiki_tfidf_matrix.npz",
"load_path": "{MODELS_PATH}/odqa/enwiki_tfidf_matrix.npz",
"tokenizer": {
"class_name": "stream_spacy_tokenizer",
"lemmas": true,
"ngram_range": [
1,
2
]
}
},
{
"class_name": "tfidf_ranker",
"top_n": 20,
"in": [
"docs"
],
"out": [
"tfidf_doc_ids",
"tfidf_doc_scores"
],
"vectorizer": "#vectorizer"
},
{
"class_name": "pop_ranker",
"pop_dict_path": "{DOWNLOADS_PATH}/odqa/enwiki20180211_popularities.json",
"load_path": "{MODELS_PATH}/odqa/logreg_3features.joblib",
"top_n": 10,
"in": ["tfidf_doc_ids", "tfidf_doc_scores"],
"out": ["pop_doc_ids", "pop_doc_scores"]
}
]
},
"train": {
"validate_best": false,
"test_best": false,
"batch_size": 10000
},
"metadata": {
"variables": {
"ROOT_PATH": "~/.deeppavlov",
"DOWNLOADS_PATH": "{ROOT_PATH}/downloads",
"MODELS_PATH": "{ROOT_PATH}/models"
},
"requirements": [
"{DEEPPAVLOV_PATH}/requirements/spacy.txt",
"{DEEPPAVLOV_PATH}/requirements/en_core_web_sm.txt"
],
"labels": {
"server_utils": "Ranker"
},
"download": [
{
"url": "http://files.deeppavlov.ai/datasets/wikipedia/enwiki.tar.gz",
"subdir": "{DOWNLOADS_PATH}"
},
{
"url": "http://files.deeppavlov.ai/deeppavlov_data/en_odqa.tar.gz",
"subdir": "{MODELS_PATH}"
},
{
"url": "http://files.deeppavlov.ai/datasets/wikipedia/enwiki20180211_popularities.tar.gz",
"subdir": "{DOWNLOADS_PATH}"
},
{
"url": "http://files.deeppavlov.ai/deeppavlov_data/pop_ranker.tar.gz",
"subdir": "{MODELS_PATH}"
}
]
}
}