Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

nltk download url authorization issue

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.

Does anyone know how to solve this issue?

like image 620
iChux Avatar asked Dec 08 '22 06:12

iChux


1 Answers

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.

like image 163
user2979044 Avatar answered Dec 21 '22 03:12

user2979044