org.apache.ctakes.drugner.ae.impl
Class NegContextInitializerImpl
java.lang.Object
org.apache.ctakes.necontexts.ContextAnalyzerAdapter
org.apache.ctakes.drugner.ae.impl.NegContextInitializerImpl
- All Implemented Interfaces:
- ContextAnalyzer
public class NegContextInitializerImpl
- extends ContextAnalyzerAdapter
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
NegContextInitializerImpl
public NegContextInitializerImpl()
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