OpenNlp supports Right / Left Round Bracket and Right / Left Curly Bracket, but not Right / Left Square Bracket.
Fix is simple, by adding the corresponding "if()"s in 3 files:
I attach the patch for this fix, made by svn diff in trunk/.
However, please note that this patch includes also the changes for the fix of
Unfortunately, I cannot really go around this, as the changes for
OPENNLP-597 were not yet merged, at the moment when I opened OPENNLP-598.
If this is a problem, I will re-create this patch, after
OPENNLP-597 is closed & its changes merged.