python中nlp polyglot包的导入错误

2024-06-16 11:30:00 发布

您现在位置:Python中文网/ 问答频道 /正文

我在试着用多语种的基本例子

宾夕法尼亚州网页http://polyglot.readthedocs.io/en/latest/Installation.html在

安装似乎已经成功了,但当我尝试将软件包导入到Jupyter笔记本电脑时:

http://polyglot.readthedocs.io/en/latest/Installation.html

import polyglot
from polyglot.text import Text, Word

我得到以下错误:

^{pr2}$

注意:在上面的代码片段中,用'username'替换了我的实际用户名。在

提前谢谢你


Tags: fromioimporthttp网页htmlreadthedocsinstallation