Viterbi (dynamic programming) Algorithm for sentence tagging in a HMM; implemented in python.