opennlp-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörn Kottmann <>
Subject Re: Silly Question
Date Thu, 22 Sep 2011 23:03:37 GMT
On 9/23/11 12:52 AM, James Kosin wrote:
> Yes, that makes better sense... unfortunately, if the user uses the
> getStart() and getEnd() methods for a Span and tried to use those
> numbers it may add even more confusion; since the getEnd() returns one
> past the last index in the span.
> Maybe we should refactor the Span class to clarify the proper usage...
> or provide better documentation.

As far as I know it is quite common to define a range as we did. There 
are a couple
of other APIs I know of which do it the same way.

+1 to improve the documentation.


View raw message