uima-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marshall Schor <...@schor.com>
Subject Re: AnnotationFS.getCoveredText returns null?
Date Thu, 23 Feb 2012 16:15:50 GMT


On 2/23/2012 10:07 AM, Jörn Kottmann wrote:
> On 02/23/2012 03:38 PM, Thilo Goetz wrote:
>> Indeed.  I sometimes use negative values for offsets when I want
>> to create an annotation but don't know what the final offsets will
>> be.  Of course it is my responsibility to later set proper values.
>
> What do you think about returning just null when the annotation
> span is invalid?

My feeling is that is less useful than signalling an error.  I think it's 
probably fine to have the error be the index out of range from Java, with its 
stack trace.

-Marshall
>
> Jörn
>

Mime
View raw message