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的相…
Resource punkt not found. 下载完整包 地址:https://github.com/nltk/nltk_data 解压缩到python安装地址的share文件夹中。仍然会报错: 使用他给的命令下载 报错,或许需要科学上网。 观察一下这个报错缺少的文件,去share\nltk_…
LookupError: Resource omw-1.4 not found. Please use the NLTK Downloader to obtain the resource: import nltk >>> nltk.download(‘omw-1.4’)
从https://github.com/nltk/nltk_data下载需要的包,如nltk_data/packages/corpora /omw-1.4.zip&#x…