ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chen...@apache.org
Subject svn commit: r1546050 - /ctakes/trunk/ctakes-ne-contexts/src/main/java/org/apache/ctakes/necontexts/status/StatusContextHitConsumer.java
Date Wed, 27 Nov 2013 14:40:41 GMT
Author: chenpei
Date: Wed Nov 27 14:40:41 2013
New Revision: 1546050

URL: http://svn.apache.org/r1546050
Log:
CTAKES-274 - StatusAnnoator to populate IdentifiedAnnotation.historyOf field

Modified:
    ctakes/trunk/ctakes-ne-contexts/src/main/java/org/apache/ctakes/necontexts/status/StatusContextHitConsumer.java

Modified: ctakes/trunk/ctakes-ne-contexts/src/main/java/org/apache/ctakes/necontexts/status/StatusContextHitConsumer.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-ne-contexts/src/main/java/org/apache/ctakes/necontexts/status/StatusContextHitConsumer.java?rev=1546050&r1=1546049&r2=1546050&view=diff
==============================================================================
--- ctakes/trunk/ctakes-ne-contexts/src/main/java/org/apache/ctakes/necontexts/status/StatusContextHitConsumer.java
(original)
+++ ctakes/trunk/ctakes-ne-contexts/src/main/java/org/apache/ctakes/necontexts/status/StatusContextHitConsumer.java
Wed Nov 27 14:40:41 2013
@@ -22,6 +22,7 @@ import org.apache.uima.analysis_engine.A
 import org.apache.uima.jcas.JCas;
 import org.apache.uima.jcas.tcas.Annotation;
 
+import org.apache.ctakes.core.fsm.output.StatusIndicator;
 import org.apache.ctakes.necontexts.ContextHit;
 import org.apache.ctakes.necontexts.ContextHitConsumer;
 import org.apache.ctakes.necontexts.NamedEntityContextHitConsumer;
@@ -39,6 +40,10 @@ public class StatusContextHitConsumer ex
 			IdentifiedAnnotation neAnnot = (IdentifiedAnnotation) focusAnnot;
 			//TODO: currently status is an int in the old system.  Let's update this to a constant
string?
 			neAnnot.setUncertainty(status);
+			if(StatusIndicator.HISTORY_STATUS == status 
+					|| StatusIndicator.FAMILY_HISTORY_STATUS == status ) {
+				neAnnot.setHistoryOf(1);
+			}
 		}
 
 		createContextAnnot(jcas, focusAnnot, scope, ctxHit).addToIndexes();



Mime
View raw message