The viewer is disabled because this dataset repo requires arbitrary Python code execution. Please consider removing the loading script and relying on automated data support (you can use convert_to_parquet from the datasets library). If this is not possible, please open a discussion for direct help.

This is a dataset of text from the Riksdag, Sweden's national legislative body.

The original data is availble without a license under the Re-use of Public Administration Documents Act (2010:566) at https://data.riksdagen.se/data/dokument

This dataset is derivative of a version compiled by Språkbanken Text (SBX) at the University of Gothenburg (Sweden). That version consists of XML files split by source document type (motions, questions, protocol, etc.) and includes additional linguistic annotations. It is available under a CC BY 4.0 license at https://spraakbanken.gu.se/resurser/rd

The focus of this huggingface dataset is to organise the data for fine-grained diachronic modeling. In a nutshell, this version offers:

  • all sentences including one or more of 103 target words, which were chosen by TF-IDF (described below)
  • per-month subsets (with all document types combined)
  • one line per sentence (sentences shorter than 4 words were discarded)
  • data includes: date, document_type, document_id, target_word, and text.

The dataset builder requires a years argument, which must be an interable of years between 1979 and 2019 (inclusive). This can be supplied to the load_dataset function as a keyword argument. For example, to load raw sentences from the prop and bet data sources run:

from datasets import load_dataset
data = load_dataset('ChangeIsKey/open-riksdag', 'sentences' years=range(1999,2000), sources=['prop', 'bet'])

License is CC BY 4.0 with attribution.

Downloads last month
151