You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@opennlp.apache.org by "Jörn Kottmann (JIRA)" <ji...@apache.org> on 2011/07/06 11:33:16 UTC
[jira] [Closed] (OPENNLP-202) Refactor the sentence detector to
correctly detect white spaces
[ https://issues.apache.org/jira/browse/OPENNLP-202?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jörn Kottmann closed OPENNLP-202.
---------------------------------
Resolution: Fixed
It done, replaced calls to Character.isWhitespace with StringUtil.isWhitespace and char compares to the white space character with StringUtil.isWhitespace.
> Refactor the sentence detector to correctly detect white spaces
> ---------------------------------------------------------------
>
> Key: OPENNLP-202
> URL: https://issues.apache.org/jira/browse/OPENNLP-202
> Project: OpenNLP
> Issue Type: Improvement
> Components: Sentence Detector
> Affects Versions: tools-1.5.1-incubating
> Reporter: Jörn Kottmann
> Assignee: Jörn Kottmann
> Fix For: tools-1.5.2-incubating
>
>
> 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.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira