public class DocumentCSVConsumer
extends de.tudarmstadt.ukp.dkpro.core.api.io.JCasFileWriter_ImplBase
weka.core.Instances, based on an annotation type that has to be
specified. Features of type uima.cas.String, uima.cas.Double
and uima.cas.Integer are converted into string resp. numeric
features. This component generates an arff file for each document.| Modifier and Type | Class and Description |
|---|---|
static class |
DocumentCSVConsumer.Attribute |
| Modifier and Type | Field and Description |
|---|---|
static String |
PARAM_ANNOTATION_TYPE |
static String |
PARAM_DATASET_NAME |
static String |
PARAM_FIRST_FEATURE |
static String |
PARAM_LAST_FEATURE |
| Constructor and Description |
|---|
DocumentCSVConsumer() |
| Modifier and Type | Method and Description |
|---|---|
void |
initialize(org.apache.uima.UimaContext context) |
protected String |
makeAttribute(org.apache.uima.resource.metadata.FeatureDescription fd) |
void |
process(org.apache.uima.jcas.JCas jcas) |
collectionProcessComplete, getCompressionMethod, getOutputStream, getOutputStream, getRelativePath, getTargetPath, getTargetPath, isStripExtension, isUseDocumentIdgetRequiredCasInterface, processgetCasInstancesRequired, hasNext, nextpublic static final String PARAM_ANNOTATION_TYPE
public static final String PARAM_DATASET_NAME
public static final String PARAM_FIRST_FEATURE
public static final String PARAM_LAST_FEATURE
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.fit.component.JCasConsumer_ImplBaseorg.apache.uima.resource.ResourceInitializationExceptionprotected String makeAttribute(org.apache.uima.resource.metadata.FeatureDescription fd)
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_ImplBaseorg.apache.uima.analysis_engine.AnalysisEngineProcessExceptionCopyright © 2016. All rights reserved.