[英]Error while installing TextBlob
I am trying to install TextBlob
. 我正在尝试安装
TextBlob
。 As per the official doc, i did this. 根据官方文档,我做到了。
> pip install -U textblob
> python -m textblob.download_corpora
The pip
command is doing its job. pip
命令正在执行其工作。 But the other command is giving following error. 但是另一个命令给出了以下错误。
[nltk_data] Error loading brown: HTTP Error 405: Not allowed.
[nltk_data]加载棕色时出错:HTTP错误405:不允许。
[nltk_data] Error loading punkt: HTTP Error 405: Not allowed.
[nltk_data]加载punkt时出错:HTTP错误405:不允许。
[nltk_data] Error loading wordnet: HTTP Error 405: Not allowed.
[nltk_data]加载wordnet时出错:HTTP错误405:不允许。
[nltk_data] Error loading averaged_perceptron_tagger: HTTP Error 405:
[nltk_data]加载averaged_perceptron_tagger时出错:HTTP错误405:
[nltk_data] Not allowed.
[nltk_data]不允许。 [nltk_data] Error loading conll2000: HTTP
[nltk_data]加载conll2000:HTTP时出错
Error 405: Not allowed.
错误405:不允许。 [nltk_data] Error loading movie_reviews: HTTP
[nltk_data]加载movie_reviews时出错:HTTP
Error 405: Not allowed.
错误405:不允许。 Finished.
完了
Any help is appreciated. 任何帮助表示赞赏。 Thank you.
谢谢。
I tried installing textblob
last day and it was giving an error
. 我昨天尝试安装
textblob
,但出现error
。 Then I tried other NLP module called nltk
. 然后,我尝试了另一个名为
nltk
NLP模块。 But yesterday somehow it wasn't working for both of them. 但是昨天不知何故对他们两个都不起作用。 It was saying
error 405 : not allowed
. 有人说
error 405 : not allowed
。 I looked for other posts but could not find anything. 我寻找其他职位,但找不到任何东西。
When I tried today, surprisingly it started downloading the submodules. 当我今天尝试时,令人惊讶的是它开始下载子模块。 I think it was the server -
githubusercontent
issue from where it was trying to download the data from. 我认为这是服务器-试图从中下载数据的
githubusercontent
问题。
I am not sure if you'd face such errors but if you do, just try after sometime and hope it works for you too. 我不确定您是否会遇到此类错误,但是如果您遇到这种错误,请稍后再尝试,希望它也对您有用。
python -m textblob.download_corpora
import nltk
nltk.download()
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.