【问题标题】:python wordnetlemmatizer: not a zip filepython wordnetlemmatizer:不是 zip 文件
【发布时间】:2017-04-04 14:39:06
【问题描述】:

我尝试以下方法进行词形还原:

from nltk.stem.wordnet import WordNetLemmatizer
wnl = WordNetLemmatizer()
wnl.lemmatize("dogs")

并不断收到“BadZipFile:文件不是 zip 文件”错误。在词形还原的背景下,我找不到任何关于它的东西。有人可以帮忙吗?

【问题讨论】:

    标签: file zip lemmatization


    【解决方案1】:

    下载 wordnet 和 wordnet_ic 后你会摆脱它

    【讨论】:

      【解决方案2】:

      python -m nltk.downloader 全部

      您需要下载 zip 文件

      【讨论】:

      • 压缩文件 wordnet
      猜你喜欢
      • 1970-01-01
      • 2022-07-11
      • 1970-01-01
      • 2018-05-26
      • 2019-09-19
      • 2015-04-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多