You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Richard Eckart de Castilho (Jira)" <de...@uima.apache.org> on 2020/10/22 06:25:00 UTC
[jira] [Work started] (UIMA-6284) select.following() fails to find
adjacent annotations
[ https://issues.apache.org/jira/browse/UIMA-6284?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Work on UIMA-6284 started by Richard Eckart de Castilho.
--------------------------------------------------------
> select.following() fails to find adjacent annotations
> -----------------------------------------------------
>
> Key: UIMA-6284
> URL: https://issues.apache.org/jira/browse/UIMA-6284
> Project: UIMA
> Issue Type: New Feature
> Components: Core Java Framework
> Affects Versions: 3.1.1SDK
> Reporter: Richard Eckart de Castilho
> Assignee: Richard Eckart de Castilho
> Priority: Major
> Fix For: 3.2.0SDK
>
>
> Select following\(x) fails to return an annotation which starts at the end position of x - or otherwise said, the test below fails.
> {code}
> @Test
> public void thatSelectFollowingReturnsAdjacentAnnotation()
> {
> Annotation a1 = cas.createAnnotation(cas.getCasType(Sentence.class), 10, 20);
> Annotation a2 = cas.createAnnotation(cas.getCasType(Sentence.class), 20, 30);
>
> asList(a1, a2).forEach(cas::addFsToIndexes);
>
> List<Annotation> selection = cas.<Annotation>select(cas.getCasType(Sentence.class))
> .following(a1)
> .asList();
>
> assertThat(selection)
> .containsExactly(a2);
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)