org.cleartk.classifier.tksvmlight
Class TKSVMlightClassifierBuilder

java.lang.Object
  extended by org.cleartk.classifier.jar.JarClassifierBuilder<CLASSIFIER_TYPE>
      extended by org.cleartk.classifier.jar.EncodingJarClassifierBuilder<CLASSIFIER_TYPE,ENCODED_FEATURES_TYPE,OUTCOME_TYPE,ENCODED_OUTCOME_TYPE>
          extended by org.cleartk.classifier.jar.ClassifierBuilder_ImplBase<TKSVMlightClassifier,TreeFeatureVector,Boolean,Boolean>
              extended by org.cleartk.classifier.tksvmlight.TKSVMlightClassifierBuilder

Deprecated. Use TKSVMlightBooleanOutcomeClassifierBuilder instead.

@Deprecated
public class TKSVMlightClassifierBuilder
extends org.cleartk.classifier.jar.ClassifierBuilder_ImplBase<TKSVMlightClassifier,TreeFeatureVector,Boolean,Boolean>

A class that provided interfaces to train, package and unpackage a SVMTKClassifier into a jar file.
Copyright (c) 2007-2008, Regents of the University of Colorado
All rights reserved.

Version:
0.2.1
Author:
Daryl Lonnon

Field Summary
static String COMMAND_ARGUMENT
          Deprecated.  
 
Fields inherited from class org.cleartk.classifier.jar.EncodingJarClassifierBuilder
featuresEncoder, outcomeEncoder
 
Fields inherited from class org.cleartk.classifier.jar.JarClassifierBuilder
manifest
 
Constructor Summary
TKSVMlightClassifierBuilder()
          Deprecated.  
 
Method Summary
 File getTrainingDataFile(File dir)
          Deprecated.  
protected  TKSVMlightClassifier newClassifier()
          Deprecated. Create a TKSVMlightClassifier.
protected  void packageClassifier(File dir, JarOutputStream modelStream)
          Deprecated. package the classifier found in dir into the a Jar file.
static void train(String filePath, String[] args)
          Deprecated. Train a SVMTK classifier.
 void trainClassifier(File dir, String... args)
          Deprecated. Train this SVMTK classifier.
protected  void unpackageClassifier(JarInputStream modelStream)
          Deprecated. unpackage the model files found in a JarInputStream.
 
Methods inherited from class org.cleartk.classifier.jar.EncodingJarClassifierBuilder
getEncodersFile, getFeaturesEncoder, getOutcomeEncoder, saveToTrainingDirectory, setFeaturesEncoder, setOutcomeEncoder
 
Methods inherited from class org.cleartk.classifier.jar.JarClassifierBuilder
fromManifest, fromTrainingDirectory, getModelJarFile, loadClassifier, loadClassifierFromTrainingDirectory, packageClassifier, trainAndPackage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMMAND_ARGUMENT

public static String COMMAND_ARGUMENT
Deprecated. 
Constructor Detail

TKSVMlightClassifierBuilder

public TKSVMlightClassifierBuilder()
Deprecated. 
Method Detail

train

public static void train(String filePath,
                         String[] args)
                  throws Exception
Deprecated. 
Train a SVMTK classifier. Assumes the executable name is "tk_svm_learn". Note: this is public so the One verse All TK SVMlight classifier may take advantage of it, casual users probably shouldn't use this interface.

Parameters:
args - The arguments to be used by the tk_svm_classify command. Note: -t 5 is used to specify the use of Tree Kernels.
Throws:
Exception

getTrainingDataFile

public File getTrainingDataFile(File dir)
Deprecated. 
Specified by:
getTrainingDataFile in class org.cleartk.classifier.jar.EncodingJarClassifierBuilder<TKSVMlightClassifier,TreeFeatureVector,Boolean,Boolean>

trainClassifier

public void trainClassifier(File dir,
                            String... args)
                     throws Exception
Deprecated. 
Train this SVMTK classifier.

Specified by:
trainClassifier in class org.cleartk.classifier.jar.JarClassifierBuilder<TKSVMlightClassifier>
Parameters:
dir - The directory where the training data has been written.
args - The arguments to be used by the tk_svm_classify command. Note: -t 5 is used to specify the use of Tree Kernels.
Throws:
Exception

packageClassifier

protected void packageClassifier(File dir,
                                 JarOutputStream modelStream)
                          throws IOException
Deprecated. 
package the classifier found in dir into the a Jar file.

Overrides:
packageClassifier in class org.cleartk.classifier.jar.EncodingJarClassifierBuilder<TKSVMlightClassifier,TreeFeatureVector,Boolean,Boolean>
Throws:
IOException

unpackageClassifier

protected void unpackageClassifier(JarInputStream modelStream)
                            throws IOException
Deprecated. 
unpackage the model files found in a JarInputStream.

Overrides:
unpackageClassifier in class org.cleartk.classifier.jar.EncodingJarClassifierBuilder<TKSVMlightClassifier,TreeFeatureVector,Boolean,Boolean>
Throws:
IOException

newClassifier

protected TKSVMlightClassifier newClassifier()
Deprecated. 
Create a TKSVMlightClassifier.

Specified by:
newClassifier in class org.cleartk.classifier.jar.JarClassifierBuilder<TKSVMlightClassifier>


Copyright © 2013. All Rights Reserved.