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

TokenizerTrainer throws NPE

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

      Description

      "Just today I was testing the TokenizerTrainer and I found a bug there with
      the isSkipAlphaNumerics parameter: in the initialize() method, I see that
      it's defined as a local variable too so the instance variable gets never
      assigned and this causes a NPE on the collectionProcessComplete().
      The fix is in just removing the "Boolean" type definition at line 111 of
      TokenizerTrainer [1] which allows assignment of configuration parameter
      value to the instance variable.

      [1] :
      http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-uima/src/main/java/opennlp/uima/tokenize/TokenizerTrainer.java?view=markup
      " (Tommaso Teofili)

        Attachments

          Activity

            People

            • Assignee:
              joern Jörn Kottmann
              Reporter:
              joern Jörn Kottmann

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment