NLP tagger by using viterbi to train a HMM over a training file