It was a version problem. I resolved the problem by updating the maxent jar as well as nlp-tools in that project. I had this tool working right before in another project, and that was a glaring difference in the two jobs. The new one was compiled with an earlier maxent jar. I'm wondering if that's going to cause me some grief further down.
Thanks! Barry On Wednesday, February 26, 2014 2:53 AM, Jörn Kottmann <[email protected]> wrote: java.lang.VerifyError might indicate that you compiled against a >different version >of OpenNLP than you are using. > >I suggest that you recompile your code and make sure the compiler uses >1.5.3. > >HTH, >Jörn > > >On 02/25/2014 10:20 PM, Barry Olddog wrote: >> That message came from 1.5.3. >> >> The stack trace: >> >> Exception in thread "main" java.lang.VerifyError: (class: >> opennlp/model/GenericModelReader, method: checkModelType signature: ()V) Bad >> type in putfield/putstatic >> at >> opennlp.tools.util.model.GenericModelSerializer.create(GenericModelSerializer.java:35) >> at >> opennlp.tools.util.model.GenericModelSerializer.create(GenericModelSerializer.java:31) >> at opennlp.tools.util.model.BaseModel.loadModel(BaseModel.java:231) >> at opennlp.tools.util.model.BaseModel.<init>(BaseModel.java:181) >> at >> opennlp.tools.tokenize.TokenizerModel.<init>(TokenizerModel.java:125) > > > >
