Datasets:
The dataset viewer is not available for this dataset.
Error code: ConfigNamesError
Exception: TypeError
Message: 'list' object is not a mapping
Traceback: Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/dataset/config_names.py", line 67, in compute_config_names_response
config_names = get_dataset_config_names(
path=dataset,
token=hf_token,
)
File "/usr/local/lib/python3.14/site-packages/datasets/inspect.py", line 161, in get_dataset_config_names
dataset_module = dataset_module_factory(
path,
...<4 lines>...
**download_kwargs,
)
File "/usr/local/lib/python3.14/site-packages/datasets/load.py", line 1217, in dataset_module_factory
raise e1 from None
File "/usr/local/lib/python3.14/site-packages/datasets/load.py", line 1192, in dataset_module_factory
).get_module()
~~~~~~~~~~^^
File "/usr/local/lib/python3.14/site-packages/datasets/load.py", line 622, in get_module
dataset_infos = DatasetInfosDict.from_dataset_card_data(dataset_card_data)
File "/usr/local/lib/python3.14/site-packages/datasets/info.py", line 396, in from_dataset_card_data
dataset_info = DatasetInfo._from_yaml_dict(dataset_card_data["dataset_info"])
File "/usr/local/lib/python3.14/site-packages/datasets/info.py", line 317, in _from_yaml_dict
yaml_data["features"] = Features._from_yaml_list(yaml_data["features"])
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/features/features.py", line 2148, in _from_yaml_list
return cls.from_dict(from_yaml_inner(yaml_data))
~~~~~~~~~~~~~~~^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/features/features.py", line 2144, in from_yaml_inner
return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
~~~~~~~~~~~~~~~^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/features/features.py", line 2141, in from_yaml_inner
return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'list' object is not a mappingNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
Welsh-English Legislation Translation Pairs
Parallel Welsh (cy) and English (en) text pairs extracted from paired
legislation.gov.uk XML documents. Each row aligns leaf-level text from
English and Welsh versions of the same statutory instrument.
v2 (2026-08-08): orthography-preserving re-extraction. Text now retains
apostrophes (sy'n, Safonau'r), Welsh diacritics (â ê î ô û ŵ ŷ), digits and
punctuation. The previous version stripped these to "letters and spaces only"
(Safonau'r→Safonaur), which is corrected here. Pair count grew 6,296 → 9,627
(+53%), partly by recovering pairs whose Welsh file used a cy_…_en.xml name.
Source
Text pairs are re-extracted by extract_clean_pairs.py from the raw paired
/data.xml and /welsh/data.xml documents (downloaded via
download_page_xml.py). English and Welsh leaf text nodes are aligned by their
structural XML path; pairs where the two sides are identical (English-fallback
/cy/ pages), empty, URL-bearing, or pure boilerplate are dropped.
Fields
| Field | Description |
|---|---|
translation.cy |
Welsh source text |
translation.en |
English target text |
group_id |
Content group folder ID from the source download |
Usage
Load with the Hugging Face datasets library:
from datasets import load_dataset
dataset = load_dataset("json", data_files="data/train.jsonl", split="train")
print(dataset[0])
Upload to Hugging Face Hub
huggingface-cli login
huggingface-cli upload <your-username>/welsh-english-legislation ./hf_dataset
Generated 2026-06-26; re-extracted with orthography preserved 2026-08-08.
- Downloads last month
- 24