Skip to main content

Access the Riksdagen corpus

Project description

Check unchanged Unit tests Validate Parla-Clarin XML

Swedish parliamentary proceedings - Riksdagens protokoll 1867-today

Westac Project, 2020-2023

The full data set consists of multiple parts:

  • Riksdagens protokoll between from 1867 until today in the Parla-clarin format
  • Comprehensive list of MPs and cabinet members during this period
  • Documentation of the corpus and the curation process
  • A Google Colab notebook that demonstrates how the dataset can be used with Python

Basic use

A full dataset is available under this download link. It has the following structure

  • Annual protocol files in the corpus/protocols/ folder
  • Structured metadata on MPs, speakers, ministers, and governments in the corpus/metadata/ folder

The workflow to use the data is demonstrated in this Google Colab notebook.

Design choices of the project

The Riksdagen corpus is released as an iterative process, where the corpus is curated and expanded. Semantic versioning is used for the whole corpus, following the established major-minor-patch practices as they apply to data. For each major and minor release, a statistical sample is drawn, annotated and quantitatively evaluated. Errors are fixed as they are detected in order of priority. Moreover, the edit history is kept as a traceable git repository.

Estimate of mapping accuracy

While the contents of the corpus will change due to curation and expansion, we aim to keep the deliverable API, the corpus/ folder, as stable as possible. This means we avoid relocating files or folders, changing formats, changing columns in metadata files, or any other changes that might break downstream scripts. Conversely, files outside the corpus/ folder are internal to the project. End users may find utility in them but we make no effort to keep them consistent.

The data in the corpus is delivered as TEI XML files to follow established practices. The metadata is delivered as CSV files, following a normal form database structure while allowing for a legible git history. A more detailed description of the data and metadata structure and formats can be found in the README files in the corpus/ folder.

Participate in the curation process

If you find any errors, it is possible to submit corrections to them. This is documented in the project wiki.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyriksdagen-0.8.2rc2.tar.gz (29.0 kB view hashes)

Uploaded Source

Built Distribution

pyriksdagen-0.8.2rc2-py3-none-any.whl (41.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page