|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.cleartk.classifier.jar.EncodingJarClassifier<ENCODED_FEATURES_TYPE,OUTCOME_TYPE,ENCODED_OUTCOME_TYPE>
org.cleartk.classifier.jar.Classifier_ImplBase<TreeFeatureVector,Boolean,Boolean>
org.cleartk.classifier.tksvmlight.TKSVMlightBooleanOutcomeClassifier
public class TKSVMlightBooleanOutcomeClassifier
A Tree Kernel SVM light classifier implementation. All features named with the prefix "TK_"
treated as Tree Kernels.
Copyright (c) 2007-2008, Regents of the University of Colorado
All rights reserved.
TKSVMlightStringOutcomeClassifier| Field Summary |
|---|
| Fields inherited from class org.cleartk.classifier.jar.EncodingJarClassifier |
|---|
featuresEncoder, outcomeEncoder |
| Constructor Summary | |
|---|---|
TKSVMlightBooleanOutcomeClassifier(org.cleartk.classifier.encoder.features.FeaturesEncoder<TreeFeatureVector> featuresEncoder,
org.cleartk.classifier.encoder.outcome.OutcomeEncoder<Boolean,Boolean> outcomeEncoder,
File modelFile)
Constructor |
|
| Method Summary | |
|---|---|
Boolean |
classify(List<org.cleartk.classifier.Feature> features)
Classify a features list. |
List<org.cleartk.classifier.ScoredOutcome<Boolean>> |
score(List<org.cleartk.classifier.Feature> features,
int maxResults)
Score a list of features against the model. |
static double |
tkSvmLightPredict(File mFile,
TreeFeatureVector featureVector)
Predict which side of the line a feature vector resides upon for a particular svm model. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TKSVMlightBooleanOutcomeClassifier(org.cleartk.classifier.encoder.features.FeaturesEncoder<TreeFeatureVector> featuresEncoder,
org.cleartk.classifier.encoder.outcome.OutcomeEncoder<Boolean,Boolean> outcomeEncoder,
File modelFile)
featuresEncoder - The features encoder used by this classifier.outcomeEncoder - The outcome encoder used by this classifier.modelFile - The file for the model used by this classifier.| Method Detail |
|---|
public Boolean classify(List<org.cleartk.classifier.Feature> features)
throws org.cleartk.classifier.CleartkProcessingException
features - The feature list to classify.
org.cleartk.classifier.CleartkProcessingException
public List<org.cleartk.classifier.ScoredOutcome<Boolean>> score(List<org.cleartk.classifier.Feature> features,
int maxResults)
throws org.cleartk.classifier.CleartkProcessingException
score in interface org.cleartk.classifier.Classifier<Boolean>score in class org.cleartk.classifier.jar.Classifier_ImplBase<TreeFeatureVector,Boolean,Boolean>features - The features to classifymaxResults - The maximum number of results to return in the list (at most 2).
org.cleartk.classifier.CleartkProcessingException
public static double tkSvmLightPredict(File mFile,
TreeFeatureVector featureVector)
throws org.cleartk.classifier.CleartkProcessingException
mFile - The model file to predict against.featureVector - The feature vector to predict for.
org.cleartk.classifier.CleartkProcessingException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||