ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject svn commit: r1632308 - /ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/EvaluationOfTemporalRelations_ImplBase.java
Date Thu, 16 Oct 2014 13:44:42 GMT
Author: clin
Date: Thu Oct 16 13:44:42 2014
New Revision: 1632308

URL: http://svn.apache.org/r1632308
Log:
preserve event-event relation only for temporalTextRelations, filter out other binaryTextRelations,
such as A-links.

Modified:
    ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/EvaluationOfTemporalRelations_ImplBase.java

Modified: ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/EvaluationOfTemporalRelations_ImplBase.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/EvaluationOfTemporalRelations_ImplBase.java?rev=1632308&r1=1632307&r2=1632308&view=diff
==============================================================================
--- ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/EvaluationOfTemporalRelations_ImplBase.java
(original)
+++ ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/EvaluationOfTemporalRelations_ImplBase.java
Thu Oct 16 13:44:42 2014
@@ -25,6 +25,7 @@ import java.util.Set;
 import org.apache.ctakes.temporal.eval.EvaluationOfEventTimeRelations.ParameterSettings;
 import org.apache.ctakes.typesystem.type.relation.BinaryTextRelation;
 import org.apache.ctakes.typesystem.type.relation.RelationArgument;
+import org.apache.ctakes.typesystem.type.relation.TemporalTextRelation;
 import org.apache.ctakes.typesystem.type.textsem.EventMention;
 import org.apache.ctakes.typesystem.type.textsem.IdentifiedAnnotation;
 import org.apache.ctakes.typesystem.type.textsem.TimeMention;
@@ -109,7 +110,7 @@ Evaluation_ImplBase<AnnotationStatistics
       for(BinaryTextRelation relation : Lists.newArrayList(JCasUtil.select(jCas, BinaryTextRelation.class))){
         RelationArgument arg1 = relation.getArg1();
         RelationArgument arg2 = relation.getArg2();
-        if(arg1.getArgument() instanceof EventMention && arg2.getArgument() instanceof
EventMention){
+        if(arg1.getArgument() instanceof EventMention && arg2.getArgument() instanceof
EventMention && relation instanceof TemporalTextRelation){
           // these are the kind we keep.
           continue;
         }



Mime
View raw message