edu.stanford.nlp.classification.internal
Interface IClassifierFactory


public interface IClassifierFactory

IClassifierFactory objects take training data and return IClassifier objects.

Since:
1.0

Method Summary
 IClassifier trainClassifier(double[][] data, int[] labels)
          Takes a training set in the form of a 2D double array (data x features) and labels in the form of a 1D int array (data) and produces a classifier over the same space.
 

Method Detail

trainClassifier

public IClassifier trainClassifier(double[][] data,
                                   int[] labels)
Takes a training set in the form of a 2D double array (data x features) and labels in the form of a 1D int array (data) and produces a classifier over the same space.

Parameters:
data - a training matrix
labels - a vector of correct class IDs
Returns:
an IClassifier object


Stanford NLP Group