nltk下载URL授权问题 [英] nltk download url authorization issue

查看:84
本文介绍了nltk下载URL授权问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用nltk.download()更新我的nltk数据,但出现HTTP错误401:需要授权.

I tried to update my nltk data with nltk.download() but I got HTTP Error 401: Authorization Required.

当我跟踪有问题的URL时,我在downloader.py中找到了它.

When I traced the url in question, I found it in downloader.py

DEFAULT_URL =' http://nltk.googlecode.com/svn/trunk /nltk_data/index.xml '

然后我复制了该URL并在浏览器中运行它,以发现它要求我输入用户名和密码.这是屏幕截图.

I then copied that URL and ran it in my browser to find out that it's asking me for a username and password. Here is a screen-shot.

有人知道如何解决这个问题吗?

Does anyone know how to solve this issue?

推荐答案

NLTK已从其googlecode网站移出.

NLTK have moved from their googlecode site.

在这个问题中,nltk的新数据服务器位于 http://nltk.github.com /nltk_data/.只需将URL更新到新位置即可,希望它可以正常工作.

As noted in this question, nltk's new data server is located at http://nltk.github.com/nltk_data/. Just update the URL to the new location, and it should hopefully work.

这篇关于nltk下载URL授权问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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