python - WordNet - What does n and the number represent? -
my question related 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 not find answer purpose of n , following number in cat.n.01 or caterpillar.n.02.
per nltk docs, <lemma>.<pos>.<number> synset string composed of following parts:
<lemma>word’s morphological stem<pos>1 of module attributes adj, adj_sat, adv, noun or verb<number>sense number, counting 0
thus, <pos> part of speech. according the wordnet man page, part of speech character has following meaning:
n noun v verb adjective s adjective satellite r adverb the <number> used disambiguate word meanings.
Comments
Post a Comment