757677787980818283
return h; } public static LinearTagger trainCRF(ArrayList<SequenceInstance> train, Alphabet xA, Alphabet yA) { CRF crf = new CRF(10, xA, yA, new OneYwithXFeatureFunction(xA, yA)); LinearTagger h = crf.batchTrain(train); return h; }
159160161162163164165166
} private LinearTagger trainCRF(ArrayList<SequenceInstance> data, Alphabet xA, Alphabet yA) { CRF crf = new CRF(10, xA, yA, new OneYwithXFeatureFunction(xA, yA)); return crf.batchTrain(data); }