Questions tagged [wordnet]

WordNet is a lexical database for the English language. It groups English words into sets of synonyms called synsets, provides short, general definitions, and records the various semantic relations between these synonym sets.

WordNet® is a large lexical database of English, developed under the direction of George A. Miller (Emeritus). 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. The resulting network of meaningfully related words and concepts can be navigated with the browser. WordNet is also freely and publicly available for download. WordNet's structure makes it a useful tool for computational linguistics and natural language processing.

933 questions
187
votes
12 answers

How to check if a word is an English word with Python?

I want to check in a Python program if a word is in the English dictionary. I believe nltk wordnet interface might be the way to go but I have no clue how to use it for such a simple task. def is_english_word(word): pass # how to I implement…
Barthelemy
  • 8,277
  • 6
  • 33
  • 36
81
votes
4 answers

Stemmers vs Lemmatizers

Natural Language Processing (NLP), especially for English, has evolved into the stage where stemming would become an archaic technology if "perfect" lemmatizers exist. It's because stemmers change the surface form of a word/token into some…
alvas
  • 115,346
  • 109
  • 446
  • 738
77
votes
8 answers

wordnet lemmatization and pos tagging in python

I wanted to use wordnet lemmatizer in python and I have learnt that the default pos tag is NOUN and that it does not output the correct lemma for a verb, unless the pos tag is explicitly specified as VERB. My question is what is the best shot…
user1946217
  • 1,733
  • 6
  • 31
  • 40
47
votes
3 answers

Python: Semantic similarity score for Strings

Are there any libraries for computing semantic similarity scores for a pair of sentences ? I'm aware of WordNet's semantic database, and how I can generate the score for 2 words, but I'm looking for libraries that do all pre-processing tasks like…
user8472
  • 726
  • 1
  • 8
  • 16
46
votes
4 answers

Using NLTK and WordNet; how do I convert simple tense verb into its present, past or past participle form?

Using NLTK and WordNet, how do I convert simple tense verb into its present, past or past participle form? For example: I want to write a function which would give me verb in expected form as follows. v = 'go' present = present_tense(v) print…
Software Enthusiastic
  • 25,147
  • 16
  • 58
  • 68
40
votes
8 answers

How to get synonyms from nltk WordNet Python

WordNet is great, but I'm having a hard time getting synonyms in nltk. If you search similar to for the word 'small' like here, it shows all of the synonyms. Basically I just need to know the following: wn.synsets('word')[i].option() Where option…
user2758113
  • 1,001
  • 1
  • 13
  • 25
36
votes
2 answers

Finding Proper Nouns using NLTK WordNet

Is there any way to find proper nouns using NLTK WordNet?Ie., Can i tag Possessive nouns using nltk Wordnet ?
Backue
  • 417
  • 1
  • 5
  • 8
36
votes
5 answers

Convert words between verb/noun/adjective forms

i would like a python library function that translates/converts across different parts of speech. sometimes it should output multiple words (e.g. "coder" and "code" are both nouns from the verb "to code", one's the subject the other's the object) #…
sam boosalis
  • 1,997
  • 4
  • 20
  • 32
28
votes
4 answers

Wordnet SQL Explanation

I'm trying to get a simple synonym database up and running, so I can find synonyms of words the user entered (nothing else!). For this I grabbed a copy of the Wordnet sql thesarus (http://wnsql.sourceforge.net/), but now I'm presented with all these…
Jmumby Clasul
  • 441
  • 1
  • 7
  • 9
26
votes
14 answers

Resource 'corpora/wordnet' not found on Heroku

I'm trying to get NLTK and wordnet working on Heroku. I've already done heroku run python nltk.download() wordnet pip install -r requirements.txt But I get this error: Resource 'corpora/wordnet' not found. Please use the NLTK Downloader to…
user1881006
  • 273
  • 1
  • 3
  • 7
24
votes
4 answers

English dictionary as txt or xml file with support of synonyms

Can someone point me to where I can download English dictionary as a txt or xml file. I am building a simple app for myself and looking for something what I could start using immediately without learning complex API. Support for synonyms would be…
Simon
  • 241
  • 1
  • 2
  • 3
23
votes
6 answers

Merge related words in NLP

I'd like to define a new word which includes count values from two (or more) different words. For example: Words Frequency 0 mom 250 1 2020 151 2 the 124 3 19 82 4 mother 81 ... ... ... 10 London 6 11 life 6 12 something 6 I…
user13623188
22
votes
8 answers

How do I find the frequency count of a word in English using WordNet?

Is there a way to find the frequency of the usage of a word in the English language using WordNet or NLTK using Python? NOTE: I do not want the frequency count of a word in a given input file. I want the frequency count of a word in general based on…
Apps
  • 529
  • 3
  • 8
  • 15
21
votes
4 answers

How to get the WordNet synset given an offset ID?

I have a WordNet synset offset (for example id="n#05576222"). Given this offset, how can I get the synset using Python?
user1039457
  • 211
  • 1
  • 2
  • 4
20
votes
2 answers

Measuring semantic similarity between two phrases

I want to measure semantic similarity between two phrases/sentences. Is there any framework that I can use directly and reliably? I have already checked out this question, but its pretty old and I couldn't find real helpful answer there. There was…
voidMainReturn
  • 3,339
  • 6
  • 38
  • 66
1
2 3
62 63