public class NegContextInitializerImpl extends ContextAnalyzerAdapter
Modifier and Type | Field and Description |
---|---|
protected int |
iAnnotationType |
private FSM |
iv_negIndicatorFSM |
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 and Description |
---|
NegContextInitializerImpl() |
Modifier and Type | Method and Description |
---|---|
java.util.Iterator |
getAnnotationIterator(JCas jcas) |
ContextHit |
getContextHit(java.util.List tokenList,
int scope) |
void |
initialize(UimaContext aContext)
This will be called by the ContextAnnotator during its initialize method
|
protected java.util.List |
wrapAsFsmTokens(java.util.List tokenList) |
analyzeContext, isBoundary
public static final java.lang.String PARAM_ANNOTATION_TYPE
#getFocusAnnotationIterator(JCas)
,
Constant Field Valuespublic static final java.lang.String NEGATION_IND_FSM_CLASS
protected int iAnnotationType
private FSM iv_negIndicatorFSM
protected java.util.List wrapAsFsmTokens(java.util.List tokenList)
public ContextHit getContextHit(java.util.List tokenList, int scope) throws AnnotatorProcessException
AnnotatorProcessException
public java.util.Iterator getAnnotationIterator(JCas jcas) throws AnnotatorProcessException
AnnotatorProcessException
public void initialize(UimaContext aContext) throws ResourceInitializationException
ContextAnalyzer
initialize
in interface ContextAnalyzer
initialize
in class ContextAnalyzerAdapter
ResourceInitializationException