nlp for HMM