NLTK Wordnet Corpus Module Library Python Spinner Bot

https://www.geeksforgeeks.org/get-synonymsantonyms-nltk-wordnet-python/

 How to get synonyms/antonyms from NLTK WordNet in Python Spinner Bot?

WordNet is a large lexical database of English. Nouns, verbs, adjectives and adverbs are grouped into sets of cognitive synonyms (synsets), each expressing a distinct concept. Synsets are interlinked by means of conceptual-semantic and lexical relations.

 

 

http://www.nltk.org/howto/wordnet.html

WordNet Interface

WordNet is just another NLTK corpus reader, and can be imported like this:

>>> from nltk.corpus import wordnet

For more compact code, we recommend:

>>> from nltk.corpus import wordnet as wn

Related posts