org.cleartk.classifier.tksvmlight
Class OVATKSVMlightDataWriter
java.lang.Object
org.cleartk.classifier.jar.DirectoryDataWriter<CLASSIFIER_BUILDER_TYPE,CLASSIFIER_TYPE>
org.cleartk.classifier.jar.EncodingDirectoryDataWriter<CLASSIFIER_BUILDER_TYPE,org.cleartk.classifier.Classifier<OUTCOME_TYPE>,ENCODED_FEATURES_TYPE,OUTCOME_TYPE,ENCODED_OUTCOME_TYPE>
org.cleartk.classifier.jar.DataWriter_ImplBase<OVATKSVMlightClassifierBuilder,TreeFeatureVector,String,Integer>
org.cleartk.classifier.tksvmlight.OVATKSVMlightDataWriter
- All Implemented Interfaces:
- org.cleartk.classifier.DataWriter<String>
Deprecated. Use TKSVMlightStringOutcomeDataWriter instead.
@Deprecated
public class OVATKSVMlightDataWriter
- extends org.cleartk.classifier.jar.DataWriter_ImplBase<OVATKSVMlightClassifierBuilder,TreeFeatureVector,String,Integer>
Copyright (c) 2009, Regents of the University of Colorado
All rights reserved.
- Version:
- 0.2.1
- Author:
- Daryl Lonnon
| Fields inherited from class org.cleartk.classifier.jar.EncodingDirectoryDataWriter |
trainingDataFile, trainingDataWriter |
| Fields inherited from class org.cleartk.classifier.jar.DirectoryDataWriter |
classifierBuilder, outputDirectory |
|
Constructor Summary |
OVATKSVMlightDataWriter(File outputDirectory)
Deprecated. Constructor for the One verse All Tree Kernel SVMlight data writer. |
| Methods inherited from class org.cleartk.classifier.jar.DataWriter_ImplBase |
write |
| Methods inherited from class org.cleartk.classifier.jar.EncodingDirectoryDataWriter |
setFeaturesEncoder, setOutcomeEncoder |
| Methods inherited from class org.cleartk.classifier.jar.DirectoryDataWriter |
getClassifierBuilder |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OVATKSVMlightDataWriter
public OVATKSVMlightDataWriter(File outputDirectory)
throws IOException
- Deprecated.
- Constructor for the One verse All Tree Kernel SVMlight data writer.
- Throws:
IOException
writeEncoded
public void writeEncoded(TreeFeatureVector features,
Integer outcome)
throws org.cleartk.classifier.CleartkProcessingException
- Deprecated.
- Write the feature vector into the appropriate files (ultimately, it's one line in each of the
model file.)
- Specified by:
writeEncoded in class org.cleartk.classifier.jar.DataWriter_ImplBase<OVATKSVMlightClassifierBuilder,TreeFeatureVector,String,Integer>
- Parameters:
features - The feature vector to be written.outcome - The index of the model file which this feature vector corresponds to. If null this
feature vector has no known "outcome".
- Throws:
org.cleartk.classifier.CleartkProcessingException
finish
public void finish()
throws org.cleartk.classifier.CleartkProcessingException
- Deprecated.
- Callback called after the last feature vector has been written. Flushes the various streams and
deletes the all false file.
- Specified by:
finish in interface org.cleartk.classifier.DataWriter<String>- Overrides:
finish in class org.cleartk.classifier.jar.EncodingDirectoryDataWriter<OVATKSVMlightClassifierBuilder,org.cleartk.classifier.Classifier<String>,TreeFeatureVector,String,Integer>
- Throws:
org.cleartk.classifier.CleartkProcessingException
newClassifierBuilder
protected OVATKSVMlightClassifierBuilder newClassifierBuilder()
- Deprecated.
- Specified by:
newClassifierBuilder in class org.cleartk.classifier.jar.DirectoryDataWriter<OVATKSVMlightClassifierBuilder,org.cleartk.classifier.Classifier<String>>
Copyright © 2013. All Rights Reserved.