Abstract
Text segmentation in long-form fiction is a complex task due to the subtle nature of narrative transitions and the lack of large-scale, high-quality training data. We introduce "Chapter Captor," a system that identifies chapter boundaries by combining local deep learning features with global structural constraints. Using a newly created dataset of over 9,000 Project Gutenberg books, we demonstrate that a hybrid approach—pairing BERT-based local prediction with dynamic programming for global optimization—significantly outperforms traditional unsupervised baselines.
Introduction
Text segmentation—the division of long documents into coherent, topical parts—is a foundational challenge in Natural Language Processing (NLP). While tools for segmenting news articles or Wikipedia entries are well-established, long-form fiction remains difficult. Narrative transitions in novels are often subtle, lacking the clear sub-headlines found in other media. Furthermore, the lack of systematically tagged chapter headers in public domains like Project Gutenberg has hindered the development of robust supervised models. Chapter Captor addresses these issues by automating dataset creation and implementing a novel segmentation architecture.
Methodology
The researchers developed a two-stage approach: a high-accuracy annotation pipeline followed by a segmentation model that balances local and global cues.
Header Annotation (The "Silver Standard")
To build a large-scale dataset, the authors created a hybrid pipeline to identify existing chapter headers in plain-text files. As shown in Figure 1, this pipeline uses a BERT-based classifier to identify candidate lines, which are then filtered through a library of 1,015 regular expression (regex) rules. This ensures that diverse header styles (e.g., "Chapter IV" vs. "THE STORY OF THE LION") are captured accurately.
Segmentation Models
Once headers are removed to create a "clean" segmentation task, the system employs several methods:
- Weighted Overlap Cut (WOC): An unsupervised method measuring lexical cohesion by identifying points where vocabulary changes significantly.
- BERT for Break Prediction (BBP): A supervised model fine-tuned on a "Next Sentence Prediction" task to identify logical narrative breaks.
- Global Optimization: Recognizing that authors maintain a certain "rhythm" in chapter lengths, the authors used Dynamic Programming (DP) to incorporate a global constraint. This allows the model to select a sequence of breaks that maximizes local confidence while maintaining consistent chapter lengths.
The Project Gutenberg Chapter Segmentation Resource
A major contribution of this work is the creation of a massive "silver-standard" dataset. It includes 9,126 English fiction books from Project Gutenberg, providing a robust benchmark for long-document NLP that is significantly larger than any previous literary segmentation dataset.
Key Results and Insights
The hybrid BERT+Regex system achieved an F1-score of 0.77 for header identification. In the segmentation task, the BERT (Full Window) + DP model achieved an F1-score of 0.453. While seemingly low, this represents a massive improvement over classic baselines such as TextTiling (F1: 0.085) and C99 (F1: 0.049), highlighting the superiority of transformer-based models in capturing narrative flow.
Historical Literary Trends
The authors applied Chapter Captor to perform a "distant reading" of literary history. They discovered that the average number of chapters in novels increased steadily until approximately 1875, after which a consistent decline began.
Conclusion and Future Work
Chapter Captor demonstrates that while local cues from models like BERT are powerful, incorporating global structural constraints is essential for segmenting long-form literature. Future work will explore hierarchical models that can distinguish between fine-grained scene changes (often detected by WOC) and coarse-grained chapter boundaries (detected by BERT), potentially leading to a more complete automated understanding of story structure.
Reference: Pethe, C., Kim, A., & Skiena, S. (2020). Chapter Captor: Text Segmentation in Novels. Proceedings of EMNLP 2020.
Summary updated