HMM training with partially tagged data