Dataset Viewer
Duplicate
The dataset viewer is not available for this split.
Cannot extract the features (columns) for the split 'train' of the config 'default' of the dataset.
Error code:   FeaturesError
Exception:    FileNotFoundError
Message:      [Errno 2] No such file or directory: '<datasets.utils.file_utils.FilesIterable object at 0x7f8a99cbd250>'
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/split/first_rows.py", line 244, in compute_first_rows_from_streaming_response
                  iterable_dataset = iterable_dataset._resolve_features()
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 4408, in _resolve_features
                  features = _infer_features_from_batch(self.with_format(None)._head())
                                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2679, in _head
                  return next(iter(self.iter(batch_size=n)))
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2861, in iter
                  for key, pa_table in ex_iterable.iter_arrow():
                                       ~~~~~~~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2395, in _iter_arrow
                  yield from self.ex_iterable._iter_arrow()
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 536, in _iter_arrow
                  for key, pa_table in iterator:
                                       ^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 419, in _iter_arrow
                  for key, pa_table in self.generate_tables_fn(**gen_kwags):
                                       ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/xml/xml.py", line 67, in _generate_tables
                  with open(file, encoding=self.config.encoding, errors=self.config.encoding_errors) as f:
                       ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/streaming.py", line 73, in wrapper
                  return function(*args, download_config=download_config, **kwargs)
                File "/usr/local/lib/python3.14/site-packages/datasets/utils/file_utils.py", line 967, in xopen
                  return open(main_hop, mode, *args, **kwargs)
              FileNotFoundError: [Errno 2] No such file or directory: '<datasets.utils.file_utils.FilesIterable object at 0x7f8a99cbd250>'

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.

United States Statutes at Large

Bound volumes of the United States Statutes at Large as published by the U.S. Government Publishing Office on GovInfo, collection STATUTE. Each volume is one PDF and one USLM XML file.

Files

metadata.jsonl           one row per volume
pdfs/STATUTE-{n}.pdf     volume PDF as served by GovInfo
xmls/STATUTE-{n}.xml     volume USLM XML as served by GovInfo
granules/                per-law PDFs used by the conversion benchmark (a sample, not every law)

metadata.jsonl fields: file_name (PDF path), package_id, volume, congress, session, date_issued, pages, scanned, pdf_bytes, pdf_sha256, xml_file, xml_bytes, xml_sha256, source_package_url.

Volumes and eras

Volumes Years PDF XML
1 to 64 1789 to 1951 scanned images, 45 MB to 1.1 GB USLM produced by GPO from OCR and editorial markup
65 to 116 1951 to 2002 scanned images USLM produced by GPO
117 to 137 2003 to 2023 born digital, 8 MB to 45 MB USLM produced by GPO from the typesetting source

scanned in metadata.jsonl is true for volumes 1 to 116.

Source and license

Downloaded from https://api.govinfo.gov/packages/STATUTE-{n}/pdf and /uslm. Works of the United States Government are not subject to copyright in the United States (17 U.S.C. 105).

Produced by the statute-pdf-to-xml project, which converts the PDFs to USLM with Docling and benchmarks the result against the GPO XML.

Downloads last month
13