Dataset Open Access

Quotebank: A Corpus of Quotations from a Decade of News

Vaucher, Timoté; Spitz, Andreas; Catasta, Michele; West, Robert


JSON-LD (schema.org) Export

{
  "inLanguage": {
    "alternateName": "eng", 
    "@type": "Language", 
    "name": "English"
  }, 
  "description": "<p><strong>Introduction</strong></p>\n\n<p>Quotebank is a dataset of 235 million unique, speaker-attributed quotations that were extracted from 196 million English news articles (127 million containing quotations) crawled from over 377 thousand web domains (15 thousand root domains) between September 2008 and April 2020. The quotations were extracted and attributed using Quobert, a distantly and minimally supervised end-to-end, language-agnostic framework for quotation attribution.</p>\n\n<p>For further details, please refer to the description below and to the original paper:</p>\n\n<p>Timot&eacute; Vaucher, Andreas Spitz, Michele Catasta, and Robert West<br>\n&quot;Quotebank: A Corpus of Quotations from a Decade of News&quot;<br>\nProceedings of the 14th International ACM Conference on Web Search and Data Mining (WSDM), 2021.<br>\n<a href=\"https://doi.org/10.1145/3437963.3441760\">https://doi.org/10.1145/3437963.3441760</a></p>\n\n<p>When using the dataset, please cite the above paper (Note that the above numbers differ from those listed in the paper, as the updated data in this repository has been computed from an expanded set of input news articles).</p>\n\n<p>&nbsp;</p>\n\n<p><strong>Dataset summary</strong></p>\n\n<p>The dataset consists of two versions:</p>\n\n<ul>\n\t<li><strong>Quotation-centric version</strong> (<em>quotes-YYYY.json.bz2</em>)<br>\n\tAn aggregated set of unique quotations with the most likely speaker. Each unique quotation occurs only once in this version of the data and the probabilities of the candidate speakers to which the quotation can be attributed are aggregated over all occurrences of the quotation. This version of the data is a minimal - but complete - list of attributed quotations that is aimed at users who only require quotation-speaker attributions, but no individual contexts for these quotations from the original articles.</li>\n\t<li><strong>Article-centric version</strong> (<em>quotebank-YYYY.json.bz2</em>)<br>\n\tA complete set of all individual quotation mentions with associated speaker as well as the article context in which they are mentioned. This larger version contains one entry per article in the news data. Each entry contains all speakers that appear in the news article as well as the (attributed) quotations, alongside a context window surrounding the quotations.</li>\n</ul>\n\n<p>Both versions are split into 13 files (one per year) for ease of downloading and handling.</p>\n\n<p>&nbsp;</p>\n\n<p><strong>Dataset details</strong></p>\n\n<p>The following formatting applies to both versions of the dataset:</p>\n\n<ul>\n\t<li>All data is made available in JSON format that has been compressed using bzip2.</li>\n\t<li>The data is split per year (i.e., there is one file for each calendar year).</li>\n\t<li>The offsets of quotations, contexts, and speaker annotations are given in units of <a href=\"https://nlp.stanford.edu/software/tokenizer.shtml\">Penn TreeBank Tokenizer</a> tokens.</li>\n\t<li>Offsets are zero-based and are computed from the start of the article.</li>\n\t<li>When pairs of offsets are provided, the end offset is non-inclusive (e.g. in Python you can call tokens[start:end] without having to do end+1).</li>\n\t<li>The Spinn3r data from which Quotebank was extracted&nbsp;had been collected over the course of over a decade. During this time, the client-side code used for collecting the data changed several times, and various character-encoding-related issues led to different representations of the original text at different times.&nbsp;We thus divide the 12 years spanned by the Spinn3r corpus into five phases&nbsp;(Phases A through E). A <a href=\"https://github.com/epfl-dlab/Quotebank/blob/main/phases.md\">detailed description</a> is available on GitHub; the&nbsp;key takeaways are that (1)&nbsp;text was lowercased in Phases A, B, and C, whereas the original capitalization was maintained in Phases D and E, and that (2) non-ASCII characters are properly represented only in Phase E.</li>\n</ul>\n\n<p><br>\n<strong>Version 1: Quotation-centric data</strong></p>\n\n<p>In this version of the dataset, the quotations are aggregated across all their occurrences in the news article data, and assigned a probability for each speaker candidate. We consider two quotations to be equivalent and suitable for aggregation if they are identical after lower-casing and removing punctuation.</p>\n\n<pre><code>Quotation-centric data\n |-- quoteID: Primary key of the quotation (format: \"YYYY-MM-DD-{increasing int:06d}\")\n |-- quotation: Text of the longest encountered original form of the quotation\n |-- date: Earliest occurrence date of any version of the quotation\n |-- phase: Corresponding phase of the data in which the quotation first occurred (A-E)\n |-- probas: Array representing the probabilities of each speaker having uttered the quotation.\n      The probabilities across different occurrences of the same quotation are summed for\n      each distinct candidate speaker and then normalized\n      |-- proba: Probability for a given speaker\n      |-- speaker: Most frequent surface form for a given speaker in the articles where the quotation occurred\n |-- speaker: Selected most likely speaker. This matches the the first speaker entry in `probas`\n |-- qids: Wikidata IDs of all aliases that match the selected speaker\n |-- numOccurrences: Number of time this quotation occurs in the articles\n |-- urls: List of links to the original articles containing the quotation </code></pre>\n\n<p>&nbsp;</p>\n\n<p><strong>Version 2: Article-centric data</strong></p>\n\n<p>In this data set, individual quotations are not aggregated. For each article, one JSON entry contains all speakers that appear in the news article, the (attributed) quotations, and the text within a context window surrounding each of the quotations.</p>\n\n<pre><code>Article-centric data\n |-- articleID: Primary key\n |-- articleLength: Length of the article in PTB tokens\n |-- date: Publication date of the article\n |-- phase: Corresponding phase in which the article appeared (A-E)\n |-- title: Title of the article\n |-- url: Link to the original article\n |-- names: List of all extracted speakers that occur in the article\n      |-- name: Surface form of the first occurrence of each speaker in the article\n      |-- ids: List of Wikidata IDs that have `name` as a possible alias\n      |-- offsets: List of pairs of start/end offset, signifying positions at which the speaker occurs in the article (full and partial mention of the speaker)\n |-- quotations: List of all the quotations that appear in the article\n      |-- quoteID: Foreign key of the quotation (from the quotation-centric dataset)\n      |-- quotation: Text of the quotation as it occurs in this article\n   \t  |-- quotationOffset: Index where the quotation starts in the article\n      |-- leftContext: Text in the left context window of the quotation (used for the attribution)\n      |-- rightContext: Text in the right context window (used for the attribution)\n      |-- globalProbas: Array representing the probabilities of each speaker having uttered the quote *at the aggregated level*. Same as `probas` for a given `quoteID`\n      |-- globalTopSpeaker: Most probable speaker *at the aggregated level*. Same as `speaker` for a given `quoteID` \n      |-- localProbas: Array representing the probabilities of each speaker having said the quote *given this article context*.\n           |-- proba: Probability for a given speaker\n           |-- speaker: Name of the speaker as it first occurs in this article\n      |-- localTopSpeaker: Selected speaker. Same name as the first entry in `localProbas`\n      |-- numOccurrences: Number of times this quotation occurs in any article  </code></pre>\n\n<p>&nbsp;</p>\n\n<p><strong>Code repository</strong></p>\n\n<p>The code of Quobert that was used for the extraction and attribution of this data set is available and managed in a Github repository, which you can find <a href=\"https://github.com/epfl-dlab/Quotebank\">here</a>.</p>", 
  "license": "https://creativecommons.org/licenses/by/4.0/legalcode", 
  "creator": [
    {
      "affiliation": "EPFL", 
      "@type": "Person", 
      "name": "Vaucher,  Timot\u00e9"
    }, 
    {
      "affiliation": "EPFL", 
      "@type": "Person", 
      "name": "Spitz, Andreas"
    }, 
    {
      "affiliation": "Stanford University", 
      "@type": "Person", 
      "name": "Catasta, Michele"
    }, 
    {
      "affiliation": "EPFL", 
      "@type": "Person", 
      "name": "West, Robert"
    }
  ], 
  "url": "https://zenodo.org/record/4277311", 
  "datePublished": "2021-03-08", 
  "version": "1.0", 
  "@context": "https://schema.org/", 
  "distribution": [
    {
      "contentUrl": "https://zenodo.org/api/files/2c7b7f51-0fad-466f-8f0b-645edf508b15/quotebank-2008.json.bz2", 
      "encodingFormat": "bz2", 
      "@type": "DataDownload"
    }, 
    {
      "contentUrl": "https://zenodo.org/api/files/2c7b7f51-0fad-466f-8f0b-645edf508b15/quotebank-2009.json.bz2", 
      "encodingFormat": "bz2", 
      "@type": "DataDownload"
    }, 
    {
      "contentUrl": "https://zenodo.org/api/files/2c7b7f51-0fad-466f-8f0b-645edf508b15/quotebank-2010.json.bz2", 
      "encodingFormat": "bz2", 
      "@type": "DataDownload"
    }, 
    {
      "contentUrl": "https://zenodo.org/api/files/2c7b7f51-0fad-466f-8f0b-645edf508b15/quotebank-2011.json.bz2", 
      "encodingFormat": "bz2", 
      "@type": "DataDownload"
    }, 
    {
      "contentUrl": "https://zenodo.org/api/files/2c7b7f51-0fad-466f-8f0b-645edf508b15/quotebank-2012.json.bz2", 
      "encodingFormat": "bz2", 
      "@type": "DataDownload"
    }, 
    {
      "contentUrl": "https://zenodo.org/api/files/2c7b7f51-0fad-466f-8f0b-645edf508b15/quotebank-2013.json.bz2", 
      "encodingFormat": "bz2", 
      "@type": "DataDownload"
    }, 
    {
      "contentUrl": "https://zenodo.org/api/files/2c7b7f51-0fad-466f-8f0b-645edf508b15/quotebank-2014.json.bz2", 
      "encodingFormat": "bz2", 
      "@type": "DataDownload"
    }, 
    {
      "contentUrl": "https://zenodo.org/api/files/2c7b7f51-0fad-466f-8f0b-645edf508b15/quotebank-2015.json.bz2", 
      "encodingFormat": "bz2", 
      "@type": "DataDownload"
    }, 
    {
      "contentUrl": "https://zenodo.org/api/files/2c7b7f51-0fad-466f-8f0b-645edf508b15/quotebank-2016.json.bz2", 
      "encodingFormat": "bz2", 
      "@type": "DataDownload"
    }, 
    {
      "contentUrl": "https://zenodo.org/api/files/2c7b7f51-0fad-466f-8f0b-645edf508b15/quotebank-2017.json.bz2", 
      "encodingFormat": "bz2", 
      "@type": "DataDownload"
    }, 
    {
      "contentUrl": "https://zenodo.org/api/files/2c7b7f51-0fad-466f-8f0b-645edf508b15/quotebank-2018.json.bz2", 
      "encodingFormat": "bz2", 
      "@type": "DataDownload"
    }, 
    {
      "contentUrl": "https://zenodo.org/api/files/2c7b7f51-0fad-466f-8f0b-645edf508b15/quotebank-2019.json.bz2", 
      "encodingFormat": "bz2", 
      "@type": "DataDownload"
    }, 
    {
      "contentUrl": "https://zenodo.org/api/files/2c7b7f51-0fad-466f-8f0b-645edf508b15/quotebank-2020.json.bz2", 
      "encodingFormat": "bz2", 
      "@type": "DataDownload"
    }, 
    {
      "contentUrl": "https://zenodo.org/api/files/2c7b7f51-0fad-466f-8f0b-645edf508b15/quotes-2008.json.bz2", 
      "encodingFormat": "bz2", 
      "@type": "DataDownload"
    }, 
    {
      "contentUrl": "https://zenodo.org/api/files/2c7b7f51-0fad-466f-8f0b-645edf508b15/quotes-2009.json.bz2", 
      "encodingFormat": "bz2", 
      "@type": "DataDownload"
    }, 
    {
      "contentUrl": "https://zenodo.org/api/files/2c7b7f51-0fad-466f-8f0b-645edf508b15/quotes-2010.json.bz2", 
      "encodingFormat": "bz2", 
      "@type": "DataDownload"
    }, 
    {
      "contentUrl": "https://zenodo.org/api/files/2c7b7f51-0fad-466f-8f0b-645edf508b15/quotes-2011.json.bz2", 
      "encodingFormat": "bz2", 
      "@type": "DataDownload"
    }, 
    {
      "contentUrl": "https://zenodo.org/api/files/2c7b7f51-0fad-466f-8f0b-645edf508b15/quotes-2012.json.bz2", 
      "encodingFormat": "bz2", 
      "@type": "DataDownload"
    }, 
    {
      "contentUrl": "https://zenodo.org/api/files/2c7b7f51-0fad-466f-8f0b-645edf508b15/quotes-2013.json.bz2", 
      "encodingFormat": "bz2", 
      "@type": "DataDownload"
    }, 
    {
      "contentUrl": "https://zenodo.org/api/files/2c7b7f51-0fad-466f-8f0b-645edf508b15/quotes-2014.json.bz2", 
      "encodingFormat": "bz2", 
      "@type": "DataDownload"
    }, 
    {
      "contentUrl": "https://zenodo.org/api/files/2c7b7f51-0fad-466f-8f0b-645edf508b15/quotes-2015.json.bz2", 
      "encodingFormat": "bz2", 
      "@type": "DataDownload"
    }, 
    {
      "contentUrl": "https://zenodo.org/api/files/2c7b7f51-0fad-466f-8f0b-645edf508b15/quotes-2016.json.bz2", 
      "encodingFormat": "bz2", 
      "@type": "DataDownload"
    }, 
    {
      "contentUrl": "https://zenodo.org/api/files/2c7b7f51-0fad-466f-8f0b-645edf508b15/quotes-2017.json.bz2", 
      "encodingFormat": "bz2", 
      "@type": "DataDownload"
    }, 
    {
      "contentUrl": "https://zenodo.org/api/files/2c7b7f51-0fad-466f-8f0b-645edf508b15/quotes-2018.json.bz2", 
      "encodingFormat": "bz2", 
      "@type": "DataDownload"
    }, 
    {
      "contentUrl": "https://zenodo.org/api/files/2c7b7f51-0fad-466f-8f0b-645edf508b15/quotes-2019.json.bz2", 
      "encodingFormat": "bz2", 
      "@type": "DataDownload"
    }, 
    {
      "contentUrl": "https://zenodo.org/api/files/2c7b7f51-0fad-466f-8f0b-645edf508b15/quotes-2020.json.bz2", 
      "encodingFormat": "bz2", 
      "@type": "DataDownload"
    }
  ], 
  "identifier": "https://doi.org/10.5281/zenodo.4277311", 
  "@id": "https://doi.org/10.5281/zenodo.4277311", 
  "@type": "Dataset", 
  "name": "Quotebank: A Corpus of Quotations from a Decade of News"
}
5,978
2,271
views
downloads
All versions This version
Views 5,9785,977
Downloads 2,2712,271
Data volume 12.7 TB12.7 TB
Unique views 5,3505,349
Unique downloads 1,1421,142

Share

Cite as