NewsWords Data (Contextualized Word Counts)

Fuente: Zenodo
Saved in:
Bibliographic Details
Main Author: Beelen, Kaspar
Format: Recurso digital
Language:English
Published: Zenodo 2025
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866902074078265344
author Beelen, Kaspar
author_facet Beelen, Kaspar
contents <h1>NewsWords</h1> <h2>Contextualized Word Counts from the British Library's Digitised Newspaper Collections (Sparse Matrix Format)</h2> <h3>Description</h3> <p>The NewsWords dataset contains <strong>word count</strong> data derived from newspapers and newspaper press directories. The newspapers were mainly published in Britain during the long nineteenth century (1780-1920) and digitised as of 2025. These frequencies are computed from the digitised newspapers from the British Library's collection. </p> <p>The counts are "<strong>contextualized</strong>" by associating newspaper content with rich metadata obtained from Mitchell's Newspaper Press Directories (1846-1920). These reference works provide an almost exhaustive list of the newspapers that circulated in the UK, recording crucial metadata for each newspaper title, such as political leaning, price, circulation, and other information. </p> <p>More information on the directories and original data can be found on Zenodo or in the <a href="https://bl.iro.bl.uk/concern/datasets/adcef12a-bb3d-40d9-871d-5784022a77e8">British Library research repository</a>.</p> <p>Together, the word counts represent a corpus of 117.222.226.919 tokens based on a vocabulary of 196.719 unique words. Please follow <a href="https://github.com/Living-with-machines/newswords/blob/readme/figures/countsbydecade.png" target="_blank" rel="noopener">this link</a> to view a bar chart that breaks down the word counts by decade.</p> <h3>Data Format</h3> <p>This dataset contains a processed version of the original word counts in JSON format (available <a href="https://zenodo.org/uploads/14826348">here</a>). To enhance the exploration of the newspaper content, especially for macro-level analysis, we converted the original frequencies to a sparse matrix format.</p> <p>The Zenodo record contains two ".zip" files: <a href="https://zenodo.org/api/records/14996278/draft/files/sparse_matrices.zip/content" target="_blank" rel="noopener noreferrer">sparse_matrices.zip</a> and <a href="https://zenodo.org/api/records/14996278/draft/files/sparse-matrix.zip/content" target="_blank" rel="noopener noreferrer">sparse-matrix.zip</a>. Both contain the same information, but the latter file concatenates all data into one large matrix. Because loading all the data at once requires more than 128 GB of RAM, we primarily focus on the "distributed" version of the corpus, i.e. all the word counts are distributed over different files, one per newspaper title. To work with both versions of the data, please consult the NewsWords <a href="https://github.com/Living-with-machines/newswords">code library on GitHub</a> (also there is more information below)</p> <p>For each newspaper title (defined by the NLP identifier recording the British Library Catalogue) we produced the following files:</p> <p><strong>{NLP}_sparse_matrix.csv</strong>: is a Compressed Sparse Row sparse matrix of dtype 'float64'. The columns correspond with the vocabulary, the rows capture the monthly word counts.</p> <p><strong>{NLP}_metadata.csv</strong>: the rows in the metadata provide additional metadata for the word counts in the sparse matrix file. The first row in the metadata 0000031_metadata.csv file records context for the first row in the sparse matrix 0000031_sparse_matrix.npz.</p> <p><br><strong>mapping.json</strong>: maps the vocabulary to column index, i.e. {'!':0, 'a':1} indicates that the first column of the sparse matrix counts the number of exclamation marks.</p> <p><strong>metadata.csv</strong>: records contextual information for each newspaper title, it contains specific attributes such as politics, price and place of publication on a monthly basis. For more information about how the data was created and structured see also:</p> <p>The NLPs are identifiers for digitised newspapers and are documented in the British Library newspaper catalogue:</p> <p>> Ryan, Yann, and Luke McKernan. 2021. “Converting the British Library’s Catalogue of British and Irish Newspapers into a Public Domain Dataset: Processes and Applications”. *Journal of Open Humanities Data* 7 (0): 1. https://doi.org/10.5334/johd.23.</p> <p>Complete metadata (including NLPs) for this newspaper collection is available in another open dataset:</p> <p>> Westerling, Kalle, Timothy Hobson, Kaspar Beelen, Nilo Pedrazzini, Daniel Wilson, and Katherine McDonough. “Lwmdb Data”. *Zenodo*, December 11, 2024. https://doi.org/10.5281/zenodo.14389180.</p> <h3>Code</h3> <p>The <a href="https://github.com/Living-with-machines/newswords">NewsWords GitHub </a><a href="https://github.com/Living-with-machines/newswords" target="_blank" rel="noopener">repository </a>provides code for converting "raw" word counts to a more manageable sparse matrix format and contextualises these counts with additional newspaper metadata, e.g. information about price and politics. Further Information about how to use the code and query the NewsWords data is available in the GitHub README. </p> <p>To recreate these sparse matrices, please follow the instructions in "Create_sparse_matrices.ipynb"</p> <p>The Notebook "Explore_Distributed_Corpus.ipynb" allows you to analyse the distributed corpus. To use the "merged" or "unified matrix", you find example code in "Explore_Merged_Corpus.ipynb".</p> <h3>Limitations</h3> <p>These word counts are derived from the digitised press, containing billions of words, spanning multiple decades. However large, the data constitutes around only 15% of the total number of newspaper titles that circulated in Great Britain. In our paper "Whose News? Critical methods for assessing bias in large historical datasets" (under review) we have tackled the issue of representativeness, and point out that these exhibit some partisan bias—in the sense that they overrepresent conservative and liberal newspaper titles—which varies over the nineteenth century. </p> <p>For more information about the method and data see also:</p> <p>> Beelen, Kaspar, Jon Lawrence, Daniel C Wilson, and David Beavan, 2023. 'Bias and representativeness in digitized newspaper collections: Introducing the environmental scan.' *Digital Scholarship in the Humanities*, 38(1), pp.1-22.</p> <p>> "Whose News? Critical methods for assessing bias in large historical datasets" (under review)</p>
format Recurso digital
id zenodo_https___doi_org_10_5281_zenodo_14996278
institution Zenodo
language eng
publishDate 2025
publisher Zenodo
record_format zenodo
spellingShingle NewsWords Data (Contextualized Word Counts)
Beelen, Kaspar
<h1>NewsWords</h1> <h2>Contextualized Word Counts from the British Library's Digitised Newspaper Collections (Sparse Matrix Format)</h2> <h3>Description</h3> <p>The NewsWords dataset contains <strong>word count</strong> data derived from newspapers and newspaper press directories. The newspapers were mainly published in Britain during the long nineteenth century (1780-1920) and digitised as of 2025. These frequencies are computed from the digitised newspapers from the British Library's collection. </p> <p>The counts are "<strong>contextualized</strong>" by associating newspaper content with rich metadata obtained from Mitchell's Newspaper Press Directories (1846-1920). These reference works provide an almost exhaustive list of the newspapers that circulated in the UK, recording crucial metadata for each newspaper title, such as political leaning, price, circulation, and other information. </p> <p>More information on the directories and original data can be found on Zenodo or in the <a href="https://bl.iro.bl.uk/concern/datasets/adcef12a-bb3d-40d9-871d-5784022a77e8">British Library research repository</a>.</p> <p>Together, the word counts represent a corpus of 117.222.226.919 tokens based on a vocabulary of 196.719 unique words. Please follow <a href="https://github.com/Living-with-machines/newswords/blob/readme/figures/countsbydecade.png" target="_blank" rel="noopener">this link</a> to view a bar chart that breaks down the word counts by decade.</p> <h3>Data Format</h3> <p>This dataset contains a processed version of the original word counts in JSON format (available <a href="https://zenodo.org/uploads/14826348">here</a>). To enhance the exploration of the newspaper content, especially for macro-level analysis, we converted the original frequencies to a sparse matrix format.</p> <p>The Zenodo record contains two ".zip" files: <a href="https://zenodo.org/api/records/14996278/draft/files/sparse_matrices.zip/content" target="_blank" rel="noopener noreferrer">sparse_matrices.zip</a> and <a href="https://zenodo.org/api/records/14996278/draft/files/sparse-matrix.zip/content" target="_blank" rel="noopener noreferrer">sparse-matrix.zip</a>. Both contain the same information, but the latter file concatenates all data into one large matrix. Because loading all the data at once requires more than 128 GB of RAM, we primarily focus on the "distributed" version of the corpus, i.e. all the word counts are distributed over different files, one per newspaper title. To work with both versions of the data, please consult the NewsWords <a href="https://github.com/Living-with-machines/newswords">code library on GitHub</a> (also there is more information below)</p> <p>For each newspaper title (defined by the NLP identifier recording the British Library Catalogue) we produced the following files:</p> <p><strong>{NLP}_sparse_matrix.csv</strong>: is a Compressed Sparse Row sparse matrix of dtype 'float64'. The columns correspond with the vocabulary, the rows capture the monthly word counts.</p> <p><strong>{NLP}_metadata.csv</strong>: the rows in the metadata provide additional metadata for the word counts in the sparse matrix file. The first row in the metadata 0000031_metadata.csv file records context for the first row in the sparse matrix 0000031_sparse_matrix.npz.</p> <p><br><strong>mapping.json</strong>: maps the vocabulary to column index, i.e. {'!':0, 'a':1} indicates that the first column of the sparse matrix counts the number of exclamation marks.</p> <p><strong>metadata.csv</strong>: records contextual information for each newspaper title, it contains specific attributes such as politics, price and place of publication on a monthly basis. For more information about how the data was created and structured see also:</p> <p>The NLPs are identifiers for digitised newspapers and are documented in the British Library newspaper catalogue:</p> <p>> Ryan, Yann, and Luke McKernan. 2021. “Converting the British Library’s Catalogue of British and Irish Newspapers into a Public Domain Dataset: Processes and Applications”. *Journal of Open Humanities Data* 7 (0): 1. https://doi.org/10.5334/johd.23.</p> <p>Complete metadata (including NLPs) for this newspaper collection is available in another open dataset:</p> <p>> Westerling, Kalle, Timothy Hobson, Kaspar Beelen, Nilo Pedrazzini, Daniel Wilson, and Katherine McDonough. “Lwmdb Data”. *Zenodo*, December 11, 2024. https://doi.org/10.5281/zenodo.14389180.</p> <h3>Code</h3> <p>The <a href="https://github.com/Living-with-machines/newswords">NewsWords GitHub </a><a href="https://github.com/Living-with-machines/newswords" target="_blank" rel="noopener">repository </a>provides code for converting "raw" word counts to a more manageable sparse matrix format and contextualises these counts with additional newspaper metadata, e.g. information about price and politics. Further Information about how to use the code and query the NewsWords data is available in the GitHub README. </p> <p>To recreate these sparse matrices, please follow the instructions in "Create_sparse_matrices.ipynb"</p> <p>The Notebook "Explore_Distributed_Corpus.ipynb" allows you to analyse the distributed corpus. To use the "merged" or "unified matrix", you find example code in "Explore_Merged_Corpus.ipynb".</p> <h3>Limitations</h3> <p>These word counts are derived from the digitised press, containing billions of words, spanning multiple decades. However large, the data constitutes around only 15% of the total number of newspaper titles that circulated in Great Britain. In our paper "Whose News? Critical methods for assessing bias in large historical datasets" (under review) we have tackled the issue of representativeness, and point out that these exhibit some partisan bias—in the sense that they overrepresent conservative and liberal newspaper titles—which varies over the nineteenth century. </p> <p>For more information about the method and data see also:</p> <p>> Beelen, Kaspar, Jon Lawrence, Daniel C Wilson, and David Beavan, 2023. 'Bias and representativeness in digitized newspaper collections: Introducing the environmental scan.' *Digital Scholarship in the Humanities*, 38(1), pp.1-22.</p> <p>> "Whose News? Critical methods for assessing bias in large historical datasets" (under review)</p>
title NewsWords Data (Contextualized Word Counts)
url https://doi.org/10.5281/zenodo.14996278