ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tm...@apache.org
Subject svn commit: r1493805 - /ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/feature/ParseSpanFeatureExtractor.java
Date Mon, 17 Jun 2013 15:18:52 GMT
Author: tmill
Date: Mon Jun 17 15:18:52 2013
New Revision: 1493805

URL: http://svn.apache.org/r1493805
Log:
Fixed bug in feature extractor that printed child node 2x instead of parent node.

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

Modified: ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/feature/ParseSpanFeatureExtractor.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/feature/ParseSpanFeatureExtractor.java?rev=1493805&r1=1493804&r2=1493805&view=diff
==============================================================================
--- ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/feature/ParseSpanFeatureExtractor.java
(original)
+++ ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/feature/ParseSpanFeatureExtractor.java
Mon Jun 17 15:18:52 2013
@@ -20,14 +20,14 @@ public class ParseSpanFeatureExtractor  
       if(domNode.getNodeTags() != null){
         for(int ind = 0; ind < domNode.getNodeTags().size(); ind++){
           String tag = domNode.getNodeTags(ind);
-//          if(tag.equals("TMP")){
+          if(tag.equals("TMP")){
             feats.add(new Feature("DominatingTmpTag", tag));
-//          }
+          }
         }
       }
       TreebankNode parent = domNode.getParent();
       if(parent != null){
-        feats.add(new Feature("DominatingTreeParent", domNode.getNodeType()));
+        feats.add(new Feature("DominatingTreeParent", parent.getNodeType()));
         do{
           if(parent.getNodeTags() != null){
             for(int ind = 0; ind < parent.getNodeTags().size(); ind++){



Mime
View raw message