Peter Klügl created UIMA-6132:
---------------------------------

             Summary: Ruta: support label expressions at macro action
                 Key: UIMA-6132
                 URL: https://issues.apache.org/jira/browse/UIMA-6132
             Project: UIMA
          Issue Type: Bug
          Components: Ruta
    Affects Versions: 2.7.0ruta
            Reporter: Peter Klügl


{noformat}
ACTION CreateDate(ANNOTATION year, ANNOTATION month, ANNOTATION day) = 
CREATE(Date, "kind" = "DATE", "year" = year, "month" = month, "day" = day);
ACTION CreateDateInterval(ANNOTATION startDate, ANNOTATION endDate) = 
CREATE(DateInterval, "kind" = "DATEINTERVAL", "startDate" = startDate, 
"endDate" = endDate);

(day:DayInd{-> d1:CreateDate(d2.year,d2.month,day)} 
TemporalIntervalEndIndicator 
    d2:@Date{d2.day!=null, d2.month!=null}){-> CreateDateInterval(d1, d2)};
{noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to