The Word Lattice

Choosing a word early can change which words remain available later in a sentence. A word lattice keeps the alternatives so we can compare complete segmentations before committing to one.

14 sections · 15 questions · 4 coding challenges

1 / 14

Could We Keep the Alternatives Until We Have Seen the Whole Sentence?

BOTIE

A long dictionary match may look attractive until it leaves an awkward remainder. If we commit immediately, we lose the chance to compare it with a shorter first word that makes the rest of the sentence much more plausible.

Probabilistic segmentation systems, including Sproat and colleagues' 1996 Chinese segmenter, treated competing analyses as alternatives that could be scored. Finite-state representations made it possible to keep those alternatives and search for a good complete analysis.

A word lattice marks positions in the text and connects them with possible words. A route from the beginning to the end is a complete segmentation. Scores on the connections let us compare routes, and dynamic programming reuses the best partial results. Keeping alternatives prevents an early commitment, but the final choice is only as useful as the dictionary, fallback rules, and scoring model that supplied them.

Sources for this history