空间链接错误 [英] Spacy link error

查看:108
本文介绍了空间链接错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

运行时:

import spacy
nlp = spacy.load('en')

打印以下内容:

警告:找不到"en"的模型 仅加载"en"令牌生成器.

Warning: no model found for 'en' Only loading the 'en' tokenizer.

/site-packages/spacy/data为空,初始化文件除外. 所有文件路径仅指向我的python的单个安装.

/site-packages/spacy/data is empty with the exception of the init file. all filepaths are only pointing to my single installation of python.

任何帮助解决此问题的人.

Any help appreciated on resolving this.

谢谢! 会

推荐答案

在Windows 10上尝试此问题时,我遇到了同样的问题-问题是python -m spacy.en.download all的输出说Linking successful,但在上面的消息是由于权限的原因,实际上并未创建符号链接.

I had this same issue when I tried this on Windows 10 - the problem was the output of python -m spacy.en.download all said Linking successful but above that was the message that the symbolic link wasn't actually created, due to permissions.

以管理员身份运行python -m spacy.en.download all可以解决此问题.

Running python -m spacy.en.download all as an Adminstrator fixed the problem.

这篇关于空间链接错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆