fixes for sequenece boundary in HMM training with partially tagged data