-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
bert_as_summarizer_with_init.json
41 lines (39 loc) · 1.33 KB
/
bert_as_summarizer_with_init.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
{
"chainer": {
"in": ["texts", "init_sentences"],
"pipe": [
{
"class_name": "bert_as_summarizer",
"bert_config_file": "{DOWNLOADS_PATH}/bert_models/rubert_cased_L-12_H-768_A-12_v2/bert_config.json",
"pretrained_bert": "{DOWNLOADS_PATH}/bert_models/rubert_cased_L-12_H-768_A-12_v2/bert_model.ckpt",
"vocab_file": "{DOWNLOADS_PATH}/bert_models/rubert_cased_L-12_H-768_A-12_v2/vocab.txt",
"max_summary_length": 100,
"max_summary_length_in_tokens": true,
"lang": "ru",
"do_lower_case": false,
"max_seq_length": 512,
"in": ["texts", "init_sentences"],
"out": ["summarized_text"]
}
],
"out": ["summarized_text"]
},
"metadata": {
"variables": {
"ROOT_PATH": "~/.deeppavlov",
"DOWNLOADS_PATH": "{ROOT_PATH}/downloads",
"MODELS_PATH": "{ROOT_PATH}/models",
"CONFIGS_PATH": "{DEEPPAVLOV_PATH}/configs"
},
"requirements": [
"{DEEPPAVLOV_PATH}/requirements/tf.txt",
"{DEEPPAVLOV_PATH}/requirements/bert_dp.txt"
],
"download": [
{
"url": "http://files.deeppavlov.ai/deeppavlov_data/bert/rubert_cased_L-12_H-768_A-12_v2.tar.gz",
"subdir": "{DOWNLOADS_PATH}/bert_models"
}
]
}
}