org.apache.ctakes.necontexts.negation
Class NegationContextAnalyzer

java.lang.Object
  extended by org.apache.ctakes.necontexts.NamedEntityContextAnalyzer
      extended by org.apache.ctakes.necontexts.negation.NegationContextAnalyzer
All Implemented Interfaces:
ContextAnalyzer

public class NegationContextAnalyzer
extends NamedEntityContextAnalyzer


Constructor Summary
NegationContextAnalyzer()
           
 
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 org.apache.ctakes.necontexts.NamedEntityContextAnalyzer
initialize, isBoundary, wrapAsFsmTokens
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NegationContextAnalyzer

public NegationContextAnalyzer()
Method Detail

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 analyzed
scopeOrientation - 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.