You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@opennlp.apache.org by "Joern Kottmann (JIRA)" <ji...@apache.org> on 2013/04/03 10:37:16 UTC

[jira] [Commented] (OPENNLP-567) Error in opennlp.tools.util.Span.toString() end bracket should be "]" not ")"

    [ https://issues.apache.org/jira/browse/OPENNLP-567?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13620736#comment-13620736 ] 

Joern Kottmann commented on OPENNLP-567:
----------------------------------------

The included things (usually chars or tokens) in the span are represented here as an interval and the end point is excluded.

Have a look here:
https://en.wikipedia.org/wiki/Interval_(mathematics)#Excluding_the_endpoints
                
> Error in opennlp.tools.util.Span.toString() end bracket should be "]" not ")"
> -----------------------------------------------------------------------------
>
>                 Key: OPENNLP-567
>                 URL: https://issues.apache.org/jira/browse/OPENNLP-567
>             Project: OpenNLP
>          Issue Type: Bug
>    Affects Versions: tools-1.5.3
>         Environment: All
>            Reporter: Krishna Sankar
>            Priority: Trivial
>              Labels: error, print
>   Original Estimate: 10m
>  Remaining Estimate: 10m
>
> public String toString() {
>     StringBuffer toStringBuffer = new StringBuffer(15);
>     toStringBuffer.append("[");
>     toStringBuffer.append(getStart());
>     toStringBuffer.append("..");
>     toStringBuffer.append(getEnd());
>     toStringBuffer.append(")"); <-- this should be "]"
>     return toStringBuffer.toString();
>   }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira