weighted viterbi path