edu.stanford.nlp.classify
Interface Classifier<L,F>
- Type Parameters:
L
- The type of the label(s) in each DatumF
- The type of the features in each Datum
- All Superinterfaces:
- Serializable
- All Known Subinterfaces:
- ProbabilisticClassifier<L,F>
- All Known Implementing Classes:
- LinearClassifier
public interface Classifier<L,F>
- extends 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)
classOf
L classOf(Datum<L,F> example)
scoresOf
Counter<L> scoresOf(Datum<L,F> example)
labels
Collection<L> labels()
Stanford NLP Group