made tags an input to viterbi