org.cleartk.classifier.tksvmlight
Class TKSVMlightDataWriter
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<TKSVMlightClassifierBuilder,TreeFeatureVector,Boolean,Boolean>
org.cleartk.classifier.tksvmlight.TKSVMlightDataWriter
- All Implemented Interfaces:
- org.cleartk.classifier.DataWriter<Boolean>
Deprecated. Use TKSVMlightBooleanOutcomeDataWriter instead.
@Deprecated
public class TKSVMlightDataWriter
- extends org.cleartk.classifier.jar.DataWriter_ImplBase<TKSVMlightClassifierBuilder,TreeFeatureVector,Boolean,Boolean>
The data writer for the tree kernel svm light data writer.
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 |
TKSVMlightDataWriter(File outputDirectory)
Deprecated. Constructor for the Tree Kernel SVM Light data writer. |
| Methods inherited from class org.cleartk.classifier.jar.DataWriter_ImplBase |
write |
| Methods inherited from class org.cleartk.classifier.jar.EncodingDirectoryDataWriter |
finish, 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 |
| Methods inherited from interface org.cleartk.classifier.DataWriter |
finish |
TKSVMlightDataWriter
public TKSVMlightDataWriter(File outputDirectory)
throws IOException
- Deprecated.
- Constructor for the Tree Kernel SVM Light data writer.
- Parameters:
outputDirectory - The directory the data/files should be written within.
- Throws:
IOException
createString
public static String createString(TreeFeatureVector features)
throws org.cleartk.classifier.CleartkProcessingException
- Deprecated.
- creates and formats a string (without the outcome) for a specific feature vector. Public so
that the one versus all data writer may use it, not for casual use.
- Parameters:
features - The features to write into a string format.
- Returns:
- The string that represents the features in a format that tk_svm_classify can utilize.
- Throws:
org.cleartk.classifier.CleartkProcessingException
writeEncoded
public void writeEncoded(TreeFeatureVector features,
Boolean outcome)
throws org.cleartk.classifier.CleartkProcessingException
- Deprecated.
- Write a line representing the feature vector with the appropriate outcome to be used by the
tk_svm_classify command.
- Specified by:
writeEncoded in class org.cleartk.classifier.jar.DataWriter_ImplBase<TKSVMlightClassifierBuilder,TreeFeatureVector,Boolean,Boolean>
- Parameters:
features - The feature vector to be written.outcome - The correct classification for that feature vector.
- Throws:
org.cleartk.classifier.CleartkProcessingException
newClassifierBuilder
protected TKSVMlightClassifierBuilder newClassifierBuilder()
- Deprecated.
- Specified by:
newClassifierBuilder in class org.cleartk.classifier.jar.DirectoryDataWriter<TKSVMlightClassifierBuilder,org.cleartk.classifier.Classifier<Boolean>>
Copyright © 2013. All Rights Reserved.