Introduction
Automatically determining which character is speaking in a novel—a task known as "speaker identification"—is a significant challenge in natural language processing. Unlike film scripts or plays where every line is explicitly tagged, novelists often omit speaker names to maintain narrative flow. This paper introduces a supervised machine learning approach that combines a ranking model with novel features such as speaker alternation patterns, vocative detection, and unsupervised "actor-topic" modeling to achieve high accuracy across diverse literary styles.
The Challenge of Literary Speaker Identification
In a novel, readers rely on intuition and context to follow conversations. For a computer, the lack of explicit tags makes this task difficult. Existing rule-based systems are often too brittle for the stylistic variety of different authors, and previous machine learning attempts often relied on the unrealistic assumption that all prior speakers in a sequence were already correctly identified. Furthermore, speaker identification is not a standard "tagging" problem because every novel introduces a unique, open set of characters.
As shown in the table above, speakers can be categorized as explicit, anaphoric (using pronouns), or implicit (no mention at all). Handling implicit speakers is particularly challenging as it requires understanding the structure of the dialogue.
Methodology: Ranking and Feature Engineering
The researchers treat speaker identification as a ranking problem using $SVM^{rank}$. Instead of classifying an utterance into a fixed category, the model ranks all potential character candidates for a given quote. The core innovation lies in several key features:
- Speaker Alternation Pattern: Recognizing the common A-B-A-B dialogue structure, the model analyzes the features of the two preceding utterances to predict the current speaker.
- Vocative Identification: A specific classifier detects instances where a character is addressed by name (e.g., "I hope you like it, Lizzy"). Identifying a character as the listener provides a high-confidence "negative" clue that they are not the speaker.
- Unsupervised Actor-Topic Model (ACTM): This captures the unique vocabulary and topics associated with different characters without requiring manual labels.
- Syntactic Extraction: Dependency parsing is used to identify explicit speakers (e.g., "said Jane") which serve as anchors for the model.
Experimental Results
The model was evaluated on three primary works: Jane Austen’s Pride and Prejudice and Emma, and Anton Chekhov’s The Steppe. These selections allowed the researchers to test generalization across different books by the same author and across different authors, eras, and translation styles.
The results demonstrate that the "Neighbors" model, which incorporates context from surrounding utterances, significantly outperforms both the baseline and the "Individual" model. On Pride and Prejudice, the system achieved 82.5% accuracy. Notably, the model maintained a high accuracy of 80.3% on Chekhov’s The Steppe, despite being trained on Austen. This robustness is partly due to Chekhov's more frequent use of explicit speaker names, providing more anchors for the ranking model.
Insights and Future Directions
A key insight from this research is that speaker identification is inherently sequential; context is everything. While vocatives are relatively rare, they are powerful tools for resetting the speaker alternation pattern when the chain is broken. Furthermore, the authors demonstrated that accurate speaker identification can facilitate other tasks, such as automatically extracting social networks and family trees from text.
Future work includes automating "alias resolution" (e.g., linking "Lizzy" and "Miss Bennet" to the same character) and developing joint models that simultaneously solve speaker attribution, alias resolution, and relationship extraction. Handling more complex narratives, such as those with multiple speakers per paragraph or characters reading letters, also remains an open challenge.
Summary updated