public abstract class ScriptStringOutcomeDataWriter<T extends ScriptStringOutcomeClassifierBuilder<ScriptStringOutcomeClassifier>> extends org.cleartk.ml.jar.DataWriter_ImplBase<T,org.cleartk.ml.util.featurevector.FeatureVector,String,Integer> implements org.apache.uima.fit.factory.initializable.Initializable
Modifier and Type | Field and Description |
---|---|
String |
dir |
static String |
PARAM_SCRIPT_DIR |
Constructor and Description |
---|
ScriptStringOutcomeDataWriter(File outputDirectory) |
Modifier and Type | Method and Description |
---|---|
void |
initialize(org.apache.uima.UimaContext context) |
protected void |
writeEncoded(org.cleartk.ml.util.featurevector.FeatureVector features,
Integer outcome) |
finish, setFeaturesEncoder, setOutcomeEncoder
getClassifierBuilder, newClassifierBuilder
public static final String PARAM_SCRIPT_DIR
public String dir
public ScriptStringOutcomeDataWriter(File outputDirectory) throws FileNotFoundException
FileNotFoundException
protected void writeEncoded(org.cleartk.ml.util.featurevector.FeatureVector features, Integer outcome) throws org.cleartk.ml.CleartkProcessingException
writeEncoded
in class org.cleartk.ml.jar.DataWriter_ImplBase<T extends ScriptStringOutcomeClassifierBuilder<ScriptStringOutcomeClassifier>,org.cleartk.ml.util.featurevector.FeatureVector,String,Integer>
org.cleartk.ml.CleartkProcessingException
public void initialize(org.apache.uima.UimaContext context) throws org.apache.uima.resource.ResourceInitializationException
initialize
in interface org.apache.uima.fit.factory.initializable.Initializable
org.apache.uima.resource.ResourceInitializationException
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.