org.apache.ctakes.necontexts.status
Class StatusContextAnalyzer

java.lang.Object
  extended by org.apache.ctakes.necontexts.NamedEntityContextAnalyzer
      extended by org.apache.ctakes.necontexts.status.StatusContextAnalyzer
All Implemented Interfaces:
ContextAnalyzer

public class StatusContextAnalyzer
extends NamedEntityContextAnalyzer
implements ContextAnalyzer


Field Summary
static String CTX_HIT_KEY_STATUS_TYPE
           
 
Constructor Summary
StatusContextAnalyzer()
           
 
Method Summary
 ContextHit analyzeContext(List<? extends org.apache.uima.jcas.tcas.Annotation> tokenList, int scope)
          Analyze a list of tokens looking for a status pattern as specified by the class StatusIndicatorFSM.
 
Methods inherited from class org.apache.ctakes.necontexts.NamedEntityContextAnalyzer
initialize, isBoundary, wrapAsFsmTokens
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.ctakes.necontexts.ContextAnalyzer
initialize, isBoundary
 

Field Detail

CTX_HIT_KEY_STATUS_TYPE

public static final String CTX_HIT_KEY_STATUS_TYPE
See Also:
Constant Field Values
Constructor Detail

StatusContextAnalyzer

public StatusContextAnalyzer()
Method Detail

analyzeContext

public ContextHit analyzeContext(List<? extends org.apache.uima.jcas.tcas.Annotation> tokenList,
                                 int scope)
                          throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
Analyze a list of tokens looking for a status pattern as specified by the class StatusIndicatorFSM. An indication of family history found within the scope takes precedence over an indication of history of, even if evidence of history of is closer. Otherwise, the closest indicator of status is used.

Specified by:
analyzeContext in interface ContextAnalyzer
Parameters:
tokenList - the annotations to be analyzed
scope - the scope of the context annotator. The value will be the left, right, middle, or "all" context.
Returns:
a context hit if one exists, else null is returned.
Throws:
org.apache.uima.analysis_engine.AnalysisEngineProcessException
See Also:
StatusIndicatorFSM


Copyright © 2012-2013 The Apache Software Foundation. All Rights Reserved.