de.fu_berlin.ties.classify
Interface Classifier

All Known Implementing Classes:
TrainableClassifier

public interface Classifier

Classes implementing this interface must be able to classify items represented by feature vectors.

Version:
$Revision: 1.6 $, $Date: 2004/04/14 08:45:30 $, $Author: siefkes $
Author:
Christian Siefkes

Field Summary
static String CONFIG_CLASSIFIER
          Base configuration key for classifiers.
 
Method Summary
 PredictionDistribution classify(FeatureVector features, Set candidateClasses)
          Classifies an item that is represented by a feature vector by choosing the most probable class among a set of candidate classes.
 

Field Detail

CONFIG_CLASSIFIER

public static final String CONFIG_CLASSIFIER
Base configuration key for classifiers.

See Also:
Constant Field Values
Method Detail

classify

public PredictionDistribution classify(FeatureVector features,
                                       Set candidateClasses)
                                throws ProcessingException
Classifies an item that is represented by a feature vector by choosing the most probable class among a set of candidate classes.

Parameters:
features - the feature vector to consider
candidateClasses - an set of classes that are allowed for this item
Returns:
the result of the classification; you can call PredictionDistribution.best() to get the most probably class
Throws:
ProcessingException - if an error occurs during classification


Copyright © 2003-2004 Christian Siefkes. All Rights Reserved.