public static LinearClassifier trainPerceptron(boolean doAveraging,
int numIters, ArrayList<ClassificationInstance> train, Alphabet xA,
Alphabet yA) {
Perceptron p = new Perceptron(doAveraging, numIters, xA, yA,
new CompleteFeatureFunction(xA, yA));
LinearClassifier h = p.batchTrain(train);
return h;
}
public static LinearClassifier trainAdaBoost(int numIters,
ArrayList<ClassificationInstance> train, Alphabet xA, Alphabet yA) {