@PipeBitInfo(name="Property Text Writer", description="Writes text files with lists of annotations and properties (POS, Semantic Group, CUI, Negation).", role=WRITER, dependencies={DOCUMENT_ID,SENTENCE,IDENTIFIED_ANNOTATION}) public class PropertyTextWriterFit extends org.apache.uima.fit.component.CasConsumer_ImplBase
ConfigurationParameter
It cannot be used in the old Uima CPE style (e.g. the Uima CPE Gui) as the Uima CPE has problems with Fit Consumers.
There is a version that can be used with the CPE GUI:
PropertyTextWriterUima
Constructor and Description |
---|
PropertyTextWriterFit() |
Modifier and Type | Method and Description |
---|---|
static org.apache.uima.analysis_engine.AnalysisEngineDescription |
createAnnotatorDescription() |
static org.apache.uima.analysis_engine.AnalysisEngineDescription |
createAnnotatorDescription(String outputDirectoryPath) |
void |
initialize(org.apache.uima.UimaContext uimaContext) |
void |
process(org.apache.uima.cas.CAS aCAS) |
getRequiredCasInterface, process, typeSystemInit
getCasInstancesRequired, hasNext, next
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.CasConsumer_ImplBase
org.apache.uima.resource.ResourceInitializationException
public void process(org.apache.uima.cas.CAS aCAS) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
process
in class org.apache.uima.analysis_component.CasAnnotator_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
- if anything went wrongpublic static org.apache.uima.analysis_engine.AnalysisEngineDescription createAnnotatorDescription(String outputDirectoryPath) throws org.apache.uima.resource.ResourceInitializationException
outputDirectoryPath
- may be empty or null, in which case the current working directory is usedorg.apache.uima.resource.ResourceInitializationException
- if anything went wrongCopyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.