博主微信公众号:“Python技术博文”
报错内容:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "E:\anaconda2\lib\site-packages\spyder\utils\site\sitecustomize.py", line 880, in runfile
execfile(filename, namespace)
File "E:\anaconda2\lib\site-packages\spyder\utils\site\sitecustomize.py", line 87, in execfile
exec(compile(scripttext, filename, 'exec'), glob, loc)
File "E:/anaconda_workspace/myfirst_NLP.py", line 14, in <module>
for text in gutenberg.fileids():
File "E:\anaconda2\lib\site-packages\nltk\corpus\util.py", line 116, in __getattr__
self.__load()
File "E:\anaconda2\lib\site-packages\nltk\corpus\util.py", line 81, in __load