加载停用词时出错:<urlopen error [Errno 110] Connection

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

下载 NLTK stopwords 时,出现以下错误 [nltk_data] 加载停用词时出错: 使用的代码是

import nltk
nltk.download('stopwords')

我也尝试了下面的命令,得到了同样的错误

python -m nltk.downloader stopwords

谢谢

python-3.x nltk
1个回答
0
投票

我遇到了同样的问题。 我在 colabs 中试过https://colab.research.google.com/ 这对我有用。

© www.soinside.com 2019 - 2024. All rights reserved.