public interface DataWriter
Modifier and Type | Method and Description |
---|---|
boolean |
canStream() |
void |
close() |
String |
getGenericFileName() |
void |
init(File outputDirectory,
boolean useSparse,
String learningMode,
String featureMode,
boolean applyWeighting,
String[] outcomes) |
void |
transformFromGeneric()
If the generic data format is/must be used - this method will read the generic file and
create the classifier-fitted output format
|
void |
writeClassifierFormat(List<Instance> instances) |
void |
writeGenericFormat(List<Instance> instances) |
void writeGenericFormat(List<Instance> instances) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
org.apache.uima.analysis_engine.AnalysisEngineProcessException
void transformFromGeneric() throws Exception
Exception
- in case of errorvoid writeClassifierFormat(List<Instance> instances) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
org.apache.uima.analysis_engine.AnalysisEngineProcessException
void init(File outputDirectory, boolean useSparse, String learningMode, String featureMode, boolean applyWeighting, String[] outcomes) throws Exception
outputDirectory
- the output directoryuseSparse
- use sparse featurelearningMode
- the learning modefeatureMode
- the feature modeapplyWeighting
- apply weightsoutcomes
- all outcomesException
- in case of errorboolean canStream()
String getGenericFileName()
Copyright © 2013–2019 Ubiquitous Knowledge Processing (UKP) Lab. All rights reserved.