Richard Eckart de Castilho commented on UIMA-5115:

The offsets of two FSes are the same iff (fs1.begin == fs2.begin && fs1.end == 
fs2.end). If the end differs, offsets are not the same.

If there are multiple annotations of the same type at a given (offset) 
position, we need to decide what to do. I think for the case of at, covering, 
and coveredBy, we already agreed that we'd return all at the same position 
except the reference annotation.

For following and preceeding, it is a slightly different case. Is AnnoFS1 
following/preceding AnnoFS2 if they both have the same offset? At least if type 
priorities are disabled, I'd tend towards saying no. That is the way how it is 
currently implemented in uimaFIT. selectFollowing currently seeks forward in 
the index until it reaches the first annotation that starts at/after the end of 
the reference annotation.

It *might* make sense to refine that a bit if type priorities are active... not 

> uv3 select() api for iterators and streams over CAS contents
> ------------------------------------------------------------
>                 Key: UIMA-5115
>                 URL: https://issues.apache.org/jira/browse/UIMA-5115
>             Project: UIMA
>          Issue Type: New Feature
>          Components: Core Java Framework
>            Reporter: Marshall Schor
>            Priority: Minor
>             Fix For: 3.0.0SDKexp
> Design and implement a select() API based on uimaFIT's select, integrated 
> well with Java 8 concepts.  Initial discussions in UIMA-1524.  Wiki with 
> diagram: https://cwiki.apache.org/confluence/display/UIMA/UV3+Iterator+support

This message was sent by Atlassian JIRA

Reply via email to