ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tm...@apache.org
Subject svn commit: r1539172 - in /ctakes/trunk: ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/feature/treekernel/TemporalPETExtractor.java ctakes-utils/src/main/java/org/apache/ctakes/utils/tree/SimpleTree.java
Date Tue, 05 Nov 2013 22:46:13 GMT
Author: tmill
Date: Tue Nov  5 22:46:13 2013
New Revision: 1539172

URL: http://svn.apache.org/r1539172
Log:
Fix typo in method name and reference to it.

Modified:
    ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/feature/treekernel/TemporalPETExtractor.java
    ctakes/trunk/ctakes-utils/src/main/java/org/apache/ctakes/utils/tree/SimpleTree.java

Modified: ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/feature/treekernel/TemporalPETExtractor.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/feature/treekernel/TemporalPETExtractor.java?rev=1539172&r1=1539171&r2=1539172&view=diff
==============================================================================
--- ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/feature/treekernel/TemporalPETExtractor.java
(original)
+++ ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/feature/treekernel/TemporalPETExtractor.java
Tue Nov  5 22:46:13 2013
@@ -69,20 +69,17 @@ public class TemporalPETExtractor implem
 		if(t1.getBegin() <= t2.getBegin() && t1.getEnd() >= t2.getEnd()){
 			// t1 encloses t2
 			tree = TreeExtractor.getSimpleClone(t1);
-			tree.setGernalizeLeaf(true);
 		}else if(t2.getBegin() <= t1.getBegin() && t2.getEnd() >= t1.getEnd()){
 			// t2 encloses t1
 			tree = TreeExtractor.getSimpleClone(t2);
-			tree.setGernalizeLeaf(true);
 		}else{
 			tree = TreeExtractor.extractPathEnclosedTree(t1, t2, jcas);
-			tree.setGernalizeLeaf(true);
 		}
 
+    tree.setGeneralizeLeaf(true);
 		moveTimexDownToNP(tree);
 		
 		features.add(new TreeFeature("TK_PET", tree.toString()));
-		tree.setGernalizeLeaf(false);
 		return features;
 	}
 

Modified: ctakes/trunk/ctakes-utils/src/main/java/org/apache/ctakes/utils/tree/SimpleTree.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-utils/src/main/java/org/apache/ctakes/utils/tree/SimpleTree.java?rev=1539172&r1=1539171&r2=1539172&view=diff
==============================================================================
--- ctakes/trunk/ctakes-utils/src/main/java/org/apache/ctakes/utils/tree/SimpleTree.java (original)
+++ ctakes/trunk/ctakes-utils/src/main/java/org/apache/ctakes/utils/tree/SimpleTree.java Tue
Nov  5 22:46:13 2013
@@ -154,7 +154,7 @@ public class SimpleTree {
 		return children == null || children.size() == 0;
 	}
 
-	public void setGernalizeLeaf(boolean b) {
+	public void setGeneralizeLeaf(boolean b) {
 		generalizeLeaf=b;
 		
 	}



Mime
View raw message