opennlp-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Kosin <james.ko...@gmail.com>
Subject Silly Question
Date Wed, 21 Sep 2011 03:46:44 GMT
Okay, it is late... so my brain cells may not be working correctly.

But, in Spans:
>   /**
>    * Returns the length of this span.
>    *
>    * @return the length of the span.
>    */
>   public int length() {
>     return end-start;
>   }

This means one of the endpoints in the span don't attribute to the
length of the span.  Is this correct?  Does this mean a span with a
start and end say at 1,1 has no length?  Or is it suppose to be 1?

I have similar problems when counting the number of locations to fill
for a memory block when doing (end - start) type arithmetic.  What
happens is the length ends up being one short.

Thanks,
James

Mime
View raw message