1

I would like some help to use Lucene in my Java App to simplify a text.

I already did it myself but I don't have solution for verbs and plurial.

How can I process ?

  • Please, create a [Minimal, Complete, and Verifiable example](http://stackoverflow.com/help/mcve) How about trying smth and share a piece of code? – Ivan Pronin Aug 06 '17 at 19:23
  • Its somewhat clear what you're asking. But please go and read the link that provided by the above comment. We aren't help you to **write code** but we can help you to **solve specific problem**. – Blasanka Aug 06 '17 at 19:25

1 Answers1

0

If I understand your question correctly, you want to detect nouns/verb from a text. AFAIK Lucene on its own does not have capability to detect this. You can instead look at OpenNLP library which is a

machine learning based toolkit for the processing of natural language text

So it would be using concepts like training models and then predicting. It has a POSTagger API (part of speech tagger) - you can take a look at it's usage here in docs and some detailed examples here,here and here.

Another excellent framework in Java is Stanford Core NLP You can take a look at Stanford Log-linear Part-Of-Speech Tagger here

Shailendra
  • 8,874
  • 2
  • 28
  • 37