org.apache.ctakes.necontexts
Interface ContextHitConsumer

All Known Implementing Classes:
ContextHitConsumerAdapter, NamedEntityContextHitConsumer, NegationContextHitConsumer, StatusContextHitConsumer

public interface ContextHitConsumer

A context hit consumer is called by the context annotator when a context hit is returned by its context analyzer.


Method Summary
 void consumeHit(org.apache.uima.jcas.JCas jcas, org.apache.uima.jcas.tcas.Annotation focusAnnotation, int scope, ContextHit contextHit)
          Implementation determines how context data is stored to the CAS.
 

Method Detail

consumeHit

void consumeHit(org.apache.uima.jcas.JCas jcas,
                org.apache.uima.jcas.tcas.Annotation focusAnnotation,
                int scope,
                ContextHit contextHit)
                throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
Implementation determines how context data is stored to the CAS.

Parameters:
jcas - the UIMA view to update.
focusAnnotation - The focus annotation.
scope - Scope of the context hit.
contextHit - The context hit.
Throws:
org.apache.uima.analysis_engine.annotator.AnnotatorProcessException
org.apache.uima.analysis_engine.AnalysisEngineProcessException


Copyright © 2012-2013 The Apache Software Foundation. All Rights Reserved.