I was trying to train the Treebank Parser with some new data.
Truth to be told, the data was in poor format. Specifically, instead of "(
RRB RRB)", it contained "( RRB)".
The same for
Due to this input data, the parsing code was throwing some NullPointerException errors.
The fixes consist in some supplementary "if()"s, to safeguard against null pointers.
Fixes are in 3 files, attached as diff. The diff was created by svn, run in the opennlp-tool/.../parser directory.