Add constraints to viterbi inference: I-XXX can only follow B-XXX