incubator-ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tm...@apache.org
Subject svn commit: r1430101 - in /incubator/ctakes/trunk: ctakes-constituency-parser/src/main/java/org/apache/ctakes/constituency/parser/util/ ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/ae/features/
Date Tue, 08 Jan 2013 00:12:11 GMT
Author: tmill
Date: Tue Jan  8 00:12:11 2013
New Revision: 1430101

URL: http://svn.apache.org/viewvc?rev=1430101&view=rev
Log:
ctakes-111: Check in library changes needed for relex features.

Modified:
    incubator/ctakes/trunk/ctakes-constituency-parser/src/main/java/org/apache/ctakes/constituency/parser/util/AnnotationTreeUtils.java
    incubator/ctakes/trunk/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/ae/features/FlatTreeFeatureExtractor.java

Modified: incubator/ctakes/trunk/ctakes-constituency-parser/src/main/java/org/apache/ctakes/constituency/parser/util/AnnotationTreeUtils.java
URL: http://svn.apache.org/viewvc/incubator/ctakes/trunk/ctakes-constituency-parser/src/main/java/org/apache/ctakes/constituency/parser/util/AnnotationTreeUtils.java?rev=1430101&r1=1430100&r2=1430101&view=diff
==============================================================================
--- incubator/ctakes/trunk/ctakes-constituency-parser/src/main/java/org/apache/ctakes/constituency/parser/util/AnnotationTreeUtils.java
(original)
+++ incubator/ctakes/trunk/ctakes-constituency-parser/src/main/java/org/apache/ctakes/constituency/parser/util/AnnotationTreeUtils.java
Tue Jan  8 00:12:11 2013
@@ -244,4 +244,6 @@ public class AnnotationTreeUtils {
 			}
 		}
 	}
+	
+	
 }

Modified: incubator/ctakes/trunk/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/ae/features/FlatTreeFeatureExtractor.java
URL: http://svn.apache.org/viewvc/incubator/ctakes/trunk/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/ae/features/FlatTreeFeatureExtractor.java?rev=1430101&r1=1430100&r2=1430101&view=diff
==============================================================================
--- incubator/ctakes/trunk/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/ae/features/FlatTreeFeatureExtractor.java
(original)
+++ incubator/ctakes/trunk/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/ae/features/FlatTreeFeatureExtractor.java
Tue Jan  8 00:12:11 2013
@@ -3,6 +3,7 @@ package org.apache.ctakes.relationextrac
 import java.util.ArrayList;
 import java.util.List;
 
+import org.apache.ctakes.constituency.parser.treekernel.TreeExtractor;
 import org.apache.ctakes.constituency.parser.util.AnnotationTreeUtils;
 import org.apache.ctakes.typesystem.type.syntax.BaseToken;
 import org.apache.ctakes.typesystem.type.syntax.TreebankNode;
@@ -23,8 +24,9 @@ public class FlatTreeFeatureExtractor im
 		
 		SimpleTree tree = null;
 		tree = new SimpleTree("BOP");
-		TreebankNode lca = AnnotationTreeUtils.getCommonAncestor(AnnotationTreeUtils.annotationNode(jcas,
arg1),
-																   AnnotationTreeUtils.annotationNode(jcas, arg2));
+		TreebankNode lca = TreeExtractor.getLCA(AnnotationTreeUtils.annotationNode(jcas, arg1),
+												AnnotationTreeUtils.annotationNode(jcas, arg2));
+				
 		SimpleTree arg1Tree = new SimpleTree("ARG1");
 		SimpleTree arg2Tree = new SimpleTree("ARG2");
 		



Mime
View raw message