I'm using the OpenNLP SVN code and attempting to train a model for the name 
finder doesn't work. I'm not sure I conceptually understand the problem yet. It 
doesn't appear that my training data is even utilized yet.

opennlp TokenNameFinderTrainer -encoding UTF-8 -model namefinder-test.bin -lang 
en -data namefinder-test.model

Exception in thread "main" java.lang.IllegalArgumentException: Model not 
compatible with name finder!
        at 
opennlp.tools.namefind.TokenNameFinderModel.<init>(TokenNameFinderModel.java:81)
        at 
opennlp.tools.namefind.TokenNameFinderModel.<init>(TokenNameFinderModel.java:106)
        at opennlp.tools.namefind.NameFinderME.train(NameFinderME.java:374)
        at opennlp.tools.namefind.NameFinderME.train(NameFinderME.java:403)
        at 
opennlp.tools.cmdline.namefind.TokenNameFinderTrainerTool.run(TokenNameFinderTrainerTool.java:179)
        at opennlp.tools.cmdline.CLI.main(CLI.java:222)

A similar exception happens with using the training API:

Exception in thread "main" java.lang.IllegalArgumentException: Model not 
compatible with name finder!
                at 
opennlp.tools.namefind.TokenNameFinderModel.<init>(TokenNameFinderModel.java:107)
                at 
opennlp.tools.namefind.NameFinderME.train(NameFinderME.java:362)

Patrick Baggett
Online Engineer - Search Team
e: [email protected]<mailto:[email protected]>
p: +1 (214) 202-8964


________________________________

The information in this Internet Email is confidential and may be legally 
privileged. It is intended solely for the addressee. Access to this Email by 
anyone else is unauthorized. If you are not the intended recipient, any 
disclosure, copying, distribution or any action taken or omitted to be taken in 
reliance on it, is prohibited and may be unlawful. When addressed to our 
clients any opinions or advice contained in this Email are subject to the terms 
and conditions expressed in any applicable governing The Home Depot terms of 
business or client engagement letter. The Home Depot disclaims all 
responsibility and liability for the accuracy and content of this attachment 
and for any damages or losses arising from any inaccuracies, errors, viruses, 
e.g., worms, trojan horses, etc., or other items of a destructive nature, which 
may be contained in this attachment and shall not be liable for direct, 
indirect, consequential or special damages in connection with this e-mail 
message or its attachment.

Reply via email to