Не работает библиотека DeepPavlov

Здравствуйте, не могу корректно работать с библиотекой DeepPavlov на удалённом сервере.

Сервер я использую VPS reg.ru - 4 ГБ • 2 ядра • 25 ГБ SSD

Ход действий установки на сервере.

Установка Python 3.7.10

sudo apt update - обновляю список пакетов

sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev wget - установка пакетов

wget https://www.python.org/ftp/python/3.7.10/Python-3.7.10.tgz

tar -xf Python-3.7.10.tgz

cd Python-3.7.10

./configure --enable-optimizations

make -j 2

sudo make altinstall

Установка DeepPavlov

mkdir test_programm

cd test_programm

virtualenv env -p python3.7

source env/bin/activate

pip install deeppavlov

python -m deeppavlov install tfidf_logreg_en_faq

python -m deeppavlov interact tfidf_logreg_en_faq -d

В последнем пункте появлятся сообщение:

2021-04-20 12:45:49.778 INFO in 'deeppavlov.core.common.file'['file'] at line 32: Interpreting 'tfidf_logreg_en_faq' as '/root/test_programm/env/lib/python3.7/site-packages/deeppavlov/configs/faq/tfidf_logreg_en_faq.json' 2021-04-20 12:45:50.896 INFO in 'deeppavlov.download'['download'] at line 132: Skipped http://files.deeppavlov.ai/faq/mipt/en_mipt_faq_v4.tar.gz?config=tfidf_logreg_en_faq download because of matching hashes Traceback (most recent call last): File "/usr/local/lib/python3.7/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/usr/local/lib/python3.7/runpy.py", line 85, in _run_code exec(code, run_globals) File "/root/test_programm/env/lib/python3.7/site-packages/deeppavlov/__main__.py", line 4, in main() File "/root/test_programm/env/lib/python3.7/site-packages/deeppavlov/deep.py", line 89, in main interact_model(pipeline_config_path) File "/root/test_programm/env/lib/python3.7/site-packages/deeppavlov/core/commands/infer.py", line 79, in interact_model model = build_model(config) File "/root/test_programm/env/lib/python3.7/site-packages/deeppavlov/core/commands/infer.py", line 62, in build_model component = from_params(component_config, mode=mode, serialized=component_serialized) File "/root/test_programm/env/lib/python3.7/site-packages/deeppavlov/core/common/params.py", line 95, in from_params obj = get_model(cls_name) File "/root/test_programm/env/lib/python3.7/site-packages/deeppavlov/core/common/registry.py", line 72, in get_model return cls_from_str(_REGISTRY[name]) File "/root/test_programm/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 953, in _find_and_load_unlocked File "", line 219, in _call_with_frames_removed File "", line 1006, in _gcd_import File "", line 983, in _find_and_load File "", line 953, in _find_and_load_unlocked File "", line 219, in _call_with_frames_removed 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/test_programm/env/lib/python3.7/site-packages/deeppavlov/models/__init__.py", line 17, in import nltk File "/root/test_programm/env/lib/python3.7/site-packages/nltk/__init__.py", line 150, in from nltk.translate import * File "/root/test_programm/env/lib/python3.7/site-packages/nltk/translate/__init__.py", line 23, in from nltk.translate.meteor_score import meteor_score as meteor File "/root/test_programm/env/lib/python3.7/site-packages/nltk/translate/meteor_score.py", line 10, in from nltk.stem.porter import PorterStemmer File "/root/test_programm/env/lib/python3.7/site-packages/nltk/stem/__init__.py", line 29, in from nltk.stem.snowball import SnowballStemmer File "/root/test_programm/env/lib/python3.7/site-packages/nltk/stem/snowball.py", line 32, in from nltk.corpus import stopwords File "/root/test_programm/env/lib/python3.7/site-packages/nltk/corpus/__init__.py", line 66, in from nltk.corpus.reader import * File "/root/test_programm/env/lib/python3.7/site-packages/nltk/corpus/reader/__init__.py", line 105, in from nltk.corpus.reader.panlex_lite import * File "/root/test_programm/env/lib/python3.7/site-packages/nltk/corpus/reader/panlex_lite.py", line 15, in import sqlite3 File "/usr/local/lib/python3.7/sqlite3/__init__.py", line 23, in from sqlite3.dbapi2 import * File "/usr/local/lib/python3.7/sqlite3/dbapi2.py", line 27, in from _sqlite3 import * ModuleNotFoundError: No module named '_sqlite3'

Если запустить код обучения:

from deeppavlov.deprecated.skills.similarity_matching_skill import SimilarityMatchingSkill

faq_skill = SimilarityMatchingSkill(data_path = ‘/content/models.csv’,
x_col_name = ‘Question’,
y_col_name = ‘Answer’,
save_load_path = ‘./model’,
config_type = ‘tfidf_autofaq’,
train = True)

print(faq_skill([‘Каккие симптомы пневмонии?’], [], []))

То появлятся сообщение:

Traceback (most recent call last): File "test.py", line 8, in train = True) File "/root/test_programm/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/test_programm/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/test_programm/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/test_programm/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/test_programm/env/lib/python3.7/site-packages/deeppavlov/core/common/registry.py", line 72, in get_model return cls_from_str(_REGISTRY[name]) File "/root/test_programm/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/test_programm/env/lib/python3.7/site-packages/deeppavlov/dataset_readers/faq_reader.py", line 17, in from pandas import read_csv File "/root/test_programm/env/lib/python3.7/site-packages/pandas/__init__.py", line 55, in from pandas.core.api import ( File "/root/test_programm/env/lib/python3.7/site-packages/pandas/core/api.py", line 24, in from pandas.core.groupby import Grouper, NamedAgg File "/root/test_programm/env/lib/python3.7/site-packages/pandas/core/groupby/__init__.py", line 1, in from pandas.core.groupby.generic import ( # noqa: F401 File "/root/test_programm/env/lib/python3.7/site-packages/pandas/core/groupby/generic.py", line 44, in from pandas.core.frame import DataFrame File "/root/test_programm/env/lib/python3.7/site-packages/pandas/core/frame.py", line 88, in from pandas.core.generic import NDFrame, _shared_docs File "/root/test_programm/env/lib/python3.7/site-packages/pandas/core/generic.py", line 70, in from pandas.io.formats.format import DataFrameFormatter, format_percentiles File "/root/test_programm/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/test_programm/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'

При тестировании в Google Colab всё работало.

Подскажите, пожалуйста, в чём проблема?
Код я из пользую из этой директории - GitHub - NikitaAkimov/test_deeppavlov

Добрый день.

Можете прислать вывод команды pip freeze?

@Ignatov, здравствуйте.
Отправляю список установленных библиотек в Python. DeepPavlov установлен версии 12.0, т.к в одном из обращений (Не работает конфиг в 14 версии - #4 by Vasily) было написано что данная версия стабильнее чем 14.1. В версии 14.1 возникают точно такие же ошибки.

Список установленных библиотек:

absl-py==0.12.0
aio-pika==6.4.1
aiormq==3.3.1
astor==0.8.1
bert-dp @ git+https://github.com/deepmipt/bert.git@741d9bed9d52c6a9409ca27d8bf284615645618b
blis==0.4.1
catalogue==1.0.0
certifi==2020.12.5
cffi==1.14.5
chardet==3.0.4
click==7.1.2
cryptography==3.4.7
cymem==2.0.5
Cython==0.29.14
DAWG-Python==0.7.2
deeppavlov==0.12.0
docopt==0.6.2
en-core-web-sm @ https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-2.2.5/en_core_web_sm-2.2.5.tar.gz
fastapi==0.47.1
gast==0.2.2
google-pasta==0.2.0
grpcio==1.37.0
h11==0.9.0
h5py==2.10.0
httptools==0.1.1
idna==2.8
importlib-metadata==4.0.0
joblib==1.0.1
Keras-Applications==1.0.8
Keras-Preprocessing==1.1.2
Markdown==3.3.4
multidict==5.1.0
murmurhash==1.0.5
nltk==3.4.5
numpy==1.18.0
opt-einsum==3.3.0
overrides==2.7.0
pamqp==2.3.0
pandas==0.25.3
plac==1.1.3
preshed==3.0.5
protobuf==3.15.8
pycparser==2.20
pydantic==1.3
pymorphy2==0.8
pymorphy2-dicts==2.4.393442.3710985
pymorphy2-dicts-ru==2.4.417127.4579844
pyOpenSSL==19.1.0
pyTelegramBotAPI==3.6.7
python-dateutil==2.8.1
pytz==2019.1
requests==2.22.0
ruamel.yaml==0.15.100
rusenttokenize==0.0.5
sacremoses==0.0.35
scikit-learn==0.21.2
scipy==1.4.1
six==1.15.0
spacy==2.2.3
srsly==1.0.5
starlette==0.12.9
tensorboard==1.15.0
tensorflow==1.15.2
tensorflow-estimator==1.15.1
termcolor==1.1.0
thinc==7.3.1
tqdm==4.41.1
typing-extensions==3.7.4.3
urllib3==1.25.11
uvicorn==0.11.7
uvloop==0.15.2
wasabi==0.8.2
websockets==8.1
Werkzeug==1.0.1
wrapt==1.12.1
yarl==1.6.3
zipp==3.4.1

Первую ошибку мне удалось воспроизвести удалив пакет libsqlite3-0, т.е. вам нужно выполнить sudo apt update && apt install -y libsqlite3-0. Для исправления второй ошибки вам следует установить пакет libbz2-dev.
После установки этих пакетов следует обязательно перекомпилировать питон.

1 Like

@Ignatov, я правильно понял чтобы перекомпилировать Python нужно выполнить эти команды?

./configure --enable-optimizations

make -j 2

sudo make altinstall

Да.
А в конце трейсбека по первой ошибке не было никакой другой информации? Всё заканчивалось No module named '_sqlite3'?

@Ignatov, после ваших рекомендаций к сожалению не удалось устранить проблему.

Ошибка появляется та же:

(env) root@178-21-11-97:~/test_programm# python -m deeppavlov interact tfidf_logreg_en_faq -d
2021-04-20 19:48:40.670 INFO in 'deeppavlov.core.common.file'['file'] at line 32: Interpreting 'tfidf_logreg_en_faq' as '/root/test_programm/env/lib/python3.7/site-packages/deeppavlov/configs/faq/tfidf_logreg_en_faq.json'
2021-04-20 19:48:40.826 INFO in 'deeppavlov.download'['download'] at line 138: Skipped http://files.deeppavlov.ai/faq/mipt/en_mipt_faq_v4.tar.gz?config=tfidf_logreg_en_faq download because of matching hashes
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/local/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/root/test_programm/env/lib/python3.7/site-packages/deeppavlov/__main__.py", line 4, in <module>
    main()
  File "/root/test_programm/env/lib/python3.7/site-packages/deeppavlov/deep.py", line 89, in main
    interact_model(pipeline_config_path)
  File "/root/test_programm/env/lib/python3.7/site-packages/deeppavlov/core/commands/infer.py", line 79, in interact_model
    model = build_model(config)
  File "/root/test_programm/env/lib/python3.7/site-packages/deeppavlov/core/commands/infer.py", line 62, in build_model
    component = from_params(component_config, mode=mode, serialized=component_serialized)
  File "/root/test_programm/env/lib/python3.7/site-packages/deeppavlov/core/common/params.py", line 95, in from_params
    obj = get_model(cls_name)
  File "/root/test_programm/env/lib/python3.7/site-packages/deeppavlov/core/common/registry.py", line 72, in get_model
    return cls_from_str(_REGISTRY[name])
  File "/root/test_programm/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 "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/root/test_programm/env/lib/python3.7/site-packages/deeppavlov/models/__init__.py", line 17, in <module>
    import nltk
  File "/root/test_programm/env/lib/python3.7/site-packages/nltk/__init__.py", line 150, in <module>
    from nltk.translate import *
  File "/root/test_programm/env/lib/python3.7/site-packages/nltk/translate/__init__.py", line 23, in <module>
    from nltk.translate.meteor_score import meteor_score as meteor
  File "/root/test_programm/env/lib/python3.7/site-packages/nltk/translate/meteor_score.py", line 10, in <module>
    from nltk.stem.porter import PorterStemmer
  File "/root/test_programm/env/lib/python3.7/site-packages/nltk/stem/__init__.py", line 29, in <module>
    from nltk.stem.snowball import SnowballStemmer
  File "/root/test_programm/env/lib/python3.7/site-packages/nltk/stem/snowball.py", line 32, in <module>
    from nltk.corpus import stopwords
  File "/root/test_programm/env/lib/python3.7/site-packages/nltk/corpus/__init__.py", line 66, in <module>
    from nltk.corpus.reader import *
  File "/root/test_programm/env/lib/python3.7/site-packages/nltk/corpus/reader/__init__.py", line 105, in <module>
    from nltk.corpus.reader.panlex_lite import *
  File "/root/test_programm/env/lib/python3.7/site-packages/nltk/corpus/reader/panlex_lite.py", line 15, in <module>
    import sqlite3
  File "/usr/local/lib/python3.7/sqlite3/__init__.py", line 23, in <module>
    from sqlite3.dbapi2 import *
  File "/usr/local/lib/python3.7/sqlite3/dbapi2.py", line 27, in <module>
    from _sqlite3 import *
ModuleNotFoundError: No module named '_sqlite3'

Кажется, там нужен libsqlite3-dev, а не обычный. После этого пересобрать питон.
Или можно попробовать просто поставить питон нужной версии из ppa:

sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
sudo apt install python3.7 python3-pip
2 Likes

@yoptar и @Ignatov, спасибо вам большое за помощь, всё работает и вывод по предобученной модели и само обучение.

Добрый день!

Где проконсультироваться по установке библиотеки?

Не удается запустить библиотеку DeepPavlov. Машина Windows10/64, 2ядра / 4потока, 16 гиг оперативной памяти.

Ставил последовательно Python 3.9, 3.8, 3.7, 3.6, появлялись самые неожиданные ошибки.

Команду даю:
"…
from deeppavlov import build_model, configs

model = build_model(configs.syntax.syntax_ru_syntagrus_bert, download=True)..."

Последняя по времени тестирования ошибка:
". …c:\users\user\appdata\local\programs\python\python36\lib\site-packages\deeppavlov\models\syntax_parser\parser.py in
16 import numpy as np
17
—> 18 from dependency_decoding import chu_liu_edmonds
19
20 from deeppavlov.core.common.registry import register

ModuleNotFoundError: No module named 'dependency_decoding'"

результат выполнения pip freeze

absl-py==0.12.0Note: you may need to restart the kernel to use updated packages.
aio-pika==6.4.1
aiormq==3.3.1
argon2-cffi==20.1.0
astor==0.8.1
astunparse==1.6.3
async-generator==1.10
attrs==20.3.0
backcall==0.2.0
bert-dp @ git+https://github.com/deepmipt/bert.git@741d9bed9d52c6a9409ca27d8bf284615645618b
bleach==3.3.0
cachetools==4.2.2
certifi==2020.12.5
cffi==1.14.5
chardet==3.0.4
click==7.1.2
colorama==0.4.4
cryptography==3.4.7
Cython==0.29.14
dataclasses==0.8
DAWG-Python==0.7.2
decorator==5.0.7
deeppavlov==0.14.0

defusedxml==0.7.1
docopt==0.6.2
entrypoints==0.3
fastapi==0.47.1
filelock==3.0.12
flatbuffers==1.12
gast==0.3.3
google-auth==1.30.0
google-auth-oauthlib==0.4.4
google-pasta==0.2.0
grpcio==1.32.0
h11==0.9.0
h5py==2.10.0
idna==2.8
importlib-metadata==4.0.1
ipykernel==5.5.3
ipython==7.16.1
ipython-genutils==0.2.0
jedi==0.18.0
Jinja2==2.11.3
joblib==1.0.1
jsonschema==3.2.0
jupyter-client==6.2.0
jupyter-core==4.7.1
jupyterlab-pygments==0.1.2
Keras-Applications==1.0.8
Keras-Preprocessing==1.1.2
Markdown==3.3.4
MarkupSafe==1.1.1
mistune==0.8.4
multidict==5.1.0
nbclient==0.5.3
nbconvert==6.0.7
nbformat==5.1.3
nest-asyncio==1.5.1
nltk==3.4.5
notebook==6.3.0
numpy==1.19.5
oauthlib==3.1.0
opt-einsum==3.3.0
overrides==2.7.0
packaging==20.9
pamqp==2.3.0
pandas==0.25.3
pandocfilters==1.4.3
parso==0.8.2
pickleshare==0.7.5
prometheus-client==0.7.1
prompt-toolkit==3.0.18
protobuf==3.15.8
pyasn1==0.4.8
pyasn1-modules==0.2.8
pycparser==2.20
pydantic==1.3
Pygments==2.8.1
pymorphy2==0.8
pymorphy2-dicts==2.4.393442.3710985
pymorphy2-dicts-ru==2.4.417127.4579844
pyOpenSSL==19.1.0
pyparsing==2.4.7
pyrsistent==0.17.3
pyTelegramBotAPI==3.6.7
python-dateutil==2.8.1
pytz==2019.1
pywin32==300
pywinpty==1.0.1
pyzmq==22.0.3
requests==2.22.0
requests-oauthlib==1.3.0
rsa==4.7.2
ruamel.yaml==0.15.100
rusenttokenize==0.0.5
sacremoses==0.0.35
scikit-learn==0.21.2
scipy==1.4.1
Send2Trash==1.5.0
six==1.15.0
starlette==0.12.9
tensorboard==2.5.0
tensorboard-data-server==0.6.0
tensorboard-plugin-wit==1.8.0
tensorflow==1.15.2
tensorflow-estimator==2.4.0
tensorflow-gpu==2.4.1
termcolor==1.1.0
terminado==0.9.4
testpath==0.4.4
tornado==6.1
tqdm==4.41.1
traitlets==4.3.3
typing-extensions==3.7.4.3
urllib3==1.25.11
uvicorn==0.11.7
wcwidth==0.2.5
webencodings==0.5.1
websockets==8.1
Werkzeug==1.0.1
wrapt==1.12.1
yarl==1.6.3
zipp==3.4.1

Вывод ошибки полностью:

2021-05-04 08:47:17.122 INFO in ‘deeppavlov.download’[‘download’] at line 138: Skipped http://files.deeppavlov.ai/deeppavlov_data/morpho_tagger/UD2.3/ru_syntagrus.tar.gz download because of matching hashes
2021-05-04 08:47:19.975 INFO in ‘deeppavlov.download’[‘download’] at line 138: Skipped http://files.deeppavlov.ai/deeppavlov_data/bert/rubert_cased_L-12_H-768_A-12_v1.tar.gz download because of matching hashes
2021-05-04 08:47:22.613 INFO in ‘deeppavlov.download’[‘download’] at line 138: Skipped http://files.deeppavlov.ai/deeppavlov_data/syntax_parser/syntax_ru_syntagrus_bert.tar.gz download because of matching hashes
2021-05-04 08:47:23.172 INFO in ‘deeppavlov.core.data.simple_vocab’[‘simple_vocab’] at line 115: [loading vocabulary from C:\Users\User.deeppavlov\models\syntax_ru_syntagrus\deps.dict]
2021-05-04 08:47:46.517 INFO in ‘deeppavlov.core.models.tf_model’[‘tf_model’] at line 51: [loading model from C:\Users\User.deeppavlov\models\syntax_ru_syntagrus\model_joint]

INFO:tensorflow:Restoring parameters from C:\Users\User.deeppavlov\models\syntax_ru_syntagrus\model_joint


ModuleNotFoundError Traceback (most recent call last)
in
5 from deeppavlov import build_model, configs
6
----> 7 model = build_model(configs.syntax.syntax_ru_syntagrus_bert, download=True)

c:\users\user\appdata\local\programs\python\python36\lib\site-packages\deeppavlov\core\commands\infer.py in build_model(config, mode, load_trained, download, serialized)
60 component_serialized = None
61
—> 62 component = from_params(component_config, mode=mode, serialized=component_serialized)
63
64 if ‘id’ in component_config:

c:\users\user\appdata\local\programs\python\python36\lib\site-packages\deeppavlov\core\common\params.py in from_params(params, mode, serialized, **kwargs)
93 log.exception(e)
94 raise e
—> 95 obj = get_model(cls_name)
96
97 if inspect.isclass(obj):

c:\users\user\appdata\local\programs\python\python36\lib\site-packages\deeppavlov\core\common\registry.py in get_model(name)
70 raise ConfigError(“Model {} is not registered.”.format(name))
71 return cls_from_str(name)
—> 72 return cls_from_str(_REGISTRY[name])
73
74

c:\users\user\appdata\local\programs\python\python36\lib\site-packages\deeppavlov\core\common\registry.py in cls_from_str(name)
38 .format(name))
39
—> 40 return getattr(importlib.import_module(module_name), cls_name)
41
42

c:\users\user\appdata\local\programs\python\python36\lib\importlib_init_.py in import_module(name, package)
124 break
125 level += 1
→ 126 return _bootstrap._gcd_import(name[level:], package, level)
127
128

c:\users\user\appdata\local\programs\python\python36\lib\importlib_bootstrap.py in _gcd_import(name, package, level)

c:\users\user\appdata\local\programs\python\python36\lib\importlib_bootstrap.py in find_and_load(name, import)

c:\users\user\appdata\local\programs\python\python36\lib\importlib_bootstrap.py in find_and_load_unlocked(name, import)

c:\users\user\appdata\local\programs\python\python36\lib\importlib_bootstrap.py in _load_unlocked(spec)

c:\users\user\appdata\local\programs\python\python36\lib\importlib_bootstrap_external.py in exec_module(self, module)

c:\users\user\appdata\local\programs\python\python36\lib\importlib_bootstrap.py in _call_with_frames_removed(f, *args, **kwds)

c:\users\user\appdata\local\programs\python\python36\lib\site-packages\deeppavlov\models\syntax_parser\parser.py in
16 import numpy as np
17
—> 18 from dependency_decoding import chu_liu_edmonds
19
20 from deeppavlov.core.common.registry import register

ModuleNotFoundError: No module named ‘dependency_decoding’