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

Peter Klügl reassigned UIMA-3338:
---------------------------------

    Assignee: Peter Klügl

> Question Greedy quantifier in Ruta not working
> ----------------------------------------------
>
>                 Key: UIMA-3338
>                 URL: https://issues.apache.org/jira/browse/UIMA-3338
>             Project: UIMA
>          Issue Type: Bug
>          Components: ruta
>    Affects Versions: 2.1.0ruta
>            Reporter: Prokopis Prokopidis
>            Assignee: Peter Klügl
>
>  Hi,
> I am using a ruta rule like
> {code}Token{REGEXP(Token.tag.value, "AtPl")} // An article
> Token{REGEXP(Token.tag.value, "NoPl")} // A noun in plural
> Token?{REGEXP(Token.tag.value, "PnDmPl")} // An optional demonstrative 
> pronoun in plural
> Token.tag.value=="VbSg"{REGEXP("aVerb", true)->
> Token.tag.value="VbPl"} ; // A verb that is ambiguous as far as number is 
> concerned (Sg-Pl){code}
> to match and modify input like both
> {code}anArt|AtPl aNoun|NoPl aVerb|VbSg{code}
> and
> {code}anArt|AtPl aNoun|NoPl aPronoun|PnDmPl aVerb|VbSg{code}
> However, the rule matches only the second case:
> {code}anArt|AtPl aNoun|NoPl aVerb|VbSg
> anArt|AtPl aNoun|NoPl aPronoun|PnDmPl aVerb|VbPl{code}
>  i.e. the optional quantifier seems not to be working.
> Thanks for looking into this.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to