ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tm...@apache.org
Subject svn commit: r1586361 - /ctakes/trunk/ctakes-temporal/src/main/resources/org/apache/ctakes/temporal/timenorm.en.grammar
Date Thu, 10 Apr 2014 16:18:10 GMT
Author: tmill
Date: Thu Apr 10 16:18:09 2014
New Revision: 1586361

URL: http://svn.apache.org/r1586361
Log:
CTAKES-82: Changes to time normalization grammar to allow ordinal numbers.

Modified:
    ctakes/trunk/ctakes-temporal/src/main/resources/org/apache/ctakes/temporal/timenorm.en.grammar

Modified: ctakes/trunk/ctakes-temporal/src/main/resources/org/apache/ctakes/temporal/timenorm.en.grammar
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-temporal/src/main/resources/org/apache/ctakes/temporal/timenorm.en.grammar?rev=1586361&r1=1586360&r2=1586361&view=diff
==============================================================================
--- ctakes/trunk/ctakes-temporal/src/main/resources/org/apache/ctakes/temporal/timenorm.en.grammar
(original)
+++ ctakes/trunk/ctakes-temporal/src/main/resources/org/apache/ctakes/temporal/timenorm.en.grammar
Thu Apr 10 16:18:09 2014
@@ -69,6 +69,14 @@ ROOTS [Period] [PeriodSet] [TimeSpan] [T
 [Int] ||| couple ||| 2 ||| 1.0
 [Int] ||| couple of ||| 2 ||| 1.0
 
+// ================================================
+// ordinal numbers that map to ints
+// ================================================
+[FieldValue:OrdinalDayOfMonth] ||| [Int] st ||| DAY_OF_MONTH [Int] ||| 1.0
+[FieldValue:OrdinalDayOfMonth] ||| [Int] nd ||| DAY_OF_MONTH [Int] ||| 1.0
+[FieldValue:OrdinalDayOfMonth] ||| [Int] rd ||| DAY_OF_MONTH [Int] ||| 1.0
+[FieldValue:OrdinalDayOfMonth] ||| [Int] th ||| DAY_OF_MONTH [Int] ||| 1.0
+
 // =========================================
 // expressions that identify a temporal unit
 // =========================================
@@ -222,6 +230,7 @@ ROOTS [Period] [PeriodSet] [TimeSpan] [T
 [FieldValue:MonthDay] ||| [FieldValue:NamedDay] ||| [FieldValue:NamedDay] ||| 1.0
 [FieldValue:MonthDay] ||| [FieldValue:MonthOfYear] [FieldValue:DayOfMonth] ||| [FieldValue:MonthOfYear]
[FieldValue:DayOfMonth] ||| 1.0
 [FieldValue:MonthDay] ||| [FieldValue:MonthOfYear] [FieldValue:NumericDayOfMonth] ||| [FieldValue:MonthOfYear]
[FieldValue:NumericDayOfMonth] ||| 1.0
+[FieldValue:MonthDay] ||| [FieldValue:MonthOfYear] [FieldValue:OrdinalDayOfMonth] ||| [FieldValue:MonthOfYear]
[FieldValue:OrdinalDayOfMonth] ||| 1.0
 [FieldValue:MonthDay] ||| [FieldValue:NumericMonthOfYear] [FieldValue:NumericDayOfMonth]
||| [FieldValue:NumericMonthOfYear] [FieldValue:NumericDayOfMonth] ||| 1.0
 [FieldValue:MonthDay] ||| [FieldValue:DayOfWeek] [FieldValue:MonthDay] ||| [FieldValue:DayOfWeek]
[FieldValue:MonthDay] ||| 1.0
 



Mime
View raw message