viterbi works for phrase-based