Questions tagged [nltk-trainer]
55 questions
2
votes
2 answers
How to get a node in a tree by its label in nltk python?
I have a tree:
(S
(WH-QUERY Which)
(FLIGHT-NP
(FLIGHT-CNP
(FLIGHT-CNP (FLIGHT-N flight))
(FLIGHT-DEST to (CITY-NP (CITY-NAME Hue) (CITY-N city)))))
(FLIGHT-VP
(FLIGHT-V arrives)
…

Luận Võ Văn
- 88
- 2
- 9
1
vote
1 answer
How to classify new data using a pre-trained model - Python Text Classification (NLTK and Scikit)
I am very new to Text Classification and I am trying to classify each line of a dataset composed by twitter comments according to some pre-defined topics.
I have used the code bellow in Jupyter Notebook to build and train a model with a training…

M_B
- 47
- 7
1
vote
0 answers
Do I have to run the training data each time I update json intent file?
I have created a chatbot using NLTK. I'm trying to perfect my responses, but each time I amend my json intent file, I know no other way but to reinput it by running the training data file.
Is there another way?
Regards
Pav

Pav108
- 47
- 5
1
vote
0 answers
I want to know what process the application is using
I'm developing a program that looks for specific values addressed by a game, I need to know in which "area" of memory the game is running, so I don't have to search all the computer's memory.
How can I get the memory area where the process is…

Default
- 11
- 1
1
vote
0 answers
How To Use "Opinion Lexicon" On NLTK?
I downloaded it:
nltk.download('all')
Now I wish to add the dataset to my classifier. Does anyone know a tutorial?

Maya
- 25
- 4
1
vote
0 answers
Change name of any state, county, regions, or their abbreviations to country name in python NLTK or other packages
I have a list of locations that is mixed with states, cities and countries, counties and regions, in abbreviations and some in full. For instance, NY, CA, England, UK, USA, Minnesota, London, Bradford, etc. I want it all to be converted to countries…

Julius Sechang Mboli
- 60
- 8
1
vote
0 answers
NLTK issue: name 'save_file' is not defined
How can I solve this issue?
from nltk.sentiment.util import demo_sent_subjectivity
sentence='I like her shoes'
demo_sent_subjectivity(sentence)
NameError: name 'save_file' is not defined
demo_sent_subjectivity(text) is a method inside…

Aigerim Sadir
- 353
- 5
- 18
1
vote
0 answers
How to train/extend an nltk vocabulary in a non-English language
I'm parsing a German text with many hyphens in it. To check if a word is a proper German word (and only got seperated by a hyphen because it was the end of the line) or needs those hyphens because that is actually how it should be written, I am…

Ollie
- 189
- 1
- 13
1
vote
2 answers
NLTK saving trained Brill's model
I am training a Brill's POS tagger using the py-crfsuite as provided in NLTK. However when I try to save a trained model, I get the following error:
crf_tagger = CRFTagger()
crf_tagger.train(train_sents, 'model_trained.crf.tagger')
templates =…

humble_fool
- 41
- 7
1
vote
2 answers
NLTK - Convert a chunked tree into a list (IOB tagging)
I need to perform Named Entity Recognition / Classification, and generate output in IOB tagged format.
I'm using a NLTK chunker, as delivered by NLTK-train library, but that produces a Tree, not a list of IOB tags.
def chunk_iob(list_of_words):
…

peleitor
- 459
- 7
- 24
0
votes
1 answer
Lexical dispersion plot with nltk is not working right
i have been using a nltk code to make a lexical dispersion plot. As you can see in the code below ( please excuse the messy imports). I took text for 4 local pdfs extracted the text and did the word_tokenize bit. I have also done the other option…

Kenneth Gomes
- 11
- 2
0
votes
1 answer
predict button is not working. whenever i click on it ,it is showing "The browser (or proxy) sent a request that this server could not understand."
I provided the mandatory code below like flask app, predictionmodel.py and html code still I don't know what the problem is. whenever I run on localhost after clicking submit, I am getting error
The browser (or proxy) sent a request that this…

Ankit
- 1
0
votes
0 answers
What do I have to do to get Ner trainer and sentence Ner to run?
I tried to follow tutorials but can't get the trainer to run and the individual sentence to run.
this is a combination of two tutorials
https://nlpforhackers.io/named-entity-extraction/
https://nlpforhackers.io/training-ner-large-dataset/
`import…

bd3161
- 21
- 1
- 2
0
votes
0 answers
nltk.download not working showing errorno 11001 getaddrinfo failed and
When I run interactive installation as per the guide of nltk, i.e
import nltk
nltk.download()
enter image description here
so as these error occurred I start installing it via proxy server
>>> nltk.set_proxy('http://proxy.example.com:3128',…

Saif Rahman
- 1
- 1
0
votes
1 answer
Why does the nltk lemmatizer not work for every word in Python?
import ntlk
lemmatizer = ntlk.WordNetLemmatizer()
print(lemmatizer.lemmatize("goes"))
print(lemmatizer.lemmatize("transforming"))
The first example will with "goes" do work. The output is: "go". The second does not work. I get the output…

TheRi
- 67
- 5