ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dlig...@apache.org
Subject svn commit: r1750797 - /ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/nn/eventTimeRelationPrinter.java
Date Thu, 30 Jun 2016 13:52:12 GMT
Author: dligach
Date: Thu Jun 30 13:52:12 2016
New Revision: 1750797

URL: http://svn.apache.org/viewvc?rev=1750797&view=rev
Log:
added (commented for now) code to generate examples of all relations

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

Modified: ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/nn/eventTimeRelationPrinter.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/nn/eventTimeRelationPrinter.java?rev=1750797&r1=1750796&r2=1750797&view=diff
==============================================================================
--- ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/nn/eventTimeRelationPrinter.java
(original)
+++ ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/nn/eventTimeRelationPrinter.java
Thu Jun 30 13:52:12 2016
@@ -179,6 +179,16 @@ public class eventTimeRelationPrinter {
             } else {
               label = "none";         // no relation between this time and event
             }
+      
+//            commented version can be used to generate data with all labels            
+//            String label;
+//            if(timeEventRelation != null) {
+//              label = timeEventRelation.getCategory().toLowerCase();
+//            } else if(eventTimeRelation != null) {
+//              label = eventTimeRelation.getCategory().toLowerCase() + "-1";
+//            } else {
+//              label = "none";         // no relation between this time and event
+//            }
             
             String context;
             if(time.getBegin() < event.getBegin()) {



Mime
View raw message