You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Peter Klügl (Jira)" <de...@uima.apache.org> on 2020/12/04 15:03:00 UTC

[jira] [Resolved] (UIMA-6258) Action FILL only considers first annotation of given type

     [ https://issues.apache.org/jira/browse/UIMA-6258?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Peter Klügl resolved UIMA-6258.
-------------------------------
    Resolution: Fixed

> Action FILL only considers first annotation of given type
> ---------------------------------------------------------
>
>                 Key: UIMA-6258
>                 URL: https://issues.apache.org/jira/browse/UIMA-6258
>             Project: UIMA
>          Issue Type: Bug
>          Components: Ruta
>    Affects Versions: 2.8.1ruta, 3.0.1ruta
>            Reporter: Michael Stenger
>            Assignee: Peter Klügl
>            Priority: Minor
>             Fix For: 2.8.2ruta, 3.0.2ruta
>
>
> Hey!
> I think there is a minor bug in the implementation of action FILL, lines 79-86 of FillAction.java: Even when multiple annotations of the given type are found within/overlapping the range of the matched annotation, only one is modified here.
> Consider the following script:
> {code:java}
> DECLARE SomeType (STRING s);
> (CW W){-> SomeType, SomeType};
> CW{-> FILL(SomeType, "s" = "test")}
> {code}
> on the the input text:
> {code:java}
> This is a test.
> {code}
>  Here, FILL will only assign the string value to one of the newly created SomeType annotations.
> Some clarification would be great. Thanks, Michael.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)