deep_learning_cookbook icon indicating copy to clipboard operation
deep_learning_cookbook copied to clipboard

8.1 Wordnet missing

Open hpharmsen opened this issue 5 years ago • 1 comments

You need something like nltk.download('wordnet') to actually use wordnet.

hpharmsen avatar May 05 '19 10:05 hpharmsen

You need to add the line of code: nltk.download('wordnet'). Then you can get the missed wordnet.

nltk.download('wordnet')

pairs = {} for synset in wn.all_synsets('n'): word = synset.name().split('.', 1)[0] if not word in pairs: pairs[word] = p.plural(word) len(pairs)

mikechen66 avatar May 04 '20 01:05 mikechen66