You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@opennlp.apache.org by Srinivas Yerram <sr...@motivitylabs.com> on 2015/02/13 03:05:32 UTC

OpneNLP grammer rule file syntax to extract key and corresponding values

Hi,

I am newbee to OpenNLP stack,I would like to know the grammar rule file format or sample template for rule file in OpenNLP.

My use case related to extract the key and corresponding values from email text data.If I use grammer file by adding pattern match to key and I can get the values.

Ex: Travel date : 01/12/2015 , where if I find the travel date pattern from input,I would able to extract the date value to capture.

Apart from grammer rule file format,how to use in programm to load grammer file.

I know this is I have done using StanfordNLP, however I would like to verify this feature in OpneNLP.Do we have any other approach similar to this in OpenNLP ?

I would appreciate for any inputs/suggestions on this issue.

Srinivas Yerram
Cell # +91 8121074443