se.lth.cs.nlp.nlputils.ml.glue
Class NativeLibSVMClassifier
java.lang.Object
se.lth.cs.nlp.nlputils.ml.Classifier<T>
se.lth.cs.nlp.nlputils.ml.ProbabilityClassifier
se.lth.cs.nlp.nlputils.ml.glue.NativeLibSVMClassifier
- All Implemented Interfaces:
- Serializable
class NativeLibSVMClassifier
- extends ProbabilityClassifier
- Author:
- Richard Johansson (richard@cs.lth.se)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NativeLibSVMClassifier
NativeLibSVMClassifier()
classify
public Object classify(FeatureList features)
- Description copied from class:
Classifier
- Performs a classification given a feature list.
- Specified by:
classify
in class Classifier
- Parameters:
features
- the feature list.
- Returns:
- the result of the classification.
computeProbabilities
public void computeProbabilities(FeatureList features,
double[] probs)
- Description copied from class:
ProbabilityClassifier
- Computes the posterior class probabilities given a feature list.
- Specified by:
computeProbabilities
in class ProbabilityClassifier
- Parameters:
features
- the feature list.probs
- the array of doubles where the probabilities are written.