public abstract class AbstractTokenizer
extends org.apache.uima.analysis_component.CasAnnotator_ImplBase
Modifier and Type | Field and Description |
---|---|
protected org.apache.uima.UimaContext |
context |
protected org.apache.uima.util.Logger |
logger |
protected String |
name |
protected org.apache.uima.cas.Type |
sentenceType
Type of the sentence containing the tokens.
|
protected org.apache.uima.cas.Type |
tokenType
Type of the tokens to be created.
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractTokenizer(String name) |
Modifier and Type | Method and Description |
---|---|
void |
initialize(org.apache.uima.UimaContext context) |
protected void |
postProcessAnnotations(Span[] tokens,
org.apache.uima.cas.text.AnnotationFS[] tokenAnnotations) |
void |
process(org.apache.uima.cas.CAS cas) |
protected abstract Span[] |
tokenize(org.apache.uima.cas.CAS cas,
org.apache.uima.cas.text.AnnotationFS sentence) |
void |
typeSystemInit(org.apache.uima.cas.TypeSystem typeSystem) |
getRequiredCasInterface, process
getCasInstancesRequired, hasNext, next
protected final String name
protected org.apache.uima.UimaContext context
protected org.apache.uima.util.Logger logger
protected org.apache.uima.cas.Type sentenceType
protected org.apache.uima.cas.Type tokenType
protected AbstractTokenizer(String name)
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(Span[] tokens, org.apache.uima.cas.text.AnnotationFS[] tokenAnnotations)
protected abstract Span[] tokenize(org.apache.uima.cas.CAS cas, org.apache.uima.cas.text.AnnotationFS sentence)
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 © 2019 The Apache Software Foundation. All rights reserved.