@PipeBitInfo(name="Chunker", description="Annotator that generates chunks of any kind as specified by the chunker model and the chunk creator.", role=ANNOTATOR, dependencies={SENTENCE,BASE_TOKEN}, products=CHUNK) public class Chunker extends org.apache.uima.fit.component.JCasAnnotator_ImplBase
Modifier and Type | Field and Description |
---|---|
static String |
CHUNKER_CREATOR_CLASS_PARAM
"ChunkCreatorClass" is a required, single, string parameter that
specifies the chunker creator class to instantiate.
|
static String |
CHUNKER_MODEL_FILE_PARAM
"ChunkerModel" is a required, single, string parameter that contains the
file name of the chunker model.
|
static String |
PARAM_CHUNKER_CREATOR_CLASS |
static String |
PARAM_CHUNKER_MODEL_FILE |
Constructor and Description |
---|
Chunker() |
Modifier and Type | Method and Description |
---|---|
static org.apache.uima.analysis_engine.AnalysisEngineDescription |
createAnnotatorDescription() |
static org.apache.uima.analysis_engine.AnalysisEngineDescription |
createAnnotatorDescription(String modelFile) |
void |
initialize(org.apache.uima.UimaContext uimaContext) |
void |
process(org.apache.uima.jcas.JCas jCas) |
getRequiredCasInterface, process
getCasInstancesRequired, hasNext, next
public static final String CHUNKER_MODEL_FILE_PARAM
public static final String PARAM_CHUNKER_MODEL_FILE
public static final String CHUNKER_CREATOR_CLASS_PARAM
public static final String PARAM_CHUNKER_CREATOR_CLASS
public void initialize(org.apache.uima.UimaContext uimaContext) 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
public static org.apache.uima.analysis_engine.AnalysisEngineDescription createAnnotatorDescription() throws org.apache.uima.resource.ResourceInitializationException
org.apache.uima.resource.ResourceInitializationException
public static org.apache.uima.analysis_engine.AnalysisEngineDescription createAnnotatorDescription(String modelFile) throws org.apache.uima.resource.ResourceInitializationException
org.apache.uima.resource.ResourceInitializationException
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.