You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@opennlp.apache.org by "Suneel Marthi (JIRA)" <ji...@apache.org> on 2017/06/26 02:51:01 UTC

[jira] [Commented] (OPENNLP-1055) POSTagger.train causing error

    [ https://issues.apache.org/jira/browse/OPENNLP-1055?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16062506#comment-16062506 ] 

Suneel Marthi commented on OPENNLP-1055:
----------------------------------------

TrainUtil has been deprecated and removed as of OpenNLP 1.8.0, not sure which version of OpenNLP u r running with; suggest that you switch to using 1.8.0 and see if your problem recurs. 

> POSTagger.train causing error
> -----------------------------
>
>                 Key: OPENNLP-1055
>                 URL: https://issues.apache.org/jira/browse/OPENNLP-1055
>             Project: OpenNLP
>          Issue Type: Bug
>            Reporter: zaheen mumtaz
>
> 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



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)