HMM sequential labeling lib