NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Generating Character Relationship Maps for a Story

Taichi Uchino, Danushka Bollegala, Naiwala P. ChandrasiriPaclic 2024

TL;DR

This paper introduces a novel system that automatically generates character relationship maps from novel texts. By leveraging GPT for pronoun resolution and relationship extraction, the system aims to help readers quickly grasp a story's character dynamics, improving comprehension and aiding in novel selection. The proposed method significantly enhances the accuracy of character relationship mapping compared to approaches that don't resolve pronouns.

What Problem Does This Paper Address?

In today's fast-paced world, many people struggle to find time for reading, leading to a decline in reading habits. For those who do read, especially on digital platforms where multitasking is common, remembering character relationships and plot progression can be challenging. Going back to previous pages to recall details is time-consuming and disrupts the reading flow. This paper addresses the need for a tool that can provide readers with a concise overview of a novel's character network, making it easier to understand the story and select books that align with their preferences.

Methods

The core of the proposed system involves several key steps:

  • Person Name Extraction: Using MeCab for morphological analysis, the system identifies proper nouns tagged as "person's name" to create an initial list of characters. It also handles cases where family and first names appear consecutively and uses "particle" tags to extract names not explicitly marked as person's names.
  • Pronoun Conversion: This is a novel contribution. The system uses GPT to replace pronouns with the most appropriate character names. It masks pronouns, then uses GPT to predict the most likely character name to fill the mask, selecting the one with the lowest perplexity score, indicating the most natural fit.
  • Relationship Extraction: Similar to prior work, the system divides the novel into segments and uses templates with "[MASK]" placeholders for relationships. GPT is then employed to predict relationship words (e.g., "lover," "sibling," "parent and child") that best fit the context, again using perplexity scores.
  • Relationship Map Generation: Finally, the extracted characters (nodes) and their relationships (edges) are used to create a visual character relationship map using the NetworkX library.

Datasets

The study utilizes novels from the Aozora Bunko, a digital library of Japanese literature. Specifically, the authors mention using Ryunosuke Akutagawa's novels: "Ababababa," "Autumn," "Rashomon," and "In a Grove," along with other works like Osamu Dazai's "Ritsuko and Sadako" and Rampo Edogawa's "Diary." These novels serve as the input for both training and evaluation.

Key Insights and Ideas

  • Pronoun Resolution is Crucial: The most significant insight is that accurately resolving pronouns to specific characters dramatically improves the accuracy of character relationship maps. This highlights the importance of understanding anaphora in narrative comprehension.
  • GPT as a Powerful Tool: The study demonstrates GPT's versatility beyond simple text generation, showcasing its effectiveness in tasks like pronoun disambiguation and relationship inference through perplexity scoring.
  • Bridging the Gap for Casual Readers: The system offers a practical solution for readers who may not have the time or inclination to deeply engage with every detail of a novel, making literature more accessible.
  • Potential for Novel Discovery: By providing a quick overview of character dynamics, the system could help readers discover new books that match their interests in character interactions.

Key Results

The paper presents two experiments:

  • Experiment 1 (No Pronoun Conversion): Achieved varying accuracy rates across different stories, with "Autumn" showing the highest accuracy (100.0%) and "The Nose" the lowest (20.0%).
  • Experiment 2 (With Pronoun Conversion): Showed a significant improvement in accuracy for all tested stories compared to Experiment 1. For instance, "Ababababa" accuracy increased from 60.0% to 80.0%, and "Rashomon" from 14.3% to 66.7%.

Qualitatively, the authors note that even with pronoun conversion, non-character names (like product names or author names) sometimes appeared in the maps, and occasionally, the system misidentified relationships (e.g., "same person" instead of "parent and child").

Limitations and Future Work

The authors acknowledge several limitations:

  • Inclusion of Non-Character Names: The system sometimes incorrectly identifies nouns that are not characters (e.g., product names, author names) as characters.
  • Handling Newly Introduced Characters: Pronouns referring to characters introduced late in the narrative can lead to erroneous conversions if not handled carefully.
  • Thresholding for Pronoun Conversion: The system needs better mechanisms to prevent incorrect pronoun conversions, possibly by establishing precise perplexity score thresholds.

Future work should focus on:

  • Developing methods to enhance the precision of identifying relationships between characters.
  • Further research into optimal threshold values for pronoun conversion to mitigate errors.
  • Improving the system's ability to distinguish between actual characters and other entities mentioned in the text.

Summary updated

BibTeX
@inproceedings{uchino2024generating,
  author = {Taichi Uchino and Danushka Bollegala and Naiwala P. Chandrasiri},
  title = {{Generating Character Relationship Maps for a Story}},
  booktitle = {Paclic},
  year = {2024},
}
Figure