【发布时间】:2019-11-07 17:36:31
【问题描述】:
我正在尝试加载 spaCy 模型 de_core_news_sm 没有任何成功。由于我们公司警察似乎屏蔽了python -m spacy download de_core_news_sm提示命令,我手动下载了模型并在本地tar.gz存档中使用了pip install,效果很好。
但是,在我的代码中调用 nlp = spacy.load("de_core_news_sm") 会引发以下异常:
Exception has occurred: ValueError
[E149] Error deserializing model. Check that the config used to create the
component matches the model being loaded.
File "pipes.pyx", line 642, in
spacy.pipeline.pipes.Tagger.from_disk.load_model
我不知道如何处理这个问题。有人知道该怎么做吗?
【问题讨论】: