wordnet

synonyms offline Dictionary for a search application

主宰稳场 提交于 2019-12-11 10:26:24
问题 i'm trying to build a smart search engine application that gets synonyms of the words in the Question and Query my database with each of the generated synonyms the problem is that i'm searching for a way to get all synonyms of the words in the Question using a dictionary or something. that could in the end offers 1- direct synonyms like : file > movie , football > soccer 2- could offer a matchstring like : population size > number of citizens (optional ) 3- something that is fast and reliable

How would I use WordNet to build a recommendation system?

て烟熏妆下的殇ゞ 提交于 2019-12-11 07:09:00
问题 I've got a set of queries and notes and I'd like recommend similar queries and notes based on any given entry, using WordNet. Where would I begin to learn how to do that? What language(s) should I use for something like this, what should I study, etc. I'm a self taught programmer, a beginner, but I'm willing to learn, ask questions and read. Is this something that is feasible i.e. using wordnet to create a recommender system? What if I want to cluster these queries in a single document; say

How to iterate each word through nltk synsets and store misspelled words in separate list?

烈酒焚心 提交于 2019-12-11 06:17:12
问题 I am trying to take a text file with messages and iterate each word through NLTK wordnet synset function. I want to do this because I want to create a list of mispelled words. For example if I do: wn.synsets('dog') I get output: [Synset('dog.n.01'), Synset('frump.n.01'), Synset('dog.n.03'), Synset('cad.n.01'), Synset('frank.n.02'), Synset('pawl.n.01'), Synset('andiron.n.01'), Synset('chase.v.01')] now if the word is mispelled like so: wn.synsets('doeg') I get output: [] If I am returned an

Note Taking Program with NLTK and Wordnet doesnt work, Error message says its because of wordnet

*爱你&永不变心* 提交于 2019-12-11 04:47:24
问题 I am trying to make a program in python that will take notes on a passage that I input. It will sort out the first and last sentence of the paragraph and the sentences with dates and numbers. It would then replace some words with synonyms, and get rid of useless adjectives. I am know the generic stuff with python, but I am new to nltk and WordNet. I've started a prototype program that will replace words in a sentence with all the random synonyms, however I keep getting an error that says

Extract non-content English language words string - python [duplicate]

时光怂恿深爱的人放手 提交于 2019-12-11 02:59:19
问题 This question already has answers here : How to remove stop words using nltk or python (9 answers) Closed 5 years ago . I am working on Python script in which I want to remove the common english words like "the","an","and","for" and many more from a String. Currently what I have done is I have made a local list of all such words and I just call remove() to remove them from the string. But I want here some pythonish way to achieve this. Have read about nltk and wordnet but totally clueless

Converting adjectives and adverbs to their noun forms

对着背影说爱祢 提交于 2019-12-10 14:53:51
问题 I am experimenting with word sense disambiguation using wordnet for my project. As a part of the project, I would like to convert a derived adjective or an adverb form to it's root noun form. For example beautiful ==> beauty wonderful ==> wonder How can I achieve this? Is there any other dict other than wordnet that provides this kind of transformation? It would be an added bonus for me if I can map the exact sense of the adjective word to its noun form with exact sense. Is that possible?

How can I find synonyms in estimated frequency order using JWNL(Wordnet Library)?

扶醉桌前 提交于 2019-12-10 12:55:38
问题 Does anyone know how I can take the synonyms of a word using JWNL (Java Wordnet Library) ordered by estimated frequency? I know this can be done somehow, because Wordnet's application can do it. (I don't know if it matters, but I am using Wordnet 2.1) Here is my code of how I get synonyms, could anyone please tell me what I should add... (completely different ways of doing it are also welcomed!) ArrayList<String> synonyms=new ArrayList<String>(); System.setProperty("wordnet.database.dir",

How to get inflections for a word using Wordnet

ぃ、小莉子 提交于 2019-12-10 01:45:52
问题 I want to get inflectional forms for a word using Wordnet. E.g. If the word is make , then its inflections are made, makes, making I tried all the options of the wn command but I did not get the inflections for a word. Any idea how to get these? 回答1: I am not sure wordnet was intended to inflect words. Just found this little writeup about how WordNet(R) makes use of the Morphy algorithm to make a morphological determination of the head term associated with an inflected form https://github.com

Getting word stems with JWI and Wordnet

会有一股神秘感。 提交于 2019-12-09 18:38:36
问题 How do I correctly use the stemmer method implemented in MIT's JWI (Java API for WordNet) in order to get the stem of a word? I'm not sure how to initialize a stemmer and use the findStems method. 回答1: You don't need an additional library, but you do need a dictionary. You can download one from Princeton: https://wordnet.princeton.edu/wordnet/download/current-version/ I recommend downloading only the dictionary from the section "WordNet 3.1 DATABASE FILES ONLY" Extract the archive. Supposing

Using WordNet to determine semantic similarity between two texts?

孤者浪人 提交于 2019-12-09 13:36:53
问题 How can you determine the semantic similarity between two texts in python using WordNet? The obvious preproccessing would be removing stop words and stemming, but then what? The only way I can think of would be to calculate the WordNet path distance between each word in the two texts. This is standard for unigrams. But these are large (400 word) texts, that are natural language documents, with words that are not in any particular order or structure (other than those imposed by English grammar