无法从 spacy 加载英语语言模型(Jupyter Notebook | Python 3.9)

问题描述 投票:0回答:0

我在 Python 3.9 Anaconda 虚拟环境中使用 Jupyter Notebook。我的目标是从 spacy 包加载英语语言模型

"en_core_web_sm"
。我必须注意,语言模型已经安装。因此,我简单地写:

import spacy
nlp = spacy.load("en_core_web_sm") # We may need to install the language model first

我收到以下错误:

ImportError: blis.cy 不导出预期的 C 函数 sgemm

在以下输出的上下文中:

~\AppData\Local\Temp\ipykernel_12804\1815734.py 中 1 导入spacy 2个 3 nlp = spacy.load("en_core_web_sm") # 我们可能需要先安装语言模型

~\AppData\Roaming\Python\Python39\site-packages\spacy_init_.py 中 4个 5 # 在做任何事情之前设置库特定的自定义警告处理 6 从 .errors 导入 setup_default_warnings 7 8 setup_default_warnings() # noqa:E402

~\AppData\Roaming\Python\Python39\site-packages\spacy rrors.py 中 1 进口警告 2 从 .compat 导入文字 3个 4个 5 类 ErrorsWithCodes(类型):

~\AppData\Roaming\Python\Python39\site-packages\spac

python nlp jupyter conda spacy
© www.soinside.com 2019 - 2024. All rights reserved.