public class NegationContextAnalyzer extends NamedEntityContextAnalyzer
Modifier and Type | Field and Description |
---|---|
private NegationFSM |
_negIndicatorFSM |
Constructor and Description |
---|
NegationContextAnalyzer() |
Modifier and Type | Method and Description |
---|---|
ContextHit |
analyzeContext(java.util.List<? extends Annotation> contextTokens,
int scopeOrientation)
This method analyzes a list of tokens looking for a negation pattern as
specified by the class NegationFSM.
|
initialize, isBoundary, wrapAsFsmTokens
private NegationFSM _negIndicatorFSM
public ContextHit analyzeContext(java.util.List<? extends Annotation> contextTokens, int scopeOrientation) throws AnalysisEngineProcessException
contextTokens
- the annotations to be analyzedscopeOrientation
- the scope of the context annotator. The value will be the
left, right, middle, or "all" context.AnalysisEngineProcessException
NegationFSM