@Vasily
Здравствуйте, прочёл вашу статью (Open-domain question answering with DeepPavlov | by Vasily Konovalov | DeepPavlov | Medium) и посмотрел видеоролик (Школа Алисы. Как использовать библиотеки DeepPavlov для ответа на часто задаваемые вопросы клиентов? - YouTube), где вы рассказывали как реализовать обучение по данному методу. Спасибо, за очень подробное объяснение!
На основе статей я переписал код:
код - test_deeppavlov/obuchenie.py at main · NikitaAkimov/test_deeppavlov · GitHub
К сожалению вылезает ошибка, которую я не могу ни как решить:
2021-04-05 21:40:03.976 INFO in ‘deeppavlov.download’[‘download’] at line 138: Skipped http://files.deeppavlov.ai/vectorizer/tfidf_vectorizer_ruwiki.pkl download because of matching hashes
2021-04-05 21:40:04.99 INFO in ‘deeppavlov.download’[‘download’] at line 138: Skipped http://files.deeppavlov.ai/faq/school/tfidf_cos_sim_classifier.pkl download because of matching hashes
Traceback (most recent call last):
File “obuchenie.py”, line 8, in
train = True)
File “/root/deepSearch_DoctorAi/env/lib/python3.7/site-packages/deeppavlov/deprecated/skills/similarity_matching_skill/similarity_matching_skill.py”, line 80, in init
self.model = train_model(model_config, download=True)
File “/root/deepSearch_DoctorAi/env/lib/python3.7/site-packages/deeppavlov/init.py”, line 29, in train_model
train_evaluate_model_from_config(config, download=download, recursive=recursive)
File “/root/deepSearch_DoctorAi/env/lib/python3.7/site-packages/deeppavlov/core/commands/train.py”, line 92, in train_evaluate_model_from_config
data = read_data_by_config(config)
File “/root/deepSearch_DoctorAi/env/lib/python3.7/site-packages/deeppavlov/core/commands/train.py”, line 51, in read_data_by_config
reader = get_model(reader_config.pop(‘class_name’))()
File “/root/deepSearch_DoctorAi/env/lib/python3.7/site-packages/deeppavlov/core/common/registry.py”, line 72, in get_model
return cls_from_str(_REGISTRY[name])
File “/root/deepSearch_DoctorAi/env/lib/python3.7/site-packages/deeppavlov/core/common/registry.py”, line 40, in cls_from_str
return getattr(importlib.import_module(module_name), cls_name)
File “/usr/local/lib/python3.7/importlib/init.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1006, in _gcd_import
File “”, line 983, in _find_and_load
File “”, line 967, in _find_and_load_unlocked
File “”, line 677, in _load_unlocked
File “”, line 728, in exec_module
File “”, line 219, in _call_with_frames_removed
File “/root/deepSearch_DoctorAi/env/lib/python3.7/site-packages/deeppavlov/dataset_readers/faq_reader.py”, line 17, in
from pandas import read_csv
File “/root/deepSearch_DoctorAi/env/lib/python3.7/site-packages/pandas/init.py”, line 55, in
from pandas.core.api import (
File “/root/deepSearch_DoctorAi/env/lib/python3.7/site-packages/pandas/core/api.py”, line 24, in
from pandas.core.groupby import Grouper, NamedAgg
File “/root/deepSearch_DoctorAi/env/lib/python3.7/site-packages/pandas/core/groupby/init.py”, line 1, in
from pandas.core.groupby.generic import ( # noqa: F401
File “/root/deepSearch_DoctorAi/env/lib/python3.7/site-packages/pandas/core/groupby/generic.py”, line 44, in
from pandas.core.frame import DataFrame
File “/root/deepSearch_DoctorAi/env/lib/python3.7/site-packages/pandas/core/frame.py”, line 88, in
from pandas.core.generic import NDFrame, _shared_docs
File “/root/deepSearch_DoctorAi/env/lib/python3.7/site-packages/pandas/core/generic.py”, line 70, in
from pandas.io.formats.format import DataFrameFormatter, format_percentiles
File “/root/deepSearch_DoctorAi/env/lib/python3.7/site-packages/pandas/io/formats/format.py”, line 48, in
from pandas.io.common import _expand_user, _stringify_path
File “/root/deepSearch_DoctorAi/env/lib/python3.7/site-packages/pandas/io/common.py”, line 3, in
import bz2
File “/usr/local/lib/python3.7/bz2.py”, line 19, in
from _bz2 import BZ2Compressor, BZ2Decompressor
ModuleNotFoundError: No module named ‘_bz2’
Не подскажите как устранить данную ошибку и обучить сеть на собственном датасете?
Спасибо!