""" pass a string to this funciton ( eg 'car') and it will give you a list of
words which is related to cat, called lemma of CAT. """
from nltk.corpus import wordnet as wn
import sys

def lemmalist(str):
    syn_set = []
for synset in wn.synsets(str):
    for item in synset.lemma_names:
        syn_set.append(item)
return syn_set
Чтобы найти синонимы, определения и примеры предложений с помощью WordNet