ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tm...@apache.org
Subject svn commit: r1501886 - /ctakes/trunk/ctakes-assertion/src/main/java/org/apache/ctakes/assertion/attributes/features/HistoryFeaturesExtractor.java
Date Wed, 10 Jul 2013 18:04:39 GMT
Author: tmill
Date: Wed Jul 10 18:04:39 2013
New Revision: 1501886

URL: http://svn.apache.org/r1501886
Log:
Fixed bug in how dependency node is used as feature.

Modified:
    ctakes/trunk/ctakes-assertion/src/main/java/org/apache/ctakes/assertion/attributes/features/HistoryFeaturesExtractor.java

Modified: ctakes/trunk/ctakes-assertion/src/main/java/org/apache/ctakes/assertion/attributes/features/HistoryFeaturesExtractor.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-assertion/src/main/java/org/apache/ctakes/assertion/attributes/features/HistoryFeaturesExtractor.java?rev=1501886&r1=1501885&r2=1501886&view=diff
==============================================================================
--- ctakes/trunk/ctakes-assertion/src/main/java/org/apache/ctakes/assertion/attributes/features/HistoryFeaturesExtractor.java
(original)
+++ ctakes/trunk/ctakes-assertion/src/main/java/org/apache/ctakes/assertion/attributes/features/HistoryFeaturesExtractor.java
Wed Jul 10 18:04:39 2013
@@ -52,7 +52,11 @@ public class HistoryFeaturesExtractor im
 		// Pull in general dependency-based features -- externalize to another extractor?
 	    ConllDependencyNode node = DependencyUtility.getNominalHeadNode(jCas, arg);
 	    if (node!= null) {
-	    	features.add(new Feature("DEPENDENCY_HEAD", node));
+//	      features.add(new Feature("DEPENDENCY_HEAD", node));
+	    	features.add(new Feature("DEPENDENCY_HEAD_word", node.getCoveredText()));
+//	    	features.add(new Feature("DEPENDENCY_HEAD_pos", node.getPostag()));
+	    	features.add(new Feature("DEPENDENCY_HEAD_deprel", node.getDeprel()));
+//	    	features.add(new Feature("DEPENDENCY_HEAD_lemma", node.getLemma()));
 		}
 	    
 	    HashMap<String, Boolean> featsMap = HistoryAttributeClassifier.extract(jCas, arg);



Mime
View raw message