Kawamoto Takeshi
Kawamoto Takeshi

Reputation: 606

Stanford NLP -- specifying a POS

I downloaded and successfully added the Stanford NLP libraries to my project. Following this Stackoverflow Answer, it worked perfectly. However, is there a way to specify the 'POS' to be searched? Or is it possible?

Example: If you used the word creation, is it possible to set the POS Tag to verb so that it will return create rather than creation?

Upvotes: 0

Views: 88

Answers (1)

Vineet Kasat
Vineet Kasat

Reputation: 1014

POS tagging will not suggest words for you. It will provide the results as per your trained model. You need to write your own layer above pos tagger which will do this stuff. A suggestion would be to user completionsuggest of elasticsearch.

Upvotes: 1

Related Questions