Answers for "wordnet"

0

wordnet

>>> from nltk.corpus import wordnet
Posted by: Guest on June-28-2020
0

wordnet

>>> wn.synsets('dog') # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
[Synset('dog.n.01'), Synset('frump.n.01'), Synset('dog.n.03'), Synset('cad.n.01'),
Synset('frank.n.02'), Synset('pawl.n.01'), Synset('andiron.n.01'), Synset('chase.v.01')]
>>> wn.synsets('dog', pos=wn.VERB)
[Synset('chase.v.01')]
Posted by: Guest on June-28-2020

Browse Popular Code Answers by Language