Questions tagged [nltk-trainer]
55 questions
0
votes
1 answer
NLTK MaxentClassifier train with negative cases
I am new at nltk library and I try to teach my classifier some labels with my own corpus.
For this I have a file with IOB tags like this :
How O
do B-MYTag
you I-MYTag
know O
, O
where B-MYTag
to O
park O
? O
I do this by:
self.classifier =…

Marko Zadravec
- 8,298
- 10
- 55
- 97
0
votes
0 answers
Extract subject using textblob nltk
I am using textblob nltk to do some action for a given sentence.I am very new to nltk and text processing.I am able to decide the action for the given sentence but I have no idea how to extract the subject
Here is the code
from textblob.classifiers…

MaPY
- 321
- 2
- 13
0
votes
0 answers
Identifying interest / topic from text
I am attempting to build a model that will attempt to identify the interest category / topic of supplied text. For example:
Shop for Bridal Wedding Sarees from our exhausting variety of beautiful and designer sarees. Get great deals, quality…

GBD
- 15,847
- 2
- 46
- 50
0
votes
1 answer
How to train new labels in NLTK for name entity recognition
i am new to python I need to extract a job titles from text and I need to know how to train data for name entity recognition and where to train the data

Balaji D
- 111
- 1
- 6
0
votes
1 answer
How to use different chunkers successively in NLTK?
I'm using "Python 3 Text Processing with NLTK3 Cookbook" to analyse text.
I created the 2 chunkers "LocationChunker" and "PersonChunker" and they work well.
I looked everywhere but how can you use both of them in the same time to analyse a sentence…

Pierre Auclair
- 21
- 4
0
votes
0 answers
nltk-trainer re-train classifier
I am trying to see if I can re-train an existing classifier (.pickle file, trained using nltk-trainer) with some newly obtained data.
I've trained the classifier using these links as reference, [1], [2]
As of now, I am retraining a new classifier on…

Chenna V
- 10,185
- 11
- 77
- 104
-1
votes
1 answer
How to get the pov/neg percentage from nltk classifier?
I have a normal classifier which I made from the nltk twittes, more on that in this article: https://www.digitalocean.com/community/tutorials/how-to-perform-sentiment-analysis-in-python-3-using-the-natural-language-toolkit-nltk
I want to get the…

Maya
- 25
- 4
-1
votes
1 answer
Where can I find a NLTK source + installation?
I found a helpful NLTK guide:
https://www.digitalocean.com/community/tutorials/how-to-perform-sentiment-analysis-in-python-3-using-the-natural-language-toolkit-nltk
However, it does not meet my criteria. I need a deeper analysis. Does anyone have a…

Maya
- 25
- 4
-2
votes
1 answer
Getting for line in plaintext.split('\n'): UnicodeDecodeError: 'ascii' codec can't decode byte 0x96 in position 2: ordinal not in range(128)
I'm going to design sentimental analysis on twitter data using nltk tutorials but not able to run following code
import pickle
import random
import nltk
from nltk import pos_tag
from nltk.classify import ClassifierI
from nltk.classify.scikitlearn…

Bhushan Gunjal
- 39
- 1
- 8
-6
votes
2 answers
How to add a label to all words in a file?
I have a file containing words, I want to read this file and add a label in front of all words. The label should be added on the right side of the words. eg. book - "O", Berlin - "O". How to do it in python? I have tried this code but not given my…

The Afghan
- 99
- 1
- 7