TokenizerTrainer throws NPE
---------------------------
Key: OPENNLP-151
URL: https://issues.apache.org/jira/browse/OPENNLP-151
Project: OpenNLP
Issue Type: Bug
Components: UIMA Integration
Reporter: Jörn Kottmann
Assignee: Jörn Kottmann
Fix For: tools-1.5.1-incubating
"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)
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira