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 analyzed
scope
- 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