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

Ruta: unknown problem in optional rule element

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.3.1ruta
    • 2.4.0ruta
    • Ruta
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: