![]() ![]() In the same way, you can use this corpus and mold it to work some dynamic functionality. With the help of Wordnet, you can create your corpus for spelling checking, language translation, Spam detection and many more. It can be used in the area of artificial intelligence for text analysis. Going deeper in wordnet, it is divided into four total subnets such as In short or nutshell one can treat it as Dictionary or Thesaurus. It also holds information on the results of the related word. It is used to find the similarities between any two words. WordNet also provides information on co-ordinate terms, derivates, senses and more. meronyms (meal is part of daily food intake).holonyms (proteins, carbohydrates are part of meal).hypernyms (The generic term used to designate a class of specifics (i.e., meal is a breakfast), hyponyms (rice is a meal).synonym (words having the same meaning).From the WordNet, information about a given word or phrase can be calculated such as WordNet is a lexical database that has been used by a major search engine. The same process is repeated for the second one. Synonyms of the word active are searched in the module synsets and are appended in the list synonyms.List of both synonym and antonym is taken as empty which will be used for appending.Wordnet is a corpus, so it is imported from the rpus.If there is a relationship between - Antonym Lexical Relations: These are semantic relations which are reciprocated. Let us check a example from rpus import wordnet Synset: It is also called as synonym set or collection of synonym words. Let us understand some of the features available with the wordnet: Stats reveal that there are 155287 words and 117659 synonym sets included with English WordNet.ĭifferent methods available with WordNet can be found by typing dir(guru) It is imported with the following command: from rpus import wordnet as guruįind Synonyms from NLTK WordNet in Python One can define it as a semantically oriented dictionary of English. It can be used to find the meaning of words, synonym or antonym. Wordnet is an NLTK corpus reader, a lexical database for English. ![]()
0 Comments
Leave a Reply. |