}
public static LinearClassifier trainNaivBayes(
ArrayList<ClassificationInstance> train, Alphabet xA, Alphabet yA) {
NaiveBayes nb = new NaiveBayes(0.1, 0.1, xA, yA);
LinearClassifier h = nb.batchTrain(train);
return h;
}
public static LinearClassifier trainPerceptron(boolean doAveraging,
int numIters, ArrayList<ClassificationInstance> train, Alphabet xA,