org.apache.ctakes.necontexts.negation
Class NegationContextAnalyzer
java.lang.Object
org.apache.ctakes.necontexts.NamedEntityContextAnalyzer
org.apache.ctakes.necontexts.negation.NegationContextAnalyzer
- All Implemented Interfaces:
- ContextAnalyzer
public class NegationContextAnalyzer
- extends NamedEntityContextAnalyzer
|
Method Summary |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NegationContextAnalyzer
public NegationContextAnalyzer()
analyzeContext
public ContextHit analyzeContext(List<? extends org.apache.uima.jcas.tcas.Annotation> contextTokens,
int scopeOrientation)
throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
- This method analyzes a list of tokens looking for a negation pattern as
specified by the class NegationFSM.
- Parameters:
contextTokens - the annotations to be analyzedscopeOrientation - the scope of the context annotator. The value will be the
left, right, middle, or "all" context.
- Returns:
- a context hit if one exists, else null is returned.
- Throws:
org.apache.uima.analysis_engine.AnalysisEngineProcessException- See Also:
NegationFSM
Copyright © 2012-2013 The Apache Software Foundation. All Rights Reserved.