Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-3338

Question Greedy quantifier in Ruta not working

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.0ruta
    • 2.2.0ruta
    • Ruta
    • None

    Description

      Hi,

      I am using a ruta rule like

      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)

      to match and modify input like both

      anArt|AtPl aNoun|NoPl aVerb|VbSg

      and

      anArt|AtPl aNoun|NoPl aPronoun|PnDmPl aVerb|VbSg

      However, the rule matches only the second case:

      anArt|AtPl aNoun|NoPl aVerb|VbSg
      anArt|AtPl aNoun|NoPl aPronoun|PnDmPl aVerb|VbPl

      i.e. the optional quantifier seems not to be working.

      Thanks for looking into this.

      Attachments

        Activity

          People

            pkluegl Peter Klügl
            prokopis Prokopis Prokopidis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: