ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject svn commit: r1639361 - /ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/EventDischargeTimeAnnotator.java
Date Thu, 13 Nov 2014 15:14:16 GMT
Author: clin
Date: Thu Nov 13 15:14:16 2014
New Revision: 1639361

URL: http://svn.apache.org/r1639361
Log:
a small change for event-discharge Time on i2b2 data

Modified:
    ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/EventDischargeTimeAnnotator.java

Modified: ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/EventDischargeTimeAnnotator.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/EventDischargeTimeAnnotator.java?rev=1639361&r1=1639360&r2=1639361&view=diff
==============================================================================
--- ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/EventDischargeTimeAnnotator.java
(original)
+++ ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/EventDischargeTimeAnnotator.java
Thu Nov 13 15:14:16 2014
@@ -150,15 +150,12 @@ public class EventDischargeTimeAnnotator
 		TimeMention dischargeTime = null;
 		//TODO
 		//may need better way to identify Discharge Time other than relative span information:
-		findDischarge:
-			for (Sentence sent : JCasUtil.selectCovered(jCas, Sentence.class, 40, 60)) {
-				for(TimeMention time: JCasUtil.selectCovered(jCas, TimeMention.class, sent)){
-					if(time.getTimeClass().equals("DATE")){
-						dischargeTime = time;
-						break findDischarge;
-					}
-				}
+		for(TimeMention time: JCasUtil.selectCovered(jCas, TimeMention.class, 40, 60)){
+			if(time.getTimeClass().equals("DATE")){
+				dischargeTime = time;
+				break;
 			}
+		}
 
 		//2. identify the Hospital Course section:
 		List<Segment> courses = Lists.newArrayList();



Mime
View raw message