ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject svn commit: r1649662 - /ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/DocTimeRelAnnotator.java
Date Mon, 05 Jan 2015 21:08:17 GMT
Author: clin
Date: Mon Jan  5 21:08:16 2015
New Revision: 1649662

URL: http://svn.apache.org/r1649662
Log:
add token feature back to DocTimeRel

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

Modified: ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/DocTimeRelAnnotator.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/DocTimeRelAnnotator.java?rev=1649662&r1=1649661&r2=1649662&view=diff
==============================================================================
--- ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/DocTimeRelAnnotator.java
(original)
+++ ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/DocTimeRelAnnotator.java
Mon Jan  5 21:08:16 2015
@@ -147,7 +147,7 @@ public class DocTimeRelAnnotator extends
   @Override
   public void process(JCas jCas) throws AnalysisEngineProcessException {
     for (EventMention eventMention : JCasUtil.select(jCas, EventMention.class)) {
-      List<Feature> features = new ArrayList<>();//this.contextExtractor.extract(jCas,
eventMention);
+      List<Feature> features = this.contextExtractor.extract(jCas, eventMention);
       features.addAll(this.sectionIDExtractor.extract(jCas, eventMention)); //add section
heading
       features.addAll(this.closestVerbExtractor.extract(jCas, eventMention)); //add closest
verb
       features.addAll(this.timeXExtractor.extract(jCas, eventMention)); //add the closest
time expression types



Mime
View raw message