Dear OPENNLP Experts
I am trying to build the Person Statistical
model using OPEN NLP API’s , refer to java class “OpenNLPPersonTrainer”
.
Training data is as in “train.txt”
However , I am getting the following
message.
Indexing
events using cutoff of 5
Computing event counts...
java.io.IOException:
Found unexpected annotation:
?<START:person> Kunal ###<END>### .
Incorporating
indexed data for training...
Exception
in thread "main"
java.lang.NullPointerException
at opennlp.maxent.GISTrainer.trainModel(GISTrainer.java:263)
at opennlp.maxent.GIS.trainModel(GIS.java:256)
at opennlp.model.TrainUtil.train(TrainUtil.java:184)
at opennlp.tools.namefind.NameFinderME.train(NameFinderME.java:366)
at opennlp.tools.namefind.NameFinderME.train(NameFinderME.java:432)
at opennlp.tools.namefind.NameFinderME.train(NameFinderME.java:443)
at opennlp.tools.namefind.NameFinderME.train(NameFinderME.java:448)
at
com.test.OpenNLPPersonTrainer.main(OpenNLPPersonTrainer.java:73)
I have tried out
almost everything but not able to move forward, please let
me know, what I am doing wrong.
Thanks &
Regards,
Kunal Kishore
Sinha
Information
Management Capability, India Delivery Center,
Bangalore-7|Desk: +91 8067051455
Mobile
No:9035749331
mailto:[email protected]
