org.cleartk.classifier.tksvmlight
Class DefaultTKSVMlightDataWriterFactory
java.lang.Object
org.cleartk.classifier.jar.DirectoryDataWriterFactory
org.cleartk.classifier.jar.EncodingDirectoryDataWriterFactory<ENCODED_FEATURES_TYPE,OUTCOME_TYPE,ENCODED_OUTCOME_TYPE>
org.cleartk.classifier.jar.DataWriterFactory_ImplBase<TreeFeatureVector,Boolean,Boolean>
org.cleartk.classifier.tksvmlight.DefaultTKSVMlightDataWriterFactory
- All Implemented Interfaces:
- org.cleartk.classifier.DataWriterFactory<Boolean>, org.uimafit.factory.initializable.Initializable
Deprecated. Use DefaultDataWriterFactory with TKSVMlightDataWriter.
@Deprecated
public class DefaultTKSVMlightDataWriterFactory
- extends org.cleartk.classifier.jar.DataWriterFactory_ImplBase<TreeFeatureVector,Boolean,Boolean>
Copyright (c) 2009, Regents of the University of Colorado
All rights reserved.
- Version:
- 0.2.1
A Factory class for creating a tree kernel support vector model light data writer.
It uses a TreeFeatureVector as it's feature vector which includes a SpareFeatureVector.
In addition it uses the following encoders for it's non tree features: NumberEncoder,
BooleanEncoder and StringEncoder. The default value for the cutoff is 5 (i.e. features
that occur less than this number of times over the entire training set will not be
encoded during testing). And it also uses a EuclideanNormalizer.
- Author:
- Daryl Lonnon
| Fields inherited from class org.cleartk.classifier.jar.EncodingDirectoryDataWriterFactory |
featuresEncoder, outcomeEncoder, PARAM_LOAD_ENCODERS_FROM_FILE_SYSTEM |
| Fields inherited from class org.cleartk.classifier.jar.DirectoryDataWriterFactory |
outputDirectory, PARAM_OUTPUT_DIRECTORY |
| Methods inherited from class org.cleartk.classifier.jar.EncodingDirectoryDataWriterFactory |
initialize, setEncodersFromFileSystem |
| Methods inherited from class org.cleartk.classifier.jar.DirectoryDataWriterFactory |
getOutputDirectory, setOutputDirectory |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PARAM_CUTOFF
public static final String PARAM_CUTOFF
- Deprecated.
cutoff
protected int cutoff
- Deprecated.
DefaultTKSVMlightDataWriterFactory
public DefaultTKSVMlightDataWriterFactory()
- Deprecated.
createDataWriter
public org.cleartk.classifier.DataWriter<Boolean> createDataWriter()
throws IOException
- Deprecated.
- Returns:
- A DataWriter templatized over Boolean which writes out the format expected by the Tree
Kernel SVM Light.
- Throws:
IOException
Copyright © 2013. All Rights Reserved.