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

Ruta: matching with manual anchor

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.0ruta
    • Fix Version/s: 2.2.0ruta
    • Component/s: Ruta
    • Labels:
      None

      Description

      text span:
      "0.3-0.7"

      rules:

      DECLARE Number;
      DECLARE NumberExpression;
      NUM {-PARTOF(Number)} ((COMMA | PERIOD) NUM)? {->MARK(Number,1,2)};
      ((Number? ("<" | ">" | "=" | "==" | "-" | "+"))? {-PARTOF(NumberExpression)} @Number) {-PARTOF(NumberExpression)->MARK(NumberExpression)};
      

      result:
      -0.7 annotated as number expression
      expected:
      0.3 as number expression
      [or 0.3-0.7 if manual anchoring tries to match at the end of the document first... depends on rule inference]

      the rules should not be used for parsing of number expressions, but the behaviour should be consistent with the expectations for the rule inference

        Attachments

          Activity

            People

            • Assignee:
              pkluegl Peter Klügl
              Reporter:
              mtoepfer Martin Toepfer
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: