WordNet - What does n and the number represent?

给你一囗甜甜゛ 提交于 2020-12-29 13:09:34

问题


My question is related to WordNet Interface.

   >>> 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')]
    >>> 

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.


回答1:


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

  • <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

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.



来源:https://stackoverflow.com/questions/34831167/wordnet-what-does-n-and-the-number-represent

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!