wordnet Questions

5

Solved

Given a word, which may or may not be a singular-form noun, how would you generate its plural form? Based on this NLTK tutorial and this informal list on pluralization rules, I wrote this simple f...
Kweichow asked 19/9, 2013 at 18:44

3

Solved

I have a list of all the nouns in WordNet. I want to remove all the nouns that are not vehicles. How do I do it? Below is the pseudo-code I want to make, but I do not know how to make it work: for ...
Pinfold asked 11/3, 2013 at 3:29

4

I use NLTK with wordnet in my project. I did the installation manually on my PC, with pip: pip3 install nltk --user in a terminal, then nltk.download() in a python shell to download wordnet. I wan...
Jerol asked 7/11, 2014 at 11:7

14

Solved

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/wordne...
Spare asked 20/12, 2012 at 5:21

4

I have a set of concatenated word and i want to split them into arrays For example : split_word("acquirecustomerdata") => ['acquire', 'customer', 'data'] I found pyenchant, but it's not ava...
Mussorgsky asked 30/6, 2016 at 13:55

12

Solved

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...
Octahedrite asked 24/9, 2010 at 16:1

5

Solved

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...
Portent asked 23/1, 2013 at 21:1

2

Solved

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 th...
Loosestrife asked 11/3, 2012 at 9:30

8

Solved

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 fol...
Coxa asked 8/10, 2013 at 21:20

4

Solved

How can I find domain of words using nltk Python module and WordNet? Suppose I have words like (transaction, Demand Draft, cheque, passbook) and the domain for all these words is "BANK". How can w...
Marable asked 20/2, 2014 at 8:42

3

I have two files both at the same directory: http://nlp.lsi.upc.edu/awn/AWNDatabaseManagement.py.gz the xml database of Arabic WordNet (http://nlp.lsi.upc.edu/awn/get_bd.php) upc_db.xml When i ...
Vanadium asked 27/10, 2020 at 19:12

2

Solved

I am trying to write a program to find similarity between two documents, and since im using only english, I decided to use wordnet, but I cannot find a way to link the wordnet with php, I cannot fi...
Wellworn asked 13/6, 2011 at 15:6

5

The context is : I already have clusters of words (phrases actually) resulting from kmeans applied to internet search queries and using common urls in the results of the search engine as a distance...
Delphinium asked 30/6, 2015 at 21:11

5

Is there a way in Python 2.7 using NLTK to just get the word and not the extra formatting that includes "synset" and the parentheses and the "n.01" etc? For instance if I do wn.synsets('dog') ...
Outpatient asked 9/7, 2014 at 21:41

2

Solved

I want to import wordnet dictionary but when i import Dictionary form wordnet i see this error : for l in open(WNSEARCHDIR+'/lexnames').readlines(): IOError: [Errno 2] No such file or directory: ...
Dentil asked 12/7, 2011 at 8:0

8

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 w...
Engrain asked 8/5, 2011 at 16:26

3

Solved

I am trying to use the Spanish Wordnet from the Open Multilingual Wordnet in NLTK 3.0, but it seems that it was not downloaded with the 'omw' package. For example, with a code like the following: ...
Tieratierce asked 20/10, 2014 at 20:53

4

Solved

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 ...
Mathews asked 26/6, 2013 at 10:19

8

Solved

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 ...
Voncile asked 23/3, 2013 at 12:23

3

I am looking for a proper solution to this question. This question has been asked many times before and I didn't find a single answer that suited. I need to use a corpus in NLTK to detect whether a...
Leucas asked 17/3, 2015 at 12:54

2

Solved

I want to do the following in Python (I have the NLTK library, but I'm not great with Python, so I've written the following in a weird pseudocode): from nltk.corpus import wordnet as wn #Import th...
Raymonderaymonds asked 12/6, 2014 at 19:59

2

Solved

from nltk.corpus import wordnet syn=wordnet.synsets('cookbook')[0] print syn.definition Expected Output: 'a book of recipes and cooking directions' Actual Output: bound method Synset.defi...
Longe asked 6/1, 2015 at 9:24

6

Solved

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...
Oswaldooswalt asked 2/9, 2020 at 12:44

2

Solved

I'm trying to do data enhancement with a FAQ dataset. I change words, specifically nouns, by most similar words with Wordnet checking the similarity with Spacy. I use multiple for loop to go throug...
Calvados asked 30/4, 2019 at 12:35

5

Solved

For example... Chicken is an animal. Burrito is a food. WordNet allows you to do "is-a"...the hiearchy feature. However, how do I know when to stop travelling up the tree? I want a LEVEL. That i...
Reprimand asked 8/11, 2009 at 10:29

© 2022 - 2025 — McMap. All rights reserved.