org.apache.ctakes.padtermspotter.impl
Class DxContextAnalyzerImpl

java.lang.Object
  extended by org.apache.ctakes.necontexts.NamedEntityContextAnalyzer
      extended by org.apache.ctakes.padtermspotter.impl.DxContextAnalyzerImpl
All Implemented Interfaces:
ContextAnalyzer

public class DxContextAnalyzerImpl
extends NamedEntityContextAnalyzer
implements ContextAnalyzer

Author:
Mayo Clinic

Field Summary
static java.lang.String CTX_HIT_KEY_ILLNESS_TYPE
           
 
Constructor Summary
DxContextAnalyzerImpl()
           
 
Method Summary
 ContextHit analyzeContext(java.util.List<? extends org.apache.uima.jcas.tcas.Annotation> tokenList, int scope)
          This method is called by the ContextAnnotator.
 
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_ILLNESS_TYPE

public static final java.lang.String CTX_HIT_KEY_ILLNESS_TYPE
See Also:
Constant Field Values
Constructor Detail

DxContextAnalyzerImpl

public DxContextAnalyzerImpl()
Method Detail

analyzeContext

public ContextHit analyzeContext(java.util.List<? extends org.apache.uima.jcas.tcas.Annotation> tokenList,
                                 int scope)
Description copied from interface: ContextAnalyzer
This method is called by the ContextAnnotator.

This method analyzes a list of context annotations to determine if there is a "context hit" - some event that we are looking for in the context.

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.
See Also:
NegationContextAnalyzer.analyzeContext(List, int), ContextAnnotator.LEFT_SCOPE, ContextAnnotator.RIGHT_SCOPE, ContextAnnotator.MIDDLE_SCOPE, ContextAnnotator.ALL_SCOPE