- Introduced by
- Marti A. Hearst (TextTiling)
- Year
- 1997
- Type
- NLP document-structure / topic-boundary detection
What does it do?
Text segmentation divides a long document into ordered segments at points where its topic or discourse shifts.
Marti A. Hearst's TextTiling (1997) introduced this approach for finding multi-paragraph subtopic passages, using lexical cohesion as the main signal. It is used to expose the internal structure of continuous prose. This page covers topic-boundary detection in continuous prose. The term is also used for word segmentation, such as splitting Chinese text into words, which is a different task and is not described here.
The intuition behind the method
A long text is rarely about one thing from start to finish; it moves from subtopic to subtopic. Reading it as one undifferentiated block hides that structure. Text segmentation looks for places where the vocabulary changes, where one stretch of words stops resembling the stretch before it. It scores how cohesive neighbouring stretches are, treats low-cohesion points as candidate boundaries, and cuts the document into passages that each hold together around one theme.
History
Text segmentation as topic-boundary detection was introduced by Hearst's TextTiling (1997), which compared lexical cohesion between adjacent blocks of text to locate multi-paragraph subtopic passages. Choi (2000) later addressed domain-independent linear text segmentation, that is, segmentation that is not tied to one subject area; the specific techniques are not described on this page.
When to use it
Use text segmentation when you have a long, continuous text, such as a report, article, or transcript, and want to find where its subtopics begin and end. It is suited to exploratory work on document structure and to preparing passage-level units for later analysis. It assumes that the text is long enough to form several comparable blocks and contains real topic transitions. Do not use it when you need named topic categories, because linear segmentation returns boundaries rather than labels. It is also a poor choice for short texts or for documents that are uniform in vocabulary, where it will place cuts without a meaningful basis.
Limitations and considerations
- The signal is lexical: when a topic is discussed with different wording, or the same words recur across different topics, the cohesion scores become less informative.
- Linear segmentation produces a flat sequence of segments and does not represent nested or hierarchical structure within a topic.
- Gradual drift in theme, which has no sharp vocabulary change, may yield weak or no valleys, so the boundaries it finds can be unevenly placed.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Finds subtopic boundaries within a single document without labelled training data, since the cohesion scores are computed from the text being analysed.
- Relies on shifts in word usage rather than on domain-specific knowledge, so the same procedure can be applied to texts from different subject areas.
- Returns an ordered sequence of contiguous passages, which downstream summarisation or retrieval can use as units without further reshaping.
Applications
- Analysing the internal organisation of long reports, articles, and other continuous documents.
- Locating topic transitions in transcripts of speech or discussion.
- Producing passage-level units for summarisation or information retrieval.
- Exploratory study of how documents are organised by their authors.
How it works
How it works
The document is split into the small ordered units that the method compares, typically word tokens grouped into adjacent blocks or windows at candidate break positions. Keeping the units in their original order is what allows later steps to compare what comes before a possible boundary with what comes after it.
Lexical cohesion is scored along the text by comparing adjacent blocks. In the original TextTiling formulation, each block is represented by its word-frequency profile and the similarity between neighbouring blocks is computed at each candidate position. A low similarity, equivalently a high shift, suggests that the vocabulary on either side differs and that the topic may be changing.
The similarity curve is examined for valleys, positions where cohesion dips below the surrounding values. TextTiling judges each valley by how deep it is relative to the peaks around it, so that shallow fluctuations are not treated as topic changes. The exact selection rule is a parameter of the chosen implementation and should be stated when results are reported.
The selected boundaries cut the document into an ordered list of segments, each a passage of several sentences that the method treats as covering one subtopic. The output is a sequence of spans with boundary positions, not topic labels.
Common pitfalls
- Running the method on short or thematically uniform text produces boundaries that reflect noise in the vocabulary rather than real topic changes.
- Treating the detected boundaries as ground truth without reading the segments; repeated key terms across different subtopics can create misleading cohesion dips.
- Confusing paragraph or section breaks with topic boundaries. The method responds to shifts in word usage, not to layout, so the two may not coincide.
Frequently asked questions
How is text segmentation different from paragraph splitting?
Paragraph splitting follows the author's formatting, while text segmentation detects where the subtopic changes, based on lexical cohesion. A single topic can span several paragraphs, and one paragraph can contain a shift between two topics, so the two need not coincide.
How long does a document need to be?
Segmentation needs enough continuous text to form several comparable blocks, and the required length depends on how blocks are defined in the implementation used. On very short inputs there is too little vocabulary to produce reliable cohesion scores.
Does it need labelled training data?
No. Linear segmentation such as TextTiling is unsupervised: it scores cohesion within the single document being analysed and requires no labelled boundaries.
Will it work outside one specific subject area?
The method relies on shifts in word usage rather than on topic-specific knowledge, so it is not tied to one subject area. Results still depend on the text containing genuine topic transitions.
Related methods
Sources
Hearst, M.A. (1997). TextTiling: Segmenting Text into Multi-Paragraph Subtopic Passages. Computational Linguistics, 23(1), 33-64.
Open publication referenceChoi, F.Y.Y. (2000). Advances in Domain Independent Linear Text Segmentation. NAACL.
Open publication referenceHandbook of Financial Econometrics, Mathematics, Statistics, and Machine Learning (4 volumes) (2020), p. 705