@PipeBitInfo(name="PTB Tokenizer", description="Annotates Document Penn TreeBank Tokens.", dependencies={SECTION,SENTENCE}, products=BASE_TOKEN) public class TokenizerAnnotatorPTB extends org.apache.uima.fit.component.JCasAnnotator_ImplBase
Modifier and Type | Field and Description |
---|---|
static String |
PARAM_SEGMENTS_TO_SKIP
Value is "SegmentsToSkip".
|
Constructor and Description |
---|
TokenizerAnnotatorPTB() |
Modifier and Type | Method and Description |
---|---|
protected void |
annotateRange(org.apache.uima.jcas.JCas jcas,
int rangeBegin,
int rangeEnd)
Tokenizes a range of text, adding the tokens to the CAS
Tokenizes one sentence at a time.
|
static org.apache.uima.analysis_engine.AnalysisEngineDescription |
createAnnotatorDescription() |
void |
initialize(org.apache.uima.UimaContext aContext) |
void |
process(org.apache.uima.jcas.JCas jcas)
Entry point for processing.
|
getRequiredCasInterface, process
getCasInstancesRequired, hasNext, next
public static final String PARAM_SEGMENTS_TO_SKIP
public void initialize(org.apache.uima.UimaContext aContext) throws org.apache.uima.resource.ResourceInitializationException
initialize
in interface org.apache.uima.analysis_component.AnalysisComponent
initialize
in class org.apache.uima.fit.component.JCasAnnotator_ImplBase
org.apache.uima.resource.ResourceInitializationException
public void process(org.apache.uima.jcas.JCas jcas) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
process
in class org.apache.uima.analysis_component.JCasAnnotator_ImplBase
org.apache.uima.analysis_engine.AnalysisEngineProcessException
protected void annotateRange(org.apache.uima.jcas.JCas jcas, int rangeBegin, int rangeEnd) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
org.apache.uima.analysis_engine.AnalysisEngineProcessException
public static org.apache.uima.analysis_engine.AnalysisEngineDescription createAnnotatorDescription() throws org.apache.uima.resource.ResourceInitializationException
org.apache.uima.resource.ResourceInitializationException
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.