edu.stanford.nlp.classify
Interface Classifier<L,F>

Type Parameters:
L - The type of the label(s) in each Datum
F - The type of the features in each Datum
All Superinterfaces:
java.io.Serializable
All Known Subinterfaces:
ProbabilisticClassifier<L,F>
All Known Implementing Classes:
LinearClassifier, LogisticClassifier, NaiveBayesClassifier

public interface Classifier<L,F>
extends java.io.Serializable

A simple interface for classifying and scoring data points, implemented by most of the classifiers in this package. A basic Classifier works over a List of categorical features. For classifiers over real-valued features, see RVFClassifier.

Author:
Dan Klein, Sarah Spikes (sdspikes@cs.stanford.edu) (Templatization)

Method Summary
 L classOf(Datum<L,F> example)
           
 java.util.Collection<L> labels()
           
 Counter<L> scoresOf(Datum<L,F> example)
           
 

Method Detail

classOf

L classOf(Datum<L,F> example)

scoresOf

Counter<L> scoresOf(Datum<L,F> example)

labels

java.util.Collection<L> labels()


Stanford NLP Group