ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dlig...@apache.org
Subject svn commit: r1515932 - /ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/data/analysis/EventPrinterPipeline.java
Date Tue, 20 Aug 2013 19:13:32 GMT
Author: dligach
Date: Tue Aug 20 19:13:32 2013
New Revision: 1515932

URL: http://svn.apache.org/r1515932
Log:
switch to using system event mentions formerly known as entity mentions

Modified:
    ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/data/analysis/EventPrinterPipeline.java

Modified: ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/data/analysis/EventPrinterPipeline.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/data/analysis/EventPrinterPipeline.java?rev=1515932&r1=1515931&r2=1515932&view=diff
==============================================================================
--- ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/data/analysis/EventPrinterPipeline.java
(original)
+++ ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/data/analysis/EventPrinterPipeline.java
Tue Aug 20 19:13:32 2013
@@ -136,17 +136,17 @@ public class EventPrinterPipeline {
 	    BufferedWriter eventWriter = getWriter(eventOutputFile, true);
 	    try {
 	      for(EventMention eventMention : JCasUtil.select(goldView, EventMention.class)) {
-	        List<EntityMention> coveringEntityMentions = JCasUtil.selectCovered(
+	        List<EventMention> coveringSystemEventMentions = JCasUtil.selectCovered(
 	            systemView, 
-	            EntityMention.class, 
+	            EventMention.class, 
 	            eventMention.getBegin(), 
 	            eventMention.getEnd());
 	        
-	        for(EntityMention entityMention : coveringEntityMentions) {
-	          if(entityMention.getTypeID() == umlsSemanticType) { 
+	        for(EventMention systemEventMention : coveringSystemEventMentions) {
+	          if(systemEventMention.getTypeID() == umlsSemanticType) { 
 	            String output = String.format(
 	                "%s|%s\n", 
-	                entityMention.getCoveredText().toLowerCase(),
+	                systemEventMention.getCoveredText().toLowerCase(),
 	                expandToNP(systemView, eventMention).toLowerCase());
 	            try {
 	              eventWriter.write(output);



Mime
View raw message