ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tm...@apache.org
Subject svn commit: r1618170 - /ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/EvaluationOfTemporalRelations_ImplBase.java
Date Fri, 15 Aug 2014 13:13:31 GMT
Author: tmill
Date: Fri Aug 15 13:13:31 2014
New Revision: 1618170

URL: http://svn.apache.org/r1618170
Log:
Reverted RemoveNonContainsRelations so that it does what it says it does.

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=1618170&r1=1618169&r2=1618170&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
Fri Aug 15 13:13:31 2014
@@ -137,14 +137,10 @@ Evaluation_ImplBase<AnnotationStatistics
       for (BinaryTextRelation relation : Lists.newArrayList(JCasUtil.select(
           relationView,
           BinaryTextRelation.class))) {
-        String relationType = relation.getCategory();
-        if (relationType.startsWith("BEFORE")|| relationType.startsWith("BEGINS-ON")|| relationType.startsWith("ENDS-ON"))
{
-          //        relation.getArg1().removeFromIndexes();
-          //        relation.getArg2().removeFromIndexes();
-          //        relation.removeFromIndexes();
-          relation.setCategory("RARE");
-        }else if(relationType.startsWith("CONTAINS")|| relationType.startsWith("OVERLAP")){
-          relation.setCategory("COMMON");
+        if (!relation.getCategory().startsWith("CONTAINS")) {
+          relation.getArg1().removeFromIndexes();
+          relation.getArg2().removeFromIndexes();
+          relation.removeFromIndexes();
         }
       }
     }



Mime
View raw message