ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mattco...@apache.org
Subject svn commit: r1425013 - in /incubator/ctakes/trunk/ctakes-assertion-zoner: pom.xml src/main/java/org/mitre/medfacts/uima/ZoneAnnotator.java
Date Fri, 21 Dec 2012 16:43:01 GMT
Author: mattcoarr
Date: Fri Dec 21 16:43:01 2012
New Revision: 1425013

URL: http://svn.apache.org/viewvc?rev=1425013&view=rev
Log:
updated ctakes-assertion-zoner to use mastif-zoner 1.4 (instead of 1.5-SNAPSHOT) since 1.4
in in maven central

commented out code that used zonerCli.getSubsections() since that is in mastif-zoner 1.5-SNAPSHOT
(and could be released as 1.4.1)

Modified:
    incubator/ctakes/trunk/ctakes-assertion-zoner/pom.xml
    incubator/ctakes/trunk/ctakes-assertion-zoner/src/main/java/org/mitre/medfacts/uima/ZoneAnnotator.java

Modified: incubator/ctakes/trunk/ctakes-assertion-zoner/pom.xml
URL: http://svn.apache.org/viewvc/incubator/ctakes/trunk/ctakes-assertion-zoner/pom.xml?rev=1425013&r1=1425012&r2=1425013&view=diff
==============================================================================
--- incubator/ctakes/trunk/ctakes-assertion-zoner/pom.xml (original)
+++ incubator/ctakes/trunk/ctakes-assertion-zoner/pom.xml Fri Dec 21 16:43:01 2012
@@ -34,7 +34,7 @@
 		<dependency>
 			<groupId>net.sf.mastif</groupId>
 			<artifactId>mastif-zoner</artifactId>
-			<version>1.5-SNAPSHOT</version>
+			<version>1.4</version>
 		</dependency>
 		<dependency>
       <groupId>org.apache.uima</groupId>

Modified: incubator/ctakes/trunk/ctakes-assertion-zoner/src/main/java/org/mitre/medfacts/uima/ZoneAnnotator.java
URL: http://svn.apache.org/viewvc/incubator/ctakes/trunk/ctakes-assertion-zoner/src/main/java/org/mitre/medfacts/uima/ZoneAnnotator.java?rev=1425013&r1=1425012&r2=1425013&view=diff
==============================================================================
--- incubator/ctakes/trunk/ctakes-assertion-zoner/src/main/java/org/mitre/medfacts/uima/ZoneAnnotator.java
(original)
+++ incubator/ctakes/trunk/ctakes-assertion-zoner/src/main/java/org/mitre/medfacts/uima/ZoneAnnotator.java
Fri Dec 21 16:43:01 2012
@@ -106,16 +106,16 @@ public class ZoneAnnotator extends JCasA
 		    logger.info(String.format("added new zone annotation [%d-%d] \"%s\"", zAnnot.getBegin(),
zAnnot.getEnd(), zAnnot.getCoveredText()));
 		}
 		
-		List<Range> subsectionRangeList = zonerCli.getSubsections();
-		for (Iterator<Range> i = subsectionRangeList.iterator(); i.hasNext();  ) {
-			Range r = i.next();
-		    Subzone sAnnot = new Subzone(jcas);	
-		    sAnnot.setBegin(r.getBegin());
-		    sAnnot.setEnd(r.getEnd());
-		    sAnnot.setLabel(r.getLabel());
-		    sAnnot.addToIndexes();
-		    logger.info(String.format("added new subzone annotation [%d-%d] \"%s\"", sAnnot.getBegin(),
sAnnot.getEnd(), sAnnot.getCoveredText()));
-		}
+//		List<Range> subsectionRangeList = zonerCli.getSubsections();
+//		for (Iterator<Range> i = subsectionRangeList.iterator(); i.hasNext();  ) {
+//			Range r = i.next();
+//		    Subzone sAnnot = new Subzone(jcas);	
+//		    sAnnot.setBegin(r.getBegin());
+//		    sAnnot.setEnd(r.getEnd());
+//		    sAnnot.setLabel(r.getLabel());
+//		    sAnnot.addToIndexes();
+//		    logger.info(String.format("added new subzone annotation [%d-%d] \"%s\"", sAnnot.getBegin(),
sAnnot.getEnd(), sAnnot.getCoveredText()));
+//		}
 		
 		
 		



Mime
View raw message