Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
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)