【问题标题】:wn.synset('whale.n.01') returns the wrong synsetwn.synset('whale.n.01') 返回错误的同义词集
【发布时间】:2019-10-17 00:12:10
【问题描述】:
print(wn.synset('whale.n.01'))

此代码打印:

Synset('giant.n.04')

我有from nltk.corpus import wordnet as wn。其他一切正常。

【问题讨论】:

  • 你好。您能否围绕“from nltk.corpus import wordnet as wn”消息添加更多信息?
  • 是的,这不是一条消息,它是在我的程序顶部编写的 python 导入,它允许我访问 WordNet 及其功能。

标签: python nltk wordnet


【解决方案1】:

鲸有两种意义,'whale.n.02'是哺乳动物。下面见wordnet在线演示http://wordnetweb.princeton.edu/perl/webwn

【讨论】:

    猜你喜欢
    • 2015-01-21
    • 2012-03-23
    • 2021-04-15
    • 2014-01-16
    • 2011-10-06
    • 1970-01-01
    • 2023-03-03
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多