// viterbi解码
HammingLoss loss = new HammingLoss();
Inferencer inference = new LinearViterbi(templets, labels.size());
Update update = new LinearViterbiPAUpdate((LinearViterbi) inference, loss);
OnlineTrainer trainer = new OnlineTrainer(inference, update, loss,
features.size(), 50,0.1f);