org.apache.ctakes.necontexts
Class NamedEntityContextHitConsumer
java.lang.Object
org.apache.ctakes.necontexts.NamedEntityContextHitConsumer
- All Implemented Interfaces:
- ContextHitConsumer
- Direct Known Subclasses:
- DxContextHitConsumerImpl, NegationContextHitConsumer, NegativeContextHitConsumerImpl, StatusContextHitConsumer
public abstract class NamedEntityContextHitConsumer
- extends java.lang.Object
- implements ContextHitConsumer
Method Summary |
abstract void |
consumeHit(org.apache.uima.jcas.JCas jcas,
org.apache.uima.jcas.tcas.Annotation focusAnnot,
int scope,
ContextHit ctxHit)
Implementation determines how context data is stored to the CAS. |
protected ContextAnnotation |
createContextAnnot(org.apache.uima.jcas.JCas jcas,
org.apache.uima.jcas.tcas.Annotation focusAnnot,
int scope,
ContextHit ctxHit)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NamedEntityContextHitConsumer
public NamedEntityContextHitConsumer()
consumeHit
public abstract void consumeHit(org.apache.uima.jcas.JCas jcas,
org.apache.uima.jcas.tcas.Annotation focusAnnot,
int scope,
ContextHit ctxHit)
throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
- Description copied from interface:
ContextHitConsumer
- Implementation determines how context data is stored to the CAS.
- Specified by:
consumeHit
in interface ContextHitConsumer
- Parameters:
jcas
- the UIMA view to update.focusAnnot
- The focus annotation.scope
- Scope of the context hit.ctxHit
- The context hit.
- Throws:
org.apache.uima.analysis_engine.AnalysisEngineProcessException
createContextAnnot
protected ContextAnnotation createContextAnnot(org.apache.uima.jcas.JCas jcas,
org.apache.uima.jcas.tcas.Annotation focusAnnot,
int scope,
ContextHit ctxHit)