public class TokenizedTextConsumer
extends org.apache.uima.analysis_component.JCasAnnotator_ImplBase
SentenceInformation
for the default view and a tokenized view created for example by the
TokenizerAnnotator
.
A possible flow could contain a SentenceReader
, a TokenizerAnnotator
and a TokenizedTextConsumer
.
There are two parameters : the name of the output file and it's character encoding.TokenizerAnnotator
,
SentenceInformation
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
MESSAGE_KEY_INVALID_OUTPUT_ENCODING |
protected static java.lang.String |
MESSAGE_KEY_INVALID_OUTPUT_FILE |
protected java.io.PrintWriter |
output
output used to print results
|
static java.lang.String |
PARAM_OUTPUT_ENCODING |
static java.lang.String |
PARAM_OUTPUT_FILE_NAME |
protected static java.lang.String |
RESOURCE_BUNDLE_NAME |
Constructor and Description |
---|
TokenizedTextConsumer() |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
void |
initialize(org.apache.uima.UimaContext context) |
void |
process(org.apache.uima.jcas.JCas jCas) |
getRequiredCasInterface, process
getCasInstancesRequired, hasNext, next
public static java.lang.String PARAM_OUTPUT_FILE_NAME
public static final java.lang.String PARAM_OUTPUT_ENCODING
protected static final java.lang.String RESOURCE_BUNDLE_NAME
protected static final java.lang.String MESSAGE_KEY_INVALID_OUTPUT_FILE
protected static final java.lang.String MESSAGE_KEY_INVALID_OUTPUT_ENCODING
protected java.io.PrintWriter output
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 destroy()
destroy
in interface org.apache.uima.analysis_component.AnalysisComponent
destroy
in class org.apache.uima.analysis_component.AnalysisComponent_ImplBase
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
2005-2013 Marco Büchler, Natural Language Processing Group, University of Leipzig, Germany. 2013-2016 Marco Büchler, Georg August University Göttingen, Göttingen, Germany