Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
tools-1.5.1-incubating
-
None
Description
The Sentence Detector code needs a robust mechanism to detect the precense of a white space. In OpenNLP white spaces should be detected with StringUtil.isWhitespace, but the Sentence Detector either call Chracter.isWhitespace or equals a character with the space character.
To fix this issue refactor the code to always use StringUtil.isWhitespace to detect whites spaces.