org.cleartk.classifier.tksvmlight
Class OVATKSVMlightClassifierBuilder

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<OVATKSVMlightClassifier,TreeFeatureVector,String,Integer>
              extended by org.cleartk.classifier.tksvmlight.OVATKSVMlightClassifierBuilder

Deprecated. Use TKSVMlightStringOutcomeClassifierBuilder instead.

@Deprecated
public class OVATKSVMlightClassifierBuilder
extends org.cleartk.classifier.jar.ClassifierBuilder_ImplBase<OVATKSVMlightClassifier,TreeFeatureVector,String,Integer>

A class that provided interfaces to package and unpackage a OVASVMTKClassifier 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
 
Fields inherited from class org.cleartk.classifier.jar.EncodingJarClassifierBuilder
featuresEncoder, outcomeEncoder
 
Fields inherited from class org.cleartk.classifier.jar.JarClassifierBuilder
manifest
 
Constructor Summary
OVATKSVMlightClassifierBuilder()
          Deprecated.  
 
Method Summary
 File getTrainingDataFile(File dir)
          Deprecated.  
 File getTrainingDataFile(File dir, int label)
          Deprecated. Get the training data file for a specific label.
protected  OVATKSVMlightClassifier newClassifier()
          Deprecated. Create a OVATKSVMlightClassifier.
protected  void packageClassifier(File dir, JarOutputStream modelStream)
          Deprecated. Package the classifier into a jar file.
 void trainClassifier(File dir, String... args)
          Deprecated. Train the OVASVMTK classifier.
protected  void unpackageClassifier(JarInputStream modelStream)
          Deprecated. Unpackage the classifier out of 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
 

Constructor Detail

OVATKSVMlightClassifierBuilder

public OVATKSVMlightClassifierBuilder()
Deprecated. 
Method Detail

getTrainingDataFile

public File getTrainingDataFile(File dir)
Deprecated. 
Specified by:
getTrainingDataFile in class org.cleartk.classifier.jar.EncodingJarClassifierBuilder<OVATKSVMlightClassifier,TreeFeatureVector,String,Integer>
Parameters:
dir - The directory that contains the all false training data.

getTrainingDataFile

public File getTrainingDataFile(File dir,
                                int label)
Deprecated. 
Get the training data file for a specific label.

Parameters:
dir - The directory to keep the training data.
label - The integer number that represents an index for a particular label.
Returns:
The file of the training data to be used to train the model.

trainClassifier

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

Specified by:
trainClassifier in class org.cleartk.classifier.jar.JarClassifierBuilder<OVATKSVMlightClassifier>
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 into a jar file.

Overrides:
packageClassifier in class org.cleartk.classifier.jar.EncodingJarClassifierBuilder<OVATKSVMlightClassifier,TreeFeatureVector,String,Integer>
Throws:
IOException

unpackageClassifier

protected void unpackageClassifier(JarInputStream modelStream)
                            throws IOException
Deprecated. 
Unpackage the classifier out of a JarInputStream.

Overrides:
unpackageClassifier in class org.cleartk.classifier.jar.EncodingJarClassifierBuilder<OVATKSVMlightClassifier,TreeFeatureVector,String,Integer>
Throws:
IOException

newClassifier

protected OVATKSVMlightClassifier newClassifier()
Deprecated. 
Create a OVATKSVMlightClassifier.

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


Copyright © 2013. All Rights Reserved.