The dataset viewer is not available for this subset.
Exception: SplitsNotFoundError
Message: The split names could not be parsed from the dataset config.
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 290, in _generate_tables
pa_table = paj.read_json(
io.BytesIO(batch), read_options=paj.ReadOptions(block_size=block_size)
)
File "pyarrow/_json.pyx", line 342, in pyarrow._json.read_json
File "pyarrow/error.pxi", line 155, in pyarrow.lib.pyarrow_internal_check_status
return check_status(status)
File "pyarrow/error.pxi", line 92, in pyarrow.lib.check_status
raise convert_status(status)
pyarrow.lib.ArrowInvalid: JSON parse error: Column(/top_departments/[]/[]) changed from string to number in row 0
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/site-packages/datasets/inspect.py", line 286, in get_dataset_config_info
for split_generator in builder._split_generators(
~~~~~~~~~~~~~~~~~~~~~~~~~^
StreamingDownloadManager(base_path=builder.base_path, download_config=download_config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 101, in _split_generators
pa_table = next(iter(self._generate_tables(**splits[0].gen_kwargs, allow_full_read=False)))[1]
~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 304, in _generate_tables
batch = json_encode_fields_in_json_lines(original_batch, json_field_paths)
File "/usr/local/lib/python3.14/site-packages/datasets/utils/json.py", line 111, in json_encode_fields_in_json_lines
examples = [ujson_loads(line) for line in original_batch.splitlines()]
~~~~~~~~~~~^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/utils/json.py", line 20, in ujson_loads
return pd.io.json.ujson_loads(*args, **kwargs)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
ValueError: Expected object or value
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/split_names.py", line 66, in compute_split_names_from_streaming_response
for split in get_dataset_split_names(
~~~~~~~~~~~~~~~~~~~~~~~^
path=dataset,
^^^^^^^^^^^^^
config_name=config,
^^^^^^^^^^^^^^^^^^^
token=hf_token,
^^^^^^^^^^^^^^^
)
^
File "/usr/local/lib/python3.14/site-packages/datasets/inspect.py", line 340, in get_dataset_split_names
info = get_dataset_config_info(
path,
...<6 lines>...
**config_kwargs,
)
File "/usr/local/lib/python3.14/site-packages/datasets/inspect.py", line 291, in get_dataset_config_info
raise SplitsNotFoundError("The split names could not be parsed from the dataset config.") from err
datasets.inspect.SplitsNotFoundError: The split names could not be parsed from the dataset config.Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
UK Government Consultation Corpus
An open, structured corpus of 6,260 UK government consultations that have reached a published outcome, harvested from the GOV.UK Search and Content APIs and coded by GOV.UK's own policy-area taxonomy. A map of how government consults, who runs consultations, on what, and whether it publishes the response.
| Consultations (with published outcome) | 6,260 |
| Coded by policy area | 98% |
| Publish response documents | 77% |
| Source | GOV.UK Search API + Content API |
| Licence | Open Government Licence v3.0 |
The finding
Every consultation in the corpus has a published outcome page, yet only 77% attach response documents to it. Nearly a quarter close the loop with an outcome page that carries no published response analysis. Defra, the Department for Transport and MHCLG are the most prolific consulting bodies; the busiest policy areas are the UK economy, access to the countryside, and low-carbon technologies and energy.
What this is for
This is a corpus frame: the structured index over which consultation analysis, response-coding or automated-summarisation work can be scoped and sampled. It captures each consultation's title, dates, department, policy-area coding, and whether response documents were published, but not the response texts themselves (which remain on the linked GOV.UK pages). It is the map, built so the territory can be worked systematically rather than one consultation at a time.
Files
data/corpus_summary.json— response rates, department, policy-area and year breakdownsdata/consultations.csv— one row per consultation with coding and outcome flagsdata/consultations_detail.jsonl— full recordsscripts/harvest.py,scripts/build_corpus.py
Reproduce
python3 scripts/harvest.py # GOV.UK Search + Content APIs
python3 scripts/build_corpus.py
Contains public sector information licensed under the Open Government Licence v3.0. Independent, self-initiated open research by Tesseract Academy.
- Downloads last month
- 30