Given a sequence of observed events, the Viterbi algorithm can be used to obtain a maximum (posterior) probability estimate of the most likely sequence of hidden states. This sequence of hidden states is called the Viterbi path.

An example usage is speech-to-text. The observed sequence of events is the acoustic signal of the speech, and the string of text to output is modeled as the most likely sequence of hidden states.
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence