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, processgetCasInstancesRequired, hasNext, nextpublic 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.AnalysisComponentinitialize in class org.apache.uima.analysis_component.AnalysisComponent_ImplBaseorg.apache.uima.resource.ResourceInitializationExceptionpublic void destroy()
destroy in interface org.apache.uima.analysis_component.AnalysisComponentdestroy in class org.apache.uima.analysis_component.AnalysisComponent_ImplBasepublic void process(org.apache.uima.jcas.JCas jCas)
throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
process in class org.apache.uima.analysis_component.JCasAnnotator_ImplBaseorg.apache.uima.analysis_engine.AnalysisEngineProcessException2005-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