Python NLTk Wordnet














































Python NLTk Wordnet



WORDNET WITH NLTK



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.

It was created by Princeton and is part of the NLTK corpus.


The wordNets structure makes it a useful tool for computational linguistics and natural language processing.

WordNet superficially resembles a thesaurus, in that it groups words together based on
their meanings. However, there are some important distinctions.

First, WordNet interlinks not just word form strings of letters but specific senses of words. As a result, words that are found in close proximity to one another in the network are semantically disambiguated.

Second, WordNet labels the semantic relations among
words, whereas the groupings of words in a thesaurus do not follow any
explicit pattern other than meaning similarity.

 

Simple Program using wordnet



Output:


Program for synonyms and antonyms using wordnet with NLTK



Output:


Program to compare two verbs using wordnet.


Output:


Program to compare two nouns using wordnet


 Output:


Conclusion:

Using wordnet we can compare two words also we can find synonyms and antonyms of a particular word.


Comments