Uploaded image for project: 'OpenNLP'
  1. OpenNLP
  2. OPENNLP-1055

POSTagger.train causing error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • None
    • 1.8.1
    • 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

      Attachments

        Activity

          People

            smarthi Suneel Marthi
            zaheen mumtaz zaheen mumtaz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: