public abstract class ScriptStringFeatureDataWriter<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 |
---|
ScriptStringFeatureDataWriter(File outputDirectory) |
Modifier and Type | Method and Description |
---|---|
void |
initialize(org.apache.uima.UimaContext context) |
void |
write(org.cleartk.ml.Instance<String> instance) |
finish, setFeaturesEncoder, setOutcomeEncoder
getClassifierBuilder, newClassifierBuilder
public static final String PARAM_SCRIPT_DIR
public String dir
public ScriptStringFeatureDataWriter(File outputDirectory) throws FileNotFoundException
FileNotFoundException
public void write(org.cleartk.ml.Instance<String> instance) throws org.cleartk.ml.CleartkProcessingException
write
in interface org.cleartk.ml.DataWriter<String>
write
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.