WordNet - n 和数字代表什么? [英] WordNet - What does n and the number represent?

查看:104
本文介绍了WordNet - n 和数字代表什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题与 WordNet 接口有关.

   >>> wn.synsets('cat')
       [Synset('cat.n.01'), Synset('guy.n.01'), Synset('cat.n.03'),
        Synset('kat.n.01'), Synset('cat-o'-nine-tails.n.01'), 
        Synset('caterpillar.n.02'), Synset('big_cat.n.01'), 
        Synset('computerized_tomography.n.01'), Synset('cat.v.01'), 
        Synset('vomit.v.01')]
    >>> 

我在 cat.n.01 中找不到 n 和以下 number 的用途的答案>caterpillar.n.02.

I could not find the answer to what is the purpose of n and the following number in cat.n.01 or caterpillar.n.02.

推荐答案

根据 NLTK docs,一个 .. 同义词串由以下部分:

Per the NLTK docs, a <lemma>.<pos>.<number> Synset string is composed of the following parts:

  • 是词的形态词干
  • 是模块属性 ADJ、ADJ_SAT、ADV、NOUN 或 VERB 之一
  • 是义数,从 0 开始计数
  • <lemma> is the word’s morphological stem
  • <pos> is one of the module attributes ADJ, ADJ_SAT, ADV, NOUN or VERB
  • <number> is the sense number, counting from 0

因此, 是词性.根据wordnet手册页,词性字符具有以下含义:

Thus, the <pos> is the part of speech. According to the wordnet man page, the part of speech character has the following meaning:

n    NOUN
v    VERB
a    ADJECTIVE
s    ADJECTIVE SATELLITE
r    ADVERB 

用于消除词义的歧义.

The <number> is used to disambiguate word meanings.

这篇关于WordNet - n 和数字代表什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆