uima-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard Eckart de Castilho (JIRA)" <...@uima.apache.org>
Subject [jira] [Commented] (UIMA-5115) uv3 select() api for iterators and streams over CAS contents
Date Tue, 20 Sep 2016 08:27:20 GMT

    [ https://issues.apache.org/jira/browse/UIMA-5115?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15506016#comment-15506016
] 

Richard Eckart de Castilho commented on UIMA-5115:
--------------------------------------------------

I assume you mean selectCovering because there is no coveredBy in uimaFIT?

Return all Sentence annotations (including subtypes of Sentence) that contain the specified
Token annotation.

{code}
Token token = ...;
List<Sentence> sentences = selectCovering(Sentence.class, token)
{code}

In case you mean selectCovered: return all Token annotations (including subtypes of Token)
that are contained within the boundaries of the specified sentence.

{code}
Sentence sentence = ...;
List<Token> tokens = selectCovered(Token.class, sentence)
{code}

I hope that the statements above are correct with respect to the implementation. They are
at least how it should work. selectCovered is using cas.getAnnotationIndex(type).iterator()
which afaik returns subtypes as well. selectCovering is going over the full annotation index
and then uses ts.subsumes() to check if an annotation should be included - so subtypes should
also be included here.

> 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
(v6.3.4#6332)

Mime
View raw message