Nltk download [Error 11004] getadderinfo error

This is an error when I try to restart the download again several times it works, but since the advent of the new win7 I have not been able to download data from nltk

 nltk.download()

showing info http://nltk.github.com/nltk_data/
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Python27\lib\lib-tk\Tkinter.py", line 1410, in __call__
 return self.func(*args)
File "C:\Python27\lib\lib-tk\Tkinter.py", line 495, in callit
 func(*args)
File "C:\Python27\lib\site-packages\nltk\downloader.py", line 1893, in_monitor_message_queue
self._select(msg.package.id)
AttributeError: 'str' object has no attribute 'id'
+4
source share
1 answer

I ran into the same problem. In my case, the problem was that when starting the NLTK bootloader it had a server index like - http://nltk.github.com/nltk_data/

This needs to be changed to - http://nltk.org/nltk_data/

You can change this by going to the NLTK Downloader window and File->Change Server Index.

+2
source

Source: https://habr.com/ru/post/1535015/


All Articles