viterbi
a tagger has to decide whether “can” is a tin or an ability. viterbi finds the likeliest sequence of tags by keeping only the best route into each box, then walking back from the end. the probabilities here are made up, to keep them readable.
try this
- drag noun → aux down to 0%. “can” stops being an ability and turns into a tin.
- set it to 5%. verb is the strongest box in the middle column, but the best path skips it.
- pick “the can rusts”. the same word flips, because of the word in front of it.