[ https://issues.apache.org/jira/browse/OPENNLP-338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13434090#comment-13434090 ]
Joern Kottmann edited comment on OPENNLP-338 at 8/14/12 11:53 PM: ------------------------------------------------------------------ If you run the train command you get an error in the model serializer, I suggest to train on the ppa data set, serialize the model and then load it again to ensure there are no runtime errors in this code path. Its also easier to debug in an IDE if it fails in a junit test. That is the exception I get: Caused by: java.lang.NullPointerException at opennlp.model.GenericModelWriter.persist(GenericModelWriter.java:91) at opennlp.tools.util.model.ModelUtil.writeModel(ModelUtil.java:71) at opennlp.tools.util.model.GenericModelSerializer.serialize(GenericModelSerializer.java:39) at opennlp.tools.util.model.GenericModelSerializer.serialize(GenericModelSerializer.java:31) at opennlp.tools.util.model.BaseModel.serialize(BaseModel.java:553) at opennlp.tools.cmdline.CmdLineUtil.writeModel(CmdLineUtil.java:173) at opennlp.tools.cmdline.namefind.TokenNameFinderTrainerTool.run(TokenNameFinderTrainerTool.java:193) at opennlp.tools.cmdline.CLI.main(CLI.java:222) ... 6 more was (Author: joern): If you run the train command you get an error in the model serializer, I suggest to train on the ppa data set, serialize the model and then load it again to ensure there are no runtime errors in this code path. Its also easier to debug in an IDE if it fails in a junit test. > Add L-BFGS parameter estimation training to maxent > -------------------------------------------------- > > Key: OPENNLP-338 > URL: https://issues.apache.org/jira/browse/OPENNLP-338 > Project: OpenNLP > Issue Type: New Feature > Components: Maxent > Reporter: Joern Kottmann > Assignee: Hyosup Shim > Fix For: tools-1.5.3 > > Attachments: nl-per.testa, nl-per.testb, nl-per.train, > patch20120814-lbfgs.txt, patch-lbfgs.txt > > > Add support for the L-BFGS algorithm to train a maxent classifier. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira