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

Michael Stenger commented on UIMA-6258:
---------------------------------------

I didn't really have a use case for this here, I was just testing FILL's 
behaviour and taking a look at the source code. It seemed odd to me and easy to 
fix, so I opened the issue... Thanks for fixing.

> 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)

Reply via email to