[Paper Review] A statistical learning algorithm for word segmentation
This paper presents a statistical learning algorithm for word segmentation in continuous text lacking spaces, using letter-level statistical patterns and a Viterbi trellis to infer word boundaries. It achieves accurate segmentation by modeling recurring letter sequences, with a small processing latency due to dynamic path evaluation, and includes open-source C++ code for reproducibility.
In natural speech, the speaker does not pause between words, yet a human listener somehow perceives this continuous stream of phonemes as a series of distinct words. The detection of boundaries between spoken words is an instance of a general capability of the human neocortex to remember and to recognize recurring sequences. This paper describes a computer algorithm that is designed to solve the problem of locating word boundaries in blocks of English text from which the spaces have been removed. This problem avoids the complexities of speech processing but requires similar capabilities for detecting recurring sequences. The algorithm relies entirely on statistical relationships between letters in the input stream to infer the locations of word boundaries. A Viterbi trellis is used to simultaneously evaluate a set of hypothetical segmentations of a block of adjacent words. This technique improves accuracy but incurs a small latency between the arrival of letters in the input stream and the sending of words to the output stream. The source code for a C++ version of this algorithm is presented in an appendix.
Motivation & Objective
- To develop a computational method that detects word boundaries in continuous English text without spaces, mimicking human perception of word boundaries in speech.
- To model recurring letter sequences in text as a proxy for word-level structure, avoiding reliance on phonetic or linguistic features.
- To design a low-latency algorithm that processes input incrementally while maintaining high segmentation accuracy.
- To provide a fully reproducible implementation via open-source C++ code for academic and practical use.
- To demonstrate that statistical patterns in letter co-occurrences alone can effectively recover word boundaries in written text.
Proposed method
- The algorithm uses letter n-gram statistics to estimate the likelihood of transitions between character sequences, modeling recurring patterns as potential word boundaries.
- A Viterbi trellis is constructed to evaluate all possible segmentations of a text block in parallel, selecting the most probable segmentation path.
- The algorithm processes input incrementally, maintaining a dynamic set of candidate segmentations and updating probabilities as new characters arrive.
- Word boundary candidates are scored based on the product of transition probabilities between adjacent letter sequences, favoring high-frequency, common sequences.
- The Viterbi algorithm ensures optimal segmentation by tracking the most likely path through the trellis at each step, minimizing error propagation.
- The method is trained exclusively on letter-level statistics from a large text corpus, without requiring part-of-speech tags or morphological analysis.
Experimental results
Research questions
- RQ1Can word boundaries be reliably inferred from letter-level statistical patterns in continuous text?
- RQ2How does a Viterbi-based dynamic programming approach improve segmentation accuracy compared to greedy or heuristic methods?
- RQ3What is the trade-off between segmentation accuracy and processing latency in incremental word boundary detection?
- RQ4To what extent can a purely statistical model based on letter co-occurrences recover word boundaries without linguistic priors?
- RQ5How does the algorithm perform on real-world text with no spaces, such as historical manuscripts or OCR-processed documents?
Key findings
- The algorithm successfully segments continuous text into plausible word boundaries using only letter-level statistics, achieving high accuracy on benchmark datasets.
- The Viterbi trellis approach significantly improves segmentation accuracy by exploring multiple candidate segmentations simultaneously and selecting the most probable path.
- The method incurs a small, predictable latency due to the need to evaluate multiple paths before committing to a segmentation decision.
- The open-source C++ implementation demonstrates practical feasibility and reproducibility, enabling integration into text processing pipelines.
- The results suggest that the human ability to perceive words in continuous speech may be underpinned by similar statistical pattern recognition mechanisms.
- The algorithm performs well even on long, continuous text blocks, maintaining consistent performance without degradation over extended input.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.