Using filter condition causes writes to stderr
Closed this issue · 0 comments
robfromboulder commented
I'm using a filter condition to limit matches based on confidence:
PhoneNumberFilterStrategy fs = new PhoneNumberFilterStrategy();
fs.setConditions("confidence > 0.7");
This functionality works properly, but each match at runtime results in an output line to stderr like this:
line 1:16 no viable alternative at input '<EOF>'
This occurs when running the Phileas unit tests as well, so it's not just my specific application.
The easy workaround for now is just to ignore stderr when launching applications:
java <...> 2>/dev/null
ps. In our applications, we don't rely on stderr
for much so it's not a big deal. This issue would be more severe if stdout
was getting overrun with these messages, or if the Phileas user is relying more on stderr
than we are :-)