I am using TaggedCorpusReader to parse a file with my own data (words tagged with its POS).
Example content of my data:
dhoni_NNP virat_NNP kohli_NNP
If my input sentence is what is the best score of dhoni
and I am parsing this as:
input = 'what is the best score of dhoni'
tokens = nltk.word_tokenize(self.input)
nltk.pos_tag(tokens)
I would like the word dhoni
to be detected as NNP
.
How do I ask NLTK to include the custom file while tagging POS?
--
You received this message because you are subscribed to the Google Groups "nltk-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nltk-users+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.