ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tm...@apache.org
Subject svn commit: r1511343 - /ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/feature/TemporalAttributeFeatureExtractor.java
Date Wed, 07 Aug 2013 14:54:11 GMT
Author: tmill
Date: Wed Aug  7 14:54:10 2013
New Revision: 1511343

URL: http://svn.apache.org/r1511343
Log:
Changed feature to workaround cleartk-tksvmlight bug.

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

Modified: ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/feature/TemporalAttributeFeatureExtractor.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/feature/TemporalAttributeFeatureExtractor.java?rev=1511343&r1=1511342&r2=1511343&view=diff
==============================================================================
--- ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/feature/TemporalAttributeFeatureExtractor.java
(original)
+++ ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/feature/TemporalAttributeFeatureExtractor.java
Wed Aug  7 14:54:10 2013
@@ -31,13 +31,13 @@ public class TemporalAttributeFeatureExt
 		if(arg1 instanceof EventMention){
 			event = (EventMention) arg1;
 			time = (TimeMention) arg2;
-			feats.add(new Feature("ARG1-EVENT-" + event.getEvent().getProperties().getContextualModality()));
-			feats.add(new Feature("ARG2-TIMEX-" + time.getTimeClass()));
+			feats.add(new Feature("Arg1-Event-Modality", event.getEvent().getProperties().getContextualModality()));
+			feats.add(new Feature("Arg2-Time-Class-" + time.getTimeClass()));
 		}else{
 			time = (TimeMention) arg1;
 			event = (EventMention) arg2;
-			feats.add(new Feature("ARG1-TIMEX-" + time.getTimeClass()));
-			feats.add(new Feature("ARG2-EVENT-" + event.getEvent().getProperties().getContextualModality()));
+			feats.add(new Feature("Arg1-Timex-", time.getTimeClass()));
+			feats.add(new Feature("Arg2-Event-", event.getEvent().getProperties().getContextualModality()));
 		}
 		
 		



Mime
View raw message