/
en_odqa_infer_wiki.json
51 lines (51 loc) · 1.35 KB
/
en_odqa_infer_wiki.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
{
"chainer": {
"in": ["question_raw"],
"out": ["answer", "answer_score", "answer_place"],
"pipe": [
{
"config_path": "{CONFIGS_PATH}/doc_retrieval/en_ranker_tfidf_wiki.json",
"in": ["question_raw"],
"out": ["tfidf_doc_ids"]
},
{
"class_name": "wiki_sqlite_vocab",
"in": ["tfidf_doc_ids"],
"out": ["tfidf_doc_text"],
"join_docs": false,
"shuffle": false,
"load_path": "{DOWNLOADS_PATH}/odqa/enwiki.db"
},
{
"class_name": "document_chunker",
"in": ["tfidf_doc_text"],
"out": ["chunks"],
"flatten_result": true,
"paragraphs": true
},
{
"class_name": "string_multiplier",
"in": ["question_raw", "chunks"],
"out":["questions"]
},
{
"class_name": "logit_ranker",
"batch_size": 64,
"squad_model": {"config_path": "{CONFIGS_PATH}/squad/multi_squad_noans_infer.json"},
"sort_noans": true,
"in": ["chunks", "questions"],
"out": ["answer", "answer_score", "answer_place"]
}
]
},
"metadata": {
"variables": {
"ROOT_PATH": "~/.deeppavlov",
"DOWNLOADS_PATH": "{ROOT_PATH}/downloads",
"MODELS_PATH": "{ROOT_PATH}/models",
"CONFIGS_PATH": "{DEEPPAVLOV_PATH}/configs"
},
"download": [
]
}
}