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 2021/03/23 13:08:00 UTC

[jira] [Work started] (UIMA-6344) Ruta: ConjunctRules fires without justification

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

Work on UIMA-6344 started by Peter Klügl.
-----------------------------------------
> Ruta: ConjunctRules fires without justification
> -----------------------------------------------
>
>                 Key: UIMA-6344
>                 URL: https://issues.apache.org/jira/browse/UIMA-6344
>             Project: UIMA
>          Issue Type: Bug
>          Components: Ruta
>    Affects Versions: 2.8.1ruta, 3.0.1ruta
>            Reporter: Michael Stenger
>            Assignee: Peter Klügl
>            Priority: Major
>             Fix For: 2.9.0ruta, 3.1.0ruta
>
>
> Hi.
> I believe there is currently an issue with CunjunctRules (%) firing in cases they are not supposed to. As I understand the Guide on this topic, any actions assigned to any part of this kind of rule are to be applied only if all parts of the respective rule (the simple rules in between the %-symbols) match at least once in the current scope. However, this does not seem to hold for actions assigned to the first rule element in each part, at least when the first element matches but later ones don't. They just fire anyways.
> Consider the following test case:
>  Text:
> {noformat}
>  a Bb a Bb
> {noformat}
> Script:
> {noformat}
> DECLARE T1, T2, T3, T4;
> SW{-> T1} % CW{-> T3} CW{-> T4};
> CW{-> T1} CW{-> T2} % SW{-> T3};
> SW{-> T1} SW{-> T2} % CW{-> T3} CW{-> T4};
> {noformat}
> Each rule creates 2 annotations of types T1 and T3 each, although at least one part of each rule - in the last case both parts - doesn't match.
> Note:
> {noformat}
> CAP{-> T1} SW{-> T2} % CW{-> T3} CW{-> T4};
> {noformat}
> This works as expected, i.e. no actions are being applied.
> Regards,
>  Michael



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