[
https://issues.apache.org/jira/browse/UIMA-6160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16995040#comment-16995040
]
Marshall Schor commented on UIMA-6160:
--------------------------------------
Right you are! , sorry for being slow /dense. There are other startAt methods
that only make sense for annotations, and this form (a single int arg) doesn't
currently exist, so could be added and defined to do this.
I'm thinking that startAt(int) would be defined as startAt(int,
Integer.MAX_VALUE), does that make sense to you? That way, the meaning would
be to get all annotations starting at a particular location (subject to some
modifications based on other constraints being specified, e.g. if
typePriorities are being used, etc.). WDYT?
> Single int arg version of select.startAt()?
> -------------------------------------------
>
> Key: UIMA-6160
> URL: https://issues.apache.org/jira/browse/UIMA-6160
> Project: UIMA
> Issue Type: Improvement
> Components: UIMA
> Affects Versions: 3.1.1SDK
> Reporter: Richard Eckart de Castilho
> Priority: Major
>
> If one wants to start looking for a particular annotation at a given
> character position, then I think it would be convenient to be able to say
> "select(Token.class).startAt(offset)", instead of having to say
> "select(Token.class).startAt(offset, offset)".
> What is not clear to me from reading the documentation is whether a Token
> which *ends* at offset would be returned or not.
> Another special case which is not clear by the documentation is whether a
> Token which *starts and ends* at offset would be returned.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)