public abstract class AbstractSentenceDetector
extends org.apache.uima.analysis_component.CasAnnotator_ImplBase
Modifier and Type | Field and Description |
---|---|
protected org.apache.uima.cas.Type |
containerType |
protected org.apache.uima.UimaContext |
context |
protected org.apache.uima.util.Logger |
logger
The type of the sentences to be created.
|
protected org.apache.uima.cas.Type |
sentenceType |
Constructor and Description |
---|
AbstractSentenceDetector() |
Modifier and Type | Method and Description |
---|---|
protected abstract Span[] |
detectSentences(String text) |
void |
initialize(org.apache.uima.UimaContext context) |
protected void |
postProcessAnnotations(org.apache.uima.cas.text.AnnotationFS[] sentences) |
void |
process(org.apache.uima.cas.CAS cas) |
void |
typeSystemInit(org.apache.uima.cas.TypeSystem typeSystem) |
getRequiredCasInterface, process
getCasInstancesRequired, hasNext, next
protected org.apache.uima.UimaContext context
protected org.apache.uima.util.Logger logger
protected org.apache.uima.cas.Type containerType
protected org.apache.uima.cas.Type sentenceType
public void initialize(org.apache.uima.UimaContext context) throws org.apache.uima.resource.ResourceInitializationException
initialize
in interface org.apache.uima.analysis_component.AnalysisComponent
initialize
in class org.apache.uima.analysis_component.AnalysisComponent_ImplBase
org.apache.uima.resource.ResourceInitializationException
public void typeSystemInit(org.apache.uima.cas.TypeSystem typeSystem) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
typeSystemInit
in class org.apache.uima.analysis_component.CasAnnotator_ImplBase
org.apache.uima.analysis_engine.AnalysisEngineProcessException
protected void postProcessAnnotations(org.apache.uima.cas.text.AnnotationFS[] sentences)
public void process(org.apache.uima.cas.CAS cas) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
process
in class org.apache.uima.analysis_component.CasAnnotator_ImplBase
org.apache.uima.analysis_engine.AnalysisEngineProcessException
Copyright © 2018 The Apache Software Foundation. All rights reserved.