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

Peter Klügl updated UIMA-3841:
------------------------------

    Description: 
I've recently had problems with Ruta's rule inference. The sentence was like "X 
y, y, X, y, X" and the rule was similar to :

{noformat}
S {CONTAINS(x) -> UNMARK(S)} (COMMA? S)+ {CONTAINS(y), -CONTAINS(CW) -> 
UNMARKALL(S), MARK(S,1,2)};
{noformat}

where S annotations are segments, initially:
[X y], [y], [X], [y], [X]

It ignores the condition -CONTAINS(CW) sometimes and annotates:
[X y, y, X, y, X]

The problem seems to be related to the composed rule element (COMMA? S)+ and 
the condition action part of it.

  was:
I've recently had problems with Ruta's rule inference. The sentence was like "X 
y, y, X, y, X" and the rule was similar to :

S {CONTAINS(x) -> UNMARK(S)} (COMMA? S)+ {CONTAINS(y), -CONTAINS(CW) -> 
UNMARKALL(S), MARK(S,1,2)};

where S annotations are segments, initially:
[X y], [y], [X], [y], [X]

It ignores the condition -CONTAINS(CW) sometimes and annotates:
[X y, y, X, y, X]

The problem seems to be related to the composed rule element (COMMA? S)+ and 
the condition action part of it.


> Ruta: greedy composed rule element ignores -contains condition
> --------------------------------------------------------------
>
>                 Key: UIMA-3841
>                 URL: https://issues.apache.org/jira/browse/UIMA-3841
>             Project: UIMA
>          Issue Type: Bug
>          Components: ruta
>    Affects Versions: 2.2.0ruta
>            Reporter: Martin Toepfer
>            Assignee: Peter Klügl
>
> I've recently had problems with Ruta's rule inference. The sentence was like 
> "X y, y, X, y, X" and the rule was similar to :
> {noformat}
> S {CONTAINS(x) -> UNMARK(S)} (COMMA? S)+ {CONTAINS(y), -CONTAINS(CW) -> 
> UNMARKALL(S), MARK(S,1,2)};
> {noformat}
> where S annotations are segments, initially:
> [X y], [y], [X], [y], [X]
> It ignores the condition -CONTAINS(CW) sometimes and annotates:
> [X y, y, X, y, X]
> The problem seems to be related to the composed rule element (COMMA? S)+ and 
> the condition action part of it.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to