我已经下载了 spaCy,但是每次尝试nlp = spacy.load("en_core_web_lg")
, 命令时,都会出现此错误:
OSError: [E050] Can't find model 'en_core_web_lg'. It doesn't seem to be a shortcut link, a Python package or a valid path to a data directory.
我已经试过了
>>> import spacy
>>> nlp = spacy.load("en_core_web_sm")
Run Code Online (Sandbox Code Playgroud)
这不像在我的个人电脑上那样工作。
我的问题是我该如何解决这个问题?我需要将 spacy en 模型放入我的计算机上的哪个目录才能找到它?
我在VS Code中使用Microsoft软件包中的Python。当我运行一些Python代码时,出现错误:
pydev debugger: Unable to find real location for: threading.py
pydev debugger: Unable to find real location for: C:\Users\abukreev\AppData\Roaming\Python\Python36\site-packages
pydev debugger: Unable to find real location for: <frozen importlib._bootstrap>
pydev debugger: Unable to find real location for: genericpath.py
pydev debugger: Unable to find real location for: ntpath.py
pydev debugger: Unable to find real location for: runpy.py
pydev debugger: Unable to find real location for: pkgutil.py
pydev debugger: Unable to find real location for: <frozen importlib._bootstrap_external>
pydev debugger: Unable to …
Run Code Online (Sandbox Code Playgroud)