nltk download url authorization issue

2020-03-03 21:56发布

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

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'

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?

1条回答
女痞
2楼-- · 2020-03-03 22:23

NLTK have moved from their googlecode site.

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.

查看更多
登录 后发表回答