mb

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.

inked: best path. corner mark: strongest in its column. dashed: routes into the selected box

dogs/noun can/aux fish/verb .0157

40%

into can as aux

frombeforemovewordtotal
det.00400.020.95.0001
noun.16200.400.95.0616
aux.00050.050.95<.0001
verb.00300.100.95.0003
85%
22%

try this

  1. drag noun → aux down to 0%. “can” stops being an ability and turns into a tin.
  2. set it to 5%. verb is the strongest box in the middle column, but the best path skips it.
  3. pick “the can rusts”. the same word flips, because of the word in front of it.