Search code examples
javamachine-learningnlpopennlpinformation-extraction

Java Algorithm To Extract Information From a String


I'm trying to implement a smart search feature in my application. Usecase: The user enters the search term in a textbox

Eg: Find me a christian male 28 years old from Brazil.

I need to be parse the input into a map as follows:

Gender: male Age: 38 Location: Brazil Relegion: Christian

Already had a glance on : OpenNLP, Cross Validate, Java Pattern Matching and Regex, Information Extraction. I'm confused which one I need to look deeper into.

Is there any java lib already available for this specific domain?


Solution

  • There's an API that extracts structured information (JSON) from free text: http://wit.ai

    You need to train Wit with some examples of what you want to be achieved.

    enter image description here