ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dlig...@apache.org
Subject svn commit: r1561890 - /ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/data/analysis/PrintNormalizedTemporalExpressions.java
Date Mon, 27 Jan 2014 22:31:17 GMT
Author: dligach
Date: Mon Jan 27 22:31:17 2014
New Revision: 1561890

URL: http://svn.apache.org/r1561890
Log:
forgot to lowercase the timex(s) last time

Modified:
    ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/data/analysis/PrintNormalizedTemporalExpressions.java

Modified: ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/data/analysis/PrintNormalizedTemporalExpressions.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/data/analysis/PrintNormalizedTemporalExpressions.java?rev=1561890&r1=1561889&r2=1561890&view=diff
==============================================================================
--- ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/data/analysis/PrintNormalizedTemporalExpressions.java
(original)
+++ ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/data/analysis/PrintNormalizedTemporalExpressions.java
Mon Jan 27 22:31:17 2014
@@ -14,7 +14,8 @@ import scala.collection.immutable.Set;
 import com.google.common.collect.Lists;
 
 /**
- * 
+ * Print the time units produced by Steven Bethard's TimeEx normalizer
+ * for temporal expressions in the gold standard.
  */
 public class PrintNormalizedTemporalExpressions extends JCasAnnotator_ImplBase {        
                                      
   
@@ -31,7 +32,7 @@ public class PrintNormalizedTemporalExpr
     }                                                                                   
                                                                                         
                                                           
     
     for(TimeMention mention : Lists.newArrayList(JCasUtil.select(goldView, TimeMention.class)))
{
-      String timex = mention.getCoveredText();
+      String timex = mention.getCoveredText().toLowerCase();
       Set<TemporalUnit> units = DurationTimeUnitFeatureExtractor.normalize(timex);
 
       if(units == null) {



Mime
View raw message