WordNet with NLTK: Finding Synonyms for words in Python- Shikshaglobe

Content Creator: Satish kumar

What is Wordnet?

Wordnet is a NLTK corpus peruser, a lexical information base for English. Finding the importance of words, equivalent or antonym can be utilized. One can characterize it as a semantically situated word reference of English. It is imported with the accompanying order:

from nltk.corpus import wordnet as master

Track down Synonyms from NLTK WordNet in Python

Details uncover that there are 155287 words and 117659 equivalent sets included with English WordNet.

Various techniques accessible with WordNet can be found by composing dir(guru)

Lexical Relations: These are semantic relations which are responded. In the event that there is a connection between {x1,x2,… xn} and {y1,y2,… yn} there is likewise connection between {y1,y2,… yn} and {x1,x2,… xn}. For instance Synonym is something contrary to antonym or hypernyms and hyponym are sort of lexical idea.Allow us to compose a program utilizing python to track down equivalent and antonym of word "dynamic" utilizing Wordnet.

Clarification of the code

Wordnet is a corpus, so it is imported from the ntlk.corpusRundown of both equivalent and antonym is taken as unfilled which will utilized for annexEquivalents of the word dynamic are looked through in the module synsets and are annexed in the rundown equivalents. A similar interaction is rehashed for the subsequent one.Yield is printed

End:

WordNet is a lexical information base that has been utilized by a significant web search tool. From the WordNet, data about a given word or expression can be determined, for example,

equivalent (words having a similar significance)

hypernyms (The conventional term used to assign a class of particulars (i.e., feast is a morning meal), hyponyms (rice is a dinner)

holonyms (proteins, sugars are essential for feast)

meronyms (dinner is important for everyday food admission)

WordNet additionally gives data based on co-ordinate conditions, derivates, faculties and that's just the beginning. Finding the similitudes between any two words is utilized. It additionally holds data on the aftereffects of the connected word. In short or nutshell one can regard it as Dictionary or Thesaurus. Going further in wordnet, it is partitioned into four complete subnets, for example,

Thing

Action word

Descriptor

Intensifier

It very well may be utilized in the space of man-made consciousness for text examination. With the assistance of Wordnet, you can make your corpus for spelling checking, language interpretation, Spam discovery and some more.Similarly, you can utilize this corpus and shape it to work some powerful usefulness. This is very much like prepared to made corpus for you. You can involve it in your manner.


Click Here for More Information

Featured Universities

Mahatma Gandhi University

Location: Soreng ,Sikkim , India
Approved: UGC
Course Offered: UG and PG

MATS University

Location: Raipur, Chhattisgarh, India
Approved: UGC
Course Offered: UG and PG

Kalinga University

Location: Raipur, Chhattisgarh,India
Approved: UGC
Course Offered: UG and PG

Vinayaka Missions Sikkim University

Location: Gangtok, Sikkim, India
Approved: UGC
Course Offered: UG and PG

Sabarmati University

Location: Ahmedabad, Gujarat, India
Approved: UGC
Course Offered: UG and PG

Arni University

Location: Tanda, Himachal Pradesh, India.
Approved: UGC
Course Offered: UG and PG

Capital University

Location: Jhumri Telaiya Jharkhand,India
Approved: UGC
Course Offered: UG and PG

Glocal University

Location: Saharanpur, UP, India.
Approved: UGC
Course Offered: UG and PG

Himalayan Garhwal University

Location: PG, Uttarakhand, India
Approved: UGC
Course Offered: UG and PG

Sikkim Professional University

Location: Sikkim, India
Approved: UGC
Course Offered: UG and PG

North East Frontier Technical University

Location: Aalo, AP ,India
Approved: UGC
Course Offered: UG and PG