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

Ruta: unknown problem in optional rule element

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.1ruta
    • Fix Version/s: 2.4.0ruta
    • Component/s: Ruta
    • Labels:
      None

      Description

      This rule (actually a wrong tutorial rule!) causes severe problems (exceptions):

      (Labor Entity.label=="NUMBER"{PARSE(v)} AhaUnit 
          (Entity.label=="NUMBER"{PARSE(low)-> ASSIGN(hasLowerLimit, true)} 
          Token.ct=="-" 
          Entity.label=="NUMBER"{PARSE(high)-> ASSIGN(hasUpperLimit, true)})?
          )
          {-> CREATE(LaboratoryValue, 
              "labor" = Labor,
              "unit" = Unit,
              "value" = ""+(v),
              "numericValue" = v,
              "hasNumericValue" = true,
              "lowerLimit" = low,
              "hasLowerLimit" = hasLowerLimit,
              "upperLimit" = high,
              "hasUpperLimit" = hasUpperLimit,
              "limitsFromText" = hasUpperLimit
              )};
      

        Attachments

          Activity

            People

            • Assignee:
              pkluegl Peter Klügl
              Reporter:
              pkluegl Peter Klügl
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: