public abstract class NamedEntityContextHitConsumer extends java.lang.Object implements ContextHitConsumer
Constructor and Description |
---|
NamedEntityContextHitConsumer() |
Modifier and Type | Method and Description |
---|---|
abstract void |
consumeHit(JCas jcas,
Annotation focusAnnot,
int scope,
ContextHit ctxHit)
Implementation determines how context data is stored to the CAS.
|
protected ContextAnnotation |
createContextAnnot(JCas jcas,
Annotation focusAnnot,
int scope,
ContextHit ctxHit) |
public abstract void consumeHit(JCas jcas, Annotation focusAnnot, int scope, ContextHit ctxHit) throws AnalysisEngineProcessException
ContextHitConsumer
consumeHit
in interface ContextHitConsumer
jcas
- the UIMA view to update.focusAnnot
- The focus annotation.scope
- Scope of the context hit.ctxHit
- The context hit.AnalysisEngineProcessException
protected ContextAnnotation createContextAnnot(JCas jcas, Annotation focusAnnot, int scope, ContextHit ctxHit)