ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dlig...@apache.org
Subject svn commit: r1763603 - /ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/nn/data/EventEventRelPrinter.java
Date Thu, 06 Oct 2016 15:04:11 GMT
Author: dligach
Date: Thu Oct  6 15:04:11 2016
New Revision: 1763603

URL: http://svn.apache.org/viewvc?rev=1763603&view=rev
Log:
testing an assumption that mention1 is always before mention2

Modified:
    ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/nn/data/EventEventRelPrinter.java

Modified: ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/nn/data/EventEventRelPrinter.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/nn/data/EventEventRelPrinter.java?rev=1763603&r1=1763602&r2=1763603&view=diff
==============================================================================
--- ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/nn/data/EventEventRelPrinter.java
(original)
+++ ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/nn/data/EventEventRelPrinter.java
Thu Oct  6 15:04:11 2016
@@ -175,6 +175,13 @@ public class EventEventRelPrinter {
               }
             } 
 
+            if(mention1.getBegin() > mention2.getBegin())  {
+              System.out.println("We assumed mention1 is always before mention2");
+              System.out.println(sentence.getCoveredText());
+              System.out.println(mention1.getCoveredText());
+              System.out.println(mention2.getCoveredText());
+              System.out.println();
+            }
             String context = getTokensBetween(systemView, sentence, mention1, "e1", mention2,
"e2", 2);
             String text = String.format("%s|%s", label, context);
             eventEventRelationsInSentence.add(text.toLowerCase());



Mime
View raw message