ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject svn commit: r1495438 - /ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/TimeAnnotator.java
Date Fri, 21 Jun 2013 13:43:48 GMT
Author: clin
Date: Fri Jun 21 13:43:47 2013
New Revision: 1495438

URL: http://svn.apache.org/r1495438
Log:
ctakes-temporal: add segment ID as a feature for time expression annotator

Modified:
    ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/TimeAnnotator.java

Modified: ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/TimeAnnotator.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/TimeAnnotator.java?rev=1495438&r1=1495437&r2=1495438&view=diff
==============================================================================
--- ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/TimeAnnotator.java
(original)
+++ ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/TimeAnnotator.java
Fri Jun 21 13:43:47 2013
@@ -156,6 +156,9 @@ public class TimeAnnotator extends Tempo
           String previousOutcome = index < 0 ? "O" : outcomes.get(index);
           features.add(new Feature("PreviousOutcome_" + i, previousOutcome));
         }
+        //add segment ID as a features:
+        features.add(new Feature("SegmentID", segment.getId()));
+        
         // features from dominating parse tree
 //        for(SimpleFeatureExtractor extractor : this.parseFeatureExtractors){
         BaseToken startToken = token;



Mime
View raw message