Local tag choices versus a coherent sequence
IntermediateNLP 06 · Sequence Labeling with RNNs (POS Tagging, Information Extraction)Interactive plot
Description
Combine emission scores, transition scores and BIO span constraints to choose a complete tag path.
Try this: Raise the score for I at “York”. Can a transition preference change the best path even when the local winner stays fixed?
Hints
The chapter section that uses this lab:
Lab · Local tag choices versus a coherent sequence
- Best total score
- 7.3
- Local path score
- 6.7
- Local path legal?
- Yes
The highlighted cells maximize the total path score, not each token separately. An I tag can only continue a B or I when constraints are enforced.
Try this: Raise the score for I at “York”. Can a transition preference change the best path even when the local winner stays fixed?
O=outside, B=begin, I=inside one entity type. Scores are synthetic, not probabilities. All 81 paths are enumerated exactly; dynamic programming would find the same maximum more efficiently on long sequences.