public class LineWriter<ANNOTATION_TYPE extends Annotation,BLOCK_TYPE extends Annotation> extends org.apache.uima.fit.component.JCasAnnotator_ImplBase
This writer provides a way to write out annotations one-per-line to a plain text file in a variety of ways configurable at run time.
This class has no relation to LineReader - i.e. LineWriter does not provide "reverse functionality" of LineReader.
If you mistook this class for a line rider, then please redirect to the completely unrelated, but totally awesome Line Rider at: http://linerider.com
| Modifier and Type | Field and Description |
|---|---|
static String |
PARAM_ANNOTATION_WRITER_CLASS_NAME |
static String |
PARAM_BLOCK_ANNOTATION_CLASS_NAME |
static String |
PARAM_BLOCK_WRITER_CLASS_NAME |
static String |
PARAM_FILE_SUFFIX |
static String |
PARAM_OUTPUT_ANNOTATION_CLASS_NAME |
static String |
PARAM_OUTPUT_DIRECTORY_NAME |
static String |
PARAM_OUTPUT_FILE_NAME |
| Constructor and Description |
|---|
LineWriter() |
| Modifier and Type | Method and Description |
|---|---|
void |
collectionProcessComplete() |
void |
initialize(UimaContext context) |
void |
process(JCas jCas) |
getLoggergetRequiredCasInterface, processgetCasInstancesRequired, hasNext, nextbatchProcessComplete, destroy, getContext, getResultSpecification, reconfigure, setResultSpecificationpublic static final String PARAM_ANNOTATION_WRITER_CLASS_NAME
public static final String PARAM_BLOCK_ANNOTATION_CLASS_NAME
public static final String PARAM_BLOCK_WRITER_CLASS_NAME
public static final String PARAM_FILE_SUFFIX
public static final String PARAM_OUTPUT_ANNOTATION_CLASS_NAME
public static final String PARAM_OUTPUT_DIRECTORY_NAME
public static final String PARAM_OUTPUT_FILE_NAME
public LineWriter()
public void collectionProcessComplete() throws AnalysisEngineProcessException
collectionProcessComplete in interface AnalysisComponentcollectionProcessComplete in class AnalysisComponent_ImplBaseAnalysisEngineProcessExceptionpublic void initialize(UimaContext context) throws ResourceInitializationException
initialize in interface AnalysisComponentinitialize in class org.apache.uima.fit.component.JCasAnnotator_ImplBaseResourceInitializationExceptionpublic void process(JCas jCas) throws AnalysisEngineProcessException
process in class JCasAnnotator_ImplBaseAnalysisEngineProcessExceptionCopyright © 2014. All rights reserved.