sequential labeling by hidden markov model