/
levenshtein_corrector_ru.json
67 lines (67 loc) · 1.86 KB
/
levenshtein_corrector_ru.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
{
"chainer":{
"in": ["x"],
"pipe": [
{
"class_name": "str_lower",
"id": "lower",
"in": ["x"],
"out": ["x_lower"]
},
{
"class_name": "nltk_moses_tokenizer",
"id": "tokenizer",
"in": ["x_lower"],
"out": ["x_tokens"]
},
{
"id": "vocab",
"class_name": "simple_vocab",
"save_path": "{DOWNLOADS_PATH}/vocabs/russian_words_vocab.dict",
"load_path": "{DOWNLOADS_PATH}/vocabs/russian_words_vocab.dict"
},
{
"in": ["x_tokens"],
"out": ["tokens_candidates"],
"class_name": "deeppavlov.models.spelling_correction.levenshtein.searcher_component:LevenshteinSearcherComponent",
"words": "#vocab.keys()"
},
{
"class_name": "deeppavlov.models.spelling_correction.electors.kenlm_elector:KenlmElector",
"in": ["tokens_candidates"],
"out": ["y_predicted_tokens"],
"load_path": "{DOWNLOADS_PATH}/language_models/ru_wiyalen_no_punkt.arpa.binary"
},
{
"ref": "tokenizer",
"in": ["y_predicted_tokens"],
"out": ["y_predicted"]
}
],
"out": ["y_predicted"]
},
"metadata": {
"variables": {
"ROOT_PATH": "~/.deeppavlov",
"DOWNLOADS_PATH": "{ROOT_PATH}/downloads",
"MODELS_PATH": "{ROOT_PATH}/models"
},
"requirements": [
"{DEEPPAVLOV_PATH}/requirements/spelling.txt"
],
"labels": {
"telegram_utils": "ErrorModel",
"server_utils": "ErrorModel"
},
"download": [
{
"url": "http://files.deeppavlov.ai/deeppavlov_data/vocabs/russian_words_vocab.dict.gz",
"subdir": "{DOWNLOADS_PATH}/vocabs"
},
{
"url": "http://files.deeppavlov.ai/lang_models/ru_wiyalen_no_punkt.arpa.binary.gz",
"subdir": "{DOWNLOADS_PATH}/language_models"
}
]
}
}