Looking up synonym-sets for a word

From XPUB & Lens-Based wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
from nltk.corpus import wordnet
meanings = wordnet.synsets('woman')
for m in meanings:
    print "===", m.name, "==="
    print m.definition
    print "\t* ".join(m.examples)