I have never done this, but have you seen: http://stackoverflow.com/questions/6359050/opennlp-headrules
Daniel Russ, Ph.D. Staff Scientist, Office of Intramural Research Center for Information Technology National Institutes of Health U.S. Department of Health and Human Services 12 South Drive Bethesda, MD 20892-5624 On Apr 14, 2016, at 9:30 AM, Yohanes Gultom <[email protected]<mailto:[email protected]>> wrote: Hi all, I'm trying to do a constituency parsing on Non-English sentence (Indonesian) using OpenNLP. I already have a training data (attached) but I don't know how to create a head rules. As far as I can understand, head rules is a set of CFG production rules but I can't understand the format. Could anyone help to explain how to create a head rules from a training data? I also notice that in documentation (https://opennlp.apache.org/documentation/1.6.0/manual/opennlp.html#tools.parser.training), there is no example yet on using API to train a parser. Could anyone provide a brief example on this? Many t hanks. Yohanes Gultom
