org.apache.ctakes.drugner.ae.impl
Class NegContextInitializerImpl

java.lang.Object
  extended by org.apache.ctakes.necontexts.ContextAnalyzerAdapter
      extended by org.apache.ctakes.drugner.ae.impl.NegContextInitializerImpl
All Implemented Interfaces:
ContextAnalyzer

public class NegContextInitializerImpl
extends ContextAnalyzerAdapter


Field Summary
protected  int iAnnotationType
           
static java.lang.String NEGATION_IND_FSM_CLASS
          Specifies the NegationIndicatorFSMClass that needs to be used
static java.lang.String PARAM_ANNOTATION_TYPE
          Specifies the parameter AnnotationType to iterate on, specified in the descriptor file.
 
Constructor Summary
NegContextInitializerImpl()
           
 
Method Summary
 java.util.Iterator getAnnotationIterator(org.apache.uima.jcas.JCas jcas)
           
 ContextHit getContextHit(java.util.List tokenList, int scope)
           
 void initialize(org.apache.uima.UimaContext aContext)
          This will be called by the ContextAnnotator during its initialize method
protected  java.util.List wrapAsFsmTokens(java.util.List tokenList)
           
 
Methods inherited from class org.apache.ctakes.necontexts.ContextAnalyzerAdapter
analyzeContext, isBoundary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARAM_ANNOTATION_TYPE

public static final java.lang.String PARAM_ANNOTATION_TYPE
Specifies the parameter AnnotationType to iterate on, specified in the descriptor file. example values would be NamedEntityAnnotation, WordTokenAnnotation, etc.

See Also:
#getFocusAnnotationIterator(JCas), Constant Field Values

NEGATION_IND_FSM_CLASS

public static final java.lang.String NEGATION_IND_FSM_CLASS
Specifies the NegationIndicatorFSMClass that needs to be used

See Also:
Constant Field Values

iAnnotationType

protected int iAnnotationType
Constructor Detail

NegContextInitializerImpl

public NegContextInitializerImpl()
Method Detail

wrapAsFsmTokens

protected java.util.List wrapAsFsmTokens(java.util.List tokenList)

getContextHit

public ContextHit getContextHit(java.util.List tokenList,
                                int scope)
                         throws org.apache.uima.analysis_engine.annotator.AnnotatorProcessException
Throws:
org.apache.uima.analysis_engine.annotator.AnnotatorProcessException

getAnnotationIterator

public java.util.Iterator getAnnotationIterator(org.apache.uima.jcas.JCas jcas)
                                         throws org.apache.uima.analysis_engine.annotator.AnnotatorProcessException
Throws:
org.apache.uima.analysis_engine.annotator.AnnotatorProcessException

initialize

public void initialize(org.apache.uima.UimaContext aContext)
                throws org.apache.uima.resource.ResourceInitializationException
Description copied from interface: ContextAnalyzer
This will be called by the ContextAnnotator during its initialize method

Specified by:
initialize in interface ContextAnalyzer
Overrides:
initialize in class ContextAnalyzerAdapter
Throws:
org.apache.uima.resource.ResourceInitializationException