@SuppressWarnings("unused")
private LinearTagger trainPerceptron(ArrayList<SequenceInstance> data,
Alphabet xA, Alphabet yA, int numIters, boolean doAveraging) {
Perceptron perceptron = new Perceptron(doAveraging, numIters, xA, yA,
new OneYwithXFeatureFunction(xA, yA));
return perceptron.batchTrain(data);
}