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, processgetCasInstancesRequired, hasNext, nextprotected 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.AnalysisComponentinitialize in class org.apache.uima.analysis_component.AnalysisComponent_ImplBaseorg.apache.uima.resource.ResourceInitializationExceptionpublic void typeSystemInit(org.apache.uima.cas.TypeSystem typeSystem)
throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
typeSystemInit in class org.apache.uima.analysis_component.CasAnnotator_ImplBaseorg.apache.uima.analysis_engine.AnalysisEngineProcessExceptionprotected 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_ImplBaseorg.apache.uima.analysis_engine.AnalysisEngineProcessExceptionCopyright © 2019 The Apache Software Foundation. All rights reserved.