ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject svn commit: r1478051 - in /ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/feature: EventPropertyExtractor.java TimeXExtractor.java
Date Wed, 01 May 2013 15:28:08 GMT
Author: clin
Date: Wed May  1 15:28:08 2013
New Revision: 1478051

URL: http://svn.apache.org/r1478051
Log:
Add Temporal Attribute Feature extractor for DocTimeRel

Modified:
    ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/feature/EventPropertyExtractor.java
    ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/feature/TimeXExtractor.java

Modified: ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/feature/EventPropertyExtractor.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/feature/EventPropertyExtractor.java?rev=1478051&r1=1478050&r2=1478051&view=diff
==============================================================================
--- ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/feature/EventPropertyExtractor.java
(original)
+++ ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/feature/EventPropertyExtractor.java
Wed May  1 15:28:08 2013
@@ -32,7 +32,7 @@ import org.cleartk.classifier.feature.ex
 public class EventPropertyExtractor implements SimpleFeatureExtractor {
 
   private String name;
-
+  
 //  private Logger logger = Logger.getLogger(this.getClass().getName());
 
   public EventPropertyExtractor() {

Modified: ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/feature/TimeXExtractor.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/feature/TimeXExtractor.java?rev=1478051&r1=1478050&r2=1478051&view=diff
==============================================================================
--- ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/feature/TimeXExtractor.java
(original)
+++ ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/feature/TimeXExtractor.java
Wed May  1 15:28:08 2013
@@ -40,6 +40,7 @@ public class TimeXExtractor implements S
 
   private String name;
   private EventTimeFlatTreeFeatureExtractor path;
+  private TemporalAttributeFeatureExtractor attr;
 
 //  private Logger logger = Logger.getLogger(this.getClass().getName());
 
@@ -47,7 +48,7 @@ public class TimeXExtractor implements S
     super();
     this.name = "TimeXFeature";
     this.path = new EventTimeFlatTreeFeatureExtractor();
-    
+    this.attr = new TemporalAttributeFeatureExtractor();
   }
 
   @Override
@@ -81,6 +82,7 @@ public class TimeXExtractor implements S
 			  features.add(indicator);
 			  try {
 				  features.addAll(this.path.extract(view, targetTokenAnnotation, entry.getValue()));//add
path between timex and event
+				  features.addAll(this.attr.extract(view, targetTokenAnnotation, entry.getValue()));//add
temporal attribute features
 			  } catch (AnalysisEngineProcessException e) {
 				  throw new IllegalArgumentException(String.format("error in gererating path feature:",
features));
 			  }



Mime
View raw message