ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dlig...@apache.org
Subject svn commit: r1488246 - /ctakes/trunk/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/pipelines/RelationAnnotationViewer.java
Date Fri, 31 May 2013 14:22:51 GMT
Author: dligach
Date: Fri May 31 14:22:51 2013
New Revision: 1488246

URL: http://svn.apache.org/r1488246
Log:
added another filter (arg1 must be an anatomical site)

Modified:
    ctakes/trunk/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/pipelines/RelationAnnotationViewer.java

Modified: ctakes/trunk/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/pipelines/RelationAnnotationViewer.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/pipelines/RelationAnnotationViewer.java?rev=1488246&r1=1488245&r2=1488246&view=diff
==============================================================================
--- ctakes/trunk/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/pipelines/RelationAnnotationViewer.java
(original)
+++ ctakes/trunk/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/pipelines/RelationAnnotationViewer.java
Fri May 31 14:22:51 2013
@@ -100,6 +100,10 @@ public class RelationAnnotationViewer {
         int type1 = entity1.getTypeID();
         int type2 = entity2.getTypeID();
         
+        // first argument has to be an anatomical site
+        if(type1 != 6) {
+          continue;
+        }
         // skip location_of(anatomical site, anatomical site)
         if(type1 == 6 && type2 == 6) {
           continue; 



Mime
View raw message