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

TokenizerTrainer throws NPE

    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

            joern Jörn Kottmann
            joern Jörn Kottmann
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: