'''A tiny sample of the use of PyWordNet Jeff Ondich, 15 May 2007 ''' import wordnet word = 'dog' nouns = wordnet.N[word] print 'Nouns:' for sense in nouns.getSenses(): print '\t', sense print verbs = wordnet.V[word] print 'Verbs:' for sense in verbs.getSenses(): print '\t', sense print