se.lth.cs.nlp.nlputils.ml.glue
Class NativeLibSVMClassifier

java.lang.Object
  extended by se.lth.cs.nlp.nlputils.ml.Classifier<T>
      extended by se.lth.cs.nlp.nlputils.ml.ProbabilityClassifier
          extended by se.lth.cs.nlp.nlputils.ml.glue.NativeLibSVMClassifier
All Implemented Interfaces:
Serializable

 class NativeLibSVMClassifier
extends ProbabilityClassifier

Author:
Richard Johansson (richard@cs.lth.se)

Field Summary
 
Fields inherited from class se.lth.cs.nlp.nlputils.ml.Classifier
extractor, list
 
Constructor Summary
NativeLibSVMClassifier()
           
 
Method Summary
 Object classify(FeatureList features)
          Performs a classification given a feature list.
 void computeProbabilities(FeatureList features, double[] probs)
          Computes the posterior class probabilities given a feature list.
 
Methods inherited from class se.lth.cs.nlp.nlputils.ml.ProbabilityClassifier
computeProbabilities
 
Methods inherited from class se.lth.cs.nlp.nlputils.ml.Classifier
classify, classifyRestricted, setFeatureExtractor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NativeLibSVMClassifier

NativeLibSVMClassifier()
Method Detail

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.