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 2022/01/07 08:33:00 UTC
[jira] [Commented] (UIMA-6407) Ruta: Relevance/Purpose of GATHER
[ https://issues.apache.org/jira/browse/UIMA-6407?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17470434#comment-17470434 ]
Peter Klügl commented on UIMA-6407:
-----------------------------------
You are correct. GATHER is irrelevant since the introduction of labels.
Before labels have been available, there was a need to have some action to create complex annotations where the features are set to specific matches of other rule elements. Thus the GATHER action was introduced. I would call it deprecated now and would not recommend using it. It is still there for backwards compatibility.
(The same applies for other language elements like SHIFT)
> Ruta: Relevance/Purpose of GATHER
> ---------------------------------
>
> Key: UIMA-6407
> URL: https://issues.apache.org/jira/browse/UIMA-6407
> Project: UIMA
> Issue Type: Question
> Components: Ruta
> Affects Versions: 2.8.1ruta, 3.1.0ruta
> Reporter: Michael Stenger
> Assignee: Peter Klügl
> Priority: Minor
>
> Hi.
> This is just a question for clarification on the functionality of action GATHER. As far as I can tell, it creates a new annotation of the given type, spanning the matched annotation of the given rule elements and allows to assign them to the features of the created annotation.
> But how is this different from the CREATE action? I'd argue that the latter can do the same and more, which would render GATHER irrelevant. Just by using LabelExpressions instead of NumberExpressions as arguments:
> {noformat}
> A B{-> GATHER(C, 1, 2, "a" = 1, "b" = 2)};
> // VS
> x:A y:B{-> CREATE(C, 1, 2, "a" = x, "b" = y)};{noformat}
> Some clarification would be great. Thank you.
> Best, Michael
--
This message was sent by Atlassian Jira
(v8.20.1#820001)