uima-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Klügl (JIRA) <...@uima.apache.org>
Subject [jira] [Created] (UIMA-4599) Ruta: unknown problem in optional rule lement
Date Thu, 10 Sep 2015 14:00:50 GMT
Peter Klügl created UIMA-4599:
---------------------------------

             Summary: Ruta: unknown problem in optional rule lement
                 Key: UIMA-4599
                 URL: https://issues.apache.org/jira/browse/UIMA-4599
             Project: UIMA
          Issue Type: Bug
          Components: ruta
    Affects Versions: 2.3.1ruta
            Reporter: Peter Klügl
             Fix For: 2.4.0ruta


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

{noformat}
(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
        )};
{noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message