se.lth.cs.nlp.nlputils.ml
Class PairwiseClassifier<T>

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

public class PairwiseClassifier<T>
extends Classifier<T>

Multiclass classifier by applying a binary classifier for each pair of classes.

Author:
Richard Johansson (richard@cs.lth.se)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class se.lth.cs.nlp.nlputils.ml.Classifier
extractor, list
 
Constructor Summary
PairwiseClassifier()
           
 
Method Summary
 Object classify(FeatureList features)
          Performs a classification given a feature list.
 
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

PairwiseClassifier

public PairwiseClassifier()
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<T>
Parameters:
features - the feature list.
Returns:
the result of the classification.