Quote Erat Demonstrandum: A Web Interface for Exploring the Quotebank Corpus

Vuk Vuković, Akhil Arora, Huan-Cheng Chang, Andreas Spitz, Robert West · DOI

TL;DR

This paper introduces a web-based search interface for Quotebank, a massive, publicly available corpus of 235 million speaker-attributed quotes extracted from over a decade of English news. By optimizing the underlying database and integrating structured data from Wikidata, the authors provide journalists, researchers, and laypeople with a near-real-time, faceted search tool to explore public discourse and information propagation.

What Problem Does This Paper Address?

Attributed quotes—who said what in the media—are the lifeblood of news analysis, public opinion mining, and fact-checking. While the Natural Language Processing (NLP) community has made great strides in automatically extracting and attributing quotes from massive text corpora, the fruits of this labor usually remain locked away as raw, multi-terabyte JSON dumps.

Existing public quote repositories are either small, static datasets intended purely for NLP benchmarking, or manually curated historical collections like Wikiquote. There is a distinct lack of scalable, interactive tools that allow non-technical users (like journalists or social scientists) to explore contemporary news quotes at scale. The authors address this accessibility gap by designing a high-performance web interface tailored for interactive exploration.

Methods

The authors built an end-to-end system architecture designed to make terabytes of data queryable in milliseconds.

Figure 1: Schematic overview of the Quotebank system architecture. During pre-processing, speaker candidates and quotes are annotated in the news article corpus, and quotes are attributed to speakers with Quobert [18]. The attributed quote data is augmented by linking speakers to Wikidata and subsequently loaded into Elasticsearch, which is used for indexing and retrieval. Kibana and Logstash are used internally for monitoring and managing indices. The web server exposes the query API to handle user queries and directly interfaces with the cache to reduce the impact of complex queries on system load. The JavaScript UI translates user queries to request to the web server (for details on the UI, see Figure 2).

Key components and techniques include:

  • Storage Optimization: A naive deployment of the dataset in Elasticsearch would exceed 2TB. The authors achieved a 4x reduction in storage footprint (down to ~500GB) through database normalization and aggressive data-type optimization (e.g., using integer types for range queries and keyword types for filters).
  • Querying-Indexing Trade-off: To ensure near-real-time performance, the system pushes text complexity to the indexing phase. It aggregates all text fields into a single field during indexing, which slows down the initial ingestion but drastically accelerates query times.
  • Faceted Search via Knowledge Graphs: The interface enriches the raw text data by linking speaker names to Wikidata. This allows users to filter quotes not just by text, but by speaker attributes like nationality, gender, and occupation.
  • Frontend Design: Built with React.js, the UI features an auto-complete function with speaker descriptions to resolve ambiguities, and an interactive D3.js histogram that visualizes the temporal distribution of quotes matching a query.

Datasets

The system exposes the Quotebank dataset, which contains:

  • 235 million unique, speaker-attributed quotes extracted from 196 million English news articles published between September 2008 and April 2020.
  • The quotes were originally extracted using Quobert, a BERT-based sequence labeling architecture.
  • The data is presented in two granularities: article-level (quotes in their original context windows) and quote-level (canonicalized quotes aggregated across all articles via a weighted consensus algorithm).

Key Insights and Ideas

  • Bridging Text and Knowledge Graphs: The "aha moment" of the system's utility comes from merging unstructured text extraction with structured knowledge graphs. Filtering quotes by "Swiss female tennis players" or "journalists discussing science" turns a simple search engine into a powerful tool for sociological and media analysis.
  • Decoupling Visualization from Result Caps: To protect client-side performance, the web server caps returned result blocks at 1,000. However, the temporal histogram is calculated across all matching documents in the database. This allows users to accurately see macro-level trends (e.g., spikes in "coronavirus misinformation") even if they can only browse the top 1,000 results.

Key Results

  • Storage Efficiency: Reduced the Elasticsearch disk footprint from over 2TB to approximately 500GB.
  • Latency: Achieved near-real-time query performance. For example, a complex text query like "coronavirus misinformation" returns 134 aggregated quotations in just 0.028 seconds (as demonstrated in the paper's interface examples).
Figure 2: The Quotebank user interface. (a) The search panel supports quote-level and the article-level searches, which can be faceted by speaker attributes. (b) The search engine result page (SERP) displays retrieved quotes in the selected time window alongside speaker candidates and the URLs of articles from which the quotes are sourced. A histogram shows the distribution of quotes in the result over time.

Limitations and Future Work

The system's primary limitation stems from its underlying machine learning models: quote attribution is not perfect, and some attributions may be erroneous due to complex textual contexts.

Moving forward, the authors plan to:

  1. Analyze search logs to discover how users interact with the platform and identify common exploration strategies.
  2. Develop advanced speaker disambiguation techniques to improve attribution accuracy.
  3. Package the underlying technology into a stand-alone, end-to-end pipeline for real-time attributed quote extraction from live news feeds.

Summary updated

BibTeX
@inproceedings{vukovic2022quote,
  author = {Vuk Vuković and Akhil Arora and Huan-Cheng Chang and Andreas Spitz and Robert West},
  title = {{Quote Erat Demonstrandum: A Web Interface for Exploring the Quotebank Corpus}},
  booktitle = {International ACM SIGIR Conference on Research and Development in Information Retrieval},
  year = {2022},
}
Figure