当我尝试重新启动下载时出现了以下错误。有时可以工作,但自从使用新的Win7之后,我无法从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'
<urlopen error [Errno 11004] getaddrinfo failed>
。你能帮忙解决一下吗? - mockash