build_model_from_config('config.json') failed
Created by: ismaslov
Hello all,
I'm trying to execute the following code:
from deeppavlov.core.commands.infer import build_model_from_config
vocab = build_model_from_config('config/dstc2_vocab_config.json')
and catches the error:
File "~/pytest/lib/python3.6/site-packages/deeppavlov/core/commands/infer.py", line 29, in build_model_from_config
set_deeppavlov_root(config)
File "~/pytest/lib/python3.6/site-packages/deeppavlov/core/commands/utils.py", line 29, in set_deeppavlov_root
deeppavlov_root = Path(config['deeppavlov_root'])
TypeError: string indices must be integers
I think this function should read and parse json-file with config like train_evaluate_model_from_config for example.