Train squad_ru_rubert_infer on own data

Hi!

I want to train model squad_ru_bert_infer on my own data, but after reading a documentation I still don’t understand how I can do it. Maybe there is some tutorial I didn’t see

Hi!

Configuration file squad_ru_bert_infer was made to be used for inference only. In case of long input text it splits text on chunks and looks for an answer in each chunk then returns the most probable one.

If you want to train a model on your data you should take a look on squad_ru_bert or squad_ru_rubert configurations. Training data should be in the same format as in https://github.com/deepmipt/DeepPavlov/blob/master/deeppavlov/configs/squad/squad_ru_bert.json#L5
and you should change data_path with path to your data.

Then training could be run with:

python -m deeppavlov train your_config_name