Michael Stenger created UIMA-6258:
-------------------------------------

             Summary: 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: 3.0.1ruta, 2.8.1ruta
            Reporter: Michael Stenger
             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)

Reply via email to