ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject svn commit: r1594670 - /ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/EventEventRelationAnnotator.java
Date Wed, 14 May 2014 18:54:50 GMT
Author: clin
Date: Wed May 14 18:54:50 2014
New Revision: 1594670

URL: http://svn.apache.org/r1594670
Log:
Event-Event relation annotator: comment out argumentProperties feaure extractor,
And make it insensitive to "OVERLAP"'s argument order

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

Modified: ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/EventEventRelationAnnotator.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/EventEventRelationAnnotator.java?rev=1594670&r1=1594669&r2=1594670&view=diff
==============================================================================
--- ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/EventEventRelationAnnotator.java
(original)
+++ ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/EventEventRelationAnnotator.java
Wed May 14 18:54:50 2014
@@ -65,7 +65,7 @@ public class EventEventRelationAnnotator
 	    return Lists.newArrayList(
 	    						  new TokenFeaturesExtractor()
 	    						, new PartOfSpeechFeaturesExtractor()
-	    						, new EventArgumentPropertyExtractor()
+//	    						, new EventArgumentPropertyExtractor()
 	    						, new UmlsFeatureExtractor()
 	    						, new DependencyPathFeaturesExtractor()
 	    						);
@@ -103,7 +103,11 @@ public class EventEventRelationAnnotator
 		} else {
 			relation = relationLookup.get(Arrays.asList(arg2, arg1));
 			if (relation != null) {
-				category = relation.getCategory() + "-1";
+				if(relation.getCategory().equals("OVERLAP")){
+					category = relation.getCategory();
+				}else{
+					category = relation.getCategory() + "-1";
+				}
 			}
 		}
 		if (category == null && coin.nextDouble() <= this.probabilityOfKeepingANegativeExample)
{



Mime
View raw message