Working viterbi tagger