org.apache.ctakes.necontexts.status
Class StatusContextAnalyzer
java.lang.Object
org.apache.ctakes.necontexts.NamedEntityContextAnalyzer
org.apache.ctakes.necontexts.status.StatusContextAnalyzer
- All Implemented Interfaces:
- ContextAnalyzer
public class StatusContextAnalyzer
- extends NamedEntityContextAnalyzer
- implements ContextAnalyzer
Method Summary |
ContextHit |
analyzeContext(List<? extends org.apache.uima.jcas.tcas.Annotation> tokenList,
int scope)
Analyze a list of tokens looking for a status pattern as
specified by the class StatusIndicatorFSM. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CTX_HIT_KEY_STATUS_TYPE
public static final String CTX_HIT_KEY_STATUS_TYPE
- See Also:
- Constant Field Values
StatusContextAnalyzer
public StatusContextAnalyzer()
analyzeContext
public ContextHit analyzeContext(List<? extends org.apache.uima.jcas.tcas.Annotation> tokenList,
int scope)
throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
- Analyze a list of tokens looking for a status pattern as
specified by the class StatusIndicatorFSM.
An indication of family history found within the scope takes precedence over
an indication of history of, even if evidence of history of is closer.
Otherwise, the closest indicator of status is used.
- Specified by:
analyzeContext
in interface ContextAnalyzer
- Parameters:
tokenList
- the annotations to be analyzedscope
- 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:
StatusIndicatorFSM
Copyright © 2012-2013 The Apache Software Foundation. All Rights Reserved.