In sentences containing no rare words, the well-known Viterbi algorithm can be used to find the optimum.
as can be seen in Figure 1b, predictions in the consonant-level model (e.g., C 5,1...4 ) depend on previously diacritized words (D 4 ), and some diacritized words (e.g., D 6 ) depend on diacritics in the previous rare word (C 5,1...4 ).