nltk.stem.WordNetLemmatizer()时报错BadZipFile(“File is not a zip file“)的解决方法
问题描述
nltk里有个库可以很方便的还原单词的基本型,调用方法如下:
from nltk.stem import WordNetLemmatizer
lamma WordNetLemmatizer()
lamma.lemmatize(…
LookupError:
**********************************************************************Resource xxx not found.Please use the NLTK Downloader to obtain the resource:>>> import nltk>>> nltk.download(xxx)
因为一些原因,下载不了nltk的相…