Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Cannot Reproduce
-
None
-
None
-
None
Description
i am trying to create urdu POS tagger model. how to train my ur-pos.bin fille according to my train data...i work on it alot but have error at line
model = POSTaggerME.train("en", sampleStream, TrainingParameters.defaultParams(), factory);
error is following:
Exception in thread "main" java.lang.NoClassDefFoundError: opennlp/model/TrainUtil
at opennlp.tools.postag.POSTaggerME.train(POSTaggerME.java:332)
at myproject.TaggerDictionaryTest.testTrainTaggerWithDictionary(TaggerDictionaryTest.java:98)
at myproject.TaggerDictionaryTest.main(TaggerDictionaryTest.java:40)
Caused by: java.lang.ClassNotFoundException: opennlp.model.TrainUtil
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 3 more
how to resolve this error