public class NegationContextAnalyzer extends NamedEntityContextAnalyzer
Constructor and Description |
---|
NegationContextAnalyzer() |
Modifier and Type | Method and Description |
---|---|
ContextHit |
analyzeContext(List<? extends org.apache.uima.jcas.tcas.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
public ContextHit analyzeContext(List<? extends org.apache.uima.jcas.tcas.Annotation> contextTokens, int scopeOrientation) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
contextTokens
- the annotations to be analyzedscopeOrientation
- the scope of the context annotator. The value will be the
left, right, middle, or "all" context.org.apache.uima.analysis_engine.AnalysisEngineProcessException
NegationFSM
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.