public abstract class ScriptStringOutcomeClassifierBuilder<T extends ScriptStringOutcomeClassifier> extends org.cleartk.ml.jar.ClassifierBuilder_ImplBase<T,org.cleartk.ml.util.featurevector.FeatureVector,String,Integer>
Modifier and Type | Field and Description |
---|---|
protected static org.apache.uima.util.Logger |
logger |
protected File |
modelDir |
static Attributes.Name |
SCRIPT_DIR_PARAM |
protected File |
scriptDir |
Constructor and Description |
---|
ScriptStringOutcomeClassifierBuilder() |
Modifier and Type | Method and Description |
---|---|
protected static void |
extractFileToDir(File dir,
JarInputStream modelStream,
String fn) |
File |
getTrainingDataFile(File dir) |
void |
setScriptDirectory(String scriptDir) |
void |
trainClassifier(File dir,
String... args) |
getEncodersFile, getFeaturesEncoder, getOutcomeEncoder, packageClassifier, saveToTrainingDirectory, setFeaturesEncoder, setOutcomeEncoder, unpackageClassifier
public static final Attributes.Name SCRIPT_DIR_PARAM
protected static final org.apache.uima.util.Logger logger
protected File modelDir
protected File scriptDir
public ScriptStringOutcomeClassifierBuilder()
public void setScriptDirectory(String scriptDir)
public File getTrainingDataFile(File dir)
getTrainingDataFile
in class org.cleartk.ml.jar.EncodingJarClassifierBuilder<T extends ScriptStringOutcomeClassifier,org.cleartk.ml.util.featurevector.FeatureVector,String,Integer>
public void trainClassifier(File dir, String... args) throws Exception
trainClassifier
in class org.cleartk.ml.jar.JarClassifierBuilder<T extends ScriptStringOutcomeClassifier>
Exception
protected static void extractFileToDir(File dir, JarInputStream modelStream, String fn) throws IOException
IOException
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.