Dataset Viewer
Duplicate
The dataset viewer is not available for this split.
Cannot load the dataset split (in streaming mode) to extract the first rows.
Error code:   StreamingRowsError
Exception:    CastError
Message:      Couldn't cast
format: string
source_archives: list<item: string>
  child 0, item: string
published_archives: list<item: string>
  child 0, item: string
replacements: struct<chywiki_01_of_01.txt.gz: list<item: struct<file: string, articles: int64, bytes: int64, uncom (... 135 chars omitted)
  child 0, chywiki_01_of_01.txt.gz: list<item: struct<file: string, articles: int64, bytes: int64, uncompressed_bytes: int64, partition: (... 102 chars omitted)
      child 0, item: struct<file: string, articles: int64, bytes: int64, uncompressed_bytes: int64, partition: struct<str (... 90 chars omitted)
          child 0, file: string
          child 1, articles: int64
          child 2, bytes: int64
          child 3, uncompressed_bytes: int64
          child 4, partition: struct<strategy: string, source_archive: string, source_sha256: string, index: int64, parts: int64>
              child 0, strategy: string
              child 1, source_archive: string
              child 2, source_sha256: string
              child 3, index: int64
              child 4, parts: int64
verified: string
storage_repacked: bool
expected_shards: int64
present_shards: list<item: int64>
  child 0, item: int64
roots: list<item: struct<root_shard: int64, complete: bool, files: list<item: string>, successful_leaves: l (... 314 chars omitted)
  child 0, item: struct<root_shard: int64, complete: bool, files: list<item: string>, successful_leaves: list<item: s (... 302 chars omitted)
      child 0, root_shard: int64
      child 1
...
_page_id: null, max_page_id: null>
                      child 0, file: string
                      child 1, min_page_id: null
                      child 2, max_page_id: null
              child 5, storage: struct<merged_from: list<item: string>, uncompressed_sha256: string>
                  child 0, merged_from: list<item: string>
                      child 0, item: string
                  child 1, uncompressed_sha256: string
      child 4, failed_fragments: list<item: null>
          child 0, item: null
      child 5, download_failures: list<item: null>
          child 0, item: null
generated_utc: string
storage_consolidation: struct<minimum_split_bytes: int64, verified: string, groups: list<item: struct<root: int64, old_file (... 75 chars omitted)
  child 0, minimum_split_bytes: int64
  child 1, verified: string
  child 2, groups: list<item: struct<root: int64, old_files: int64, new_files: int64, articles: int64, uncompressed_sha (... 13 chars omitted)
      child 0, item: struct<root: int64, old_files: int64, new_files: int64, articles: int64, uncompressed_sha256: string (... 1 chars omitted)
          child 0, root: int64
          child 1, old_files: int64
          child 2, new_files: int64
          child 3, articles: int64
          child 4, uncompressed_sha256: string
published_shards: int64
language: string
missing_shards: list<item: null>
  child 0, item: null
incomplete_shards: list<item: null>
  child 0, item: null
storage_repack_note: string
complete: bool
to
{'language': Value('string'), 'generated_utc': Value('string'), 'expected_shards': Value('int64'), 'published_shards': Value('int64'), 'published_archives': Value('int64'), 'present_shards': List(Value('int64')), 'missing_shards': List(Value('null')), 'incomplete_shards': List(Value('null')), 'complete': Value('bool'), 'roots': List({'root_shard': Value('int64'), 'complete': Value('bool'), 'files': List(Value('string')), 'successful_leaves': List({'file': Value('string'), 'articles': Value('int64'), 'bytes': Value('int64'), 'segment': Value('string'), 'sources': List({'file': Value('string'), 'min_page_id': Value('null'), 'max_page_id': Value('null')}), 'storage': {'merged_from': List(Value('string')), 'uncompressed_sha256': Value('string')}}), 'failed_fragments': List(Value('null')), 'download_failures': List(Value('null'))}), 'storage_repacked': Value('bool'), 'storage_repack_note': Value('string'), 'storage_consolidation': {'minimum_split_bytes': Value('int64'), 'verified': Value('string'), 'groups': List({'root': Value('int64'), 'old_files': Value('int64'), 'new_files': Value('int64'), 'articles': Value('int64'), 'uncompressed_sha256': Value('string')})}}
because column names don't match
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/utils.py", line 147, in get_rows_or_raise
                  return get_rows(
                      dataset=dataset,
                  ...<4 lines>...
                      column_names=column_names,
                  )
                File "/src/libs/libcommon/src/libcommon/utils.py", line 272, in decorator
                  return func(*args, **kwargs)
                File "/src/services/worker/src/worker/utils.py", line 127, in get_rows
                  rows_plus_one = list(itertools.islice(safe_iter(ds, dataset=dataset), rows_max_number + 1))
                File "/src/services/worker/src/worker/utils.py", line 483, in safe_iter
                  yield from ds.decode(False) if ds.features else ds
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2951, in __iter__
                  for key, example in ex_iterable:
                                      ^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2461, in __iter__
                  for key, pa_table in self._iter_arrow():
                                       ~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2486, in _iter_arrow
                  for key, pa_table in self.ex_iterable._iter_arrow():
                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 547, in _iter_arrow
                  for key, pa_table in iterator:
                                       ^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 430, 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/json/json.py", line 343, in _generate_tables
                  self._cast_table(pa_table, json_field_paths=json_field_paths),
                  ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 132, in _cast_table
                  pa_table = table_cast(pa_table, self.info.features.arrow_schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2378, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2306, in cast_table_to_schema
                  raise CastError(
                  ...<3 lines>...
                  )
              datasets.table.CastError: Couldn't cast
              format: string
              source_archives: list<item: string>
                child 0, item: string
              published_archives: list<item: string>
                child 0, item: string
              replacements: struct<chywiki_01_of_01.txt.gz: list<item: struct<file: string, articles: int64, bytes: int64, uncom (... 135 chars omitted)
                child 0, chywiki_01_of_01.txt.gz: list<item: struct<file: string, articles: int64, bytes: int64, uncompressed_bytes: int64, partition: (... 102 chars omitted)
                    child 0, item: struct<file: string, articles: int64, bytes: int64, uncompressed_bytes: int64, partition: struct<str (... 90 chars omitted)
                        child 0, file: string
                        child 1, articles: int64
                        child 2, bytes: int64
                        child 3, uncompressed_bytes: int64
                        child 4, partition: struct<strategy: string, source_archive: string, source_sha256: string, index: int64, parts: int64>
                            child 0, strategy: string
                            child 1, source_archive: string
                            child 2, source_sha256: string
                            child 3, index: int64
                            child 4, parts: int64
              verified: string
              storage_repacked: bool
              expected_shards: int64
              present_shards: list<item: int64>
                child 0, item: int64
              roots: list<item: struct<root_shard: int64, complete: bool, files: list<item: string>, successful_leaves: l (... 314 chars omitted)
                child 0, item: struct<root_shard: int64, complete: bool, files: list<item: string>, successful_leaves: list<item: s (... 302 chars omitted)
                    child 0, root_shard: int64
                    child 1
              ...
              _page_id: null, max_page_id: null>
                                    child 0, file: string
                                    child 1, min_page_id: null
                                    child 2, max_page_id: null
                            child 5, storage: struct<merged_from: list<item: string>, uncompressed_sha256: string>
                                child 0, merged_from: list<item: string>
                                    child 0, item: string
                                child 1, uncompressed_sha256: string
                    child 4, failed_fragments: list<item: null>
                        child 0, item: null
                    child 5, download_failures: list<item: null>
                        child 0, item: null
              generated_utc: string
              storage_consolidation: struct<minimum_split_bytes: int64, verified: string, groups: list<item: struct<root: int64, old_file (... 75 chars omitted)
                child 0, minimum_split_bytes: int64
                child 1, verified: string
                child 2, groups: list<item: struct<root: int64, old_files: int64, new_files: int64, articles: int64, uncompressed_sha (... 13 chars omitted)
                    child 0, item: struct<root: int64, old_files: int64, new_files: int64, articles: int64, uncompressed_sha256: string (... 1 chars omitted)
                        child 0, root: int64
                        child 1, old_files: int64
                        child 2, new_files: int64
                        child 3, articles: int64
                        child 4, uncompressed_sha256: string
              published_shards: int64
              language: string
              missing_shards: list<item: null>
                child 0, item: null
              incomplete_shards: list<item: null>
                child 0, item: null
              storage_repack_note: string
              complete: bool
              to
              {'language': Value('string'), 'generated_utc': Value('string'), 'expected_shards': Value('int64'), 'published_shards': Value('int64'), 'published_archives': Value('int64'), 'present_shards': List(Value('int64')), 'missing_shards': List(Value('null')), 'incomplete_shards': List(Value('null')), 'complete': Value('bool'), 'roots': List({'root_shard': Value('int64'), 'complete': Value('bool'), 'files': List(Value('string')), 'successful_leaves': List({'file': Value('string'), 'articles': Value('int64'), 'bytes': Value('int64'), 'segment': Value('string'), 'sources': List({'file': Value('string'), 'min_page_id': Value('null'), 'max_page_id': Value('null')}), 'storage': {'merged_from': List(Value('string')), 'uncompressed_sha256': Value('string')}}), 'failed_fragments': List(Value('null')), 'download_failures': List(Value('null'))}), 'storage_repacked': Value('bool'), 'storage_repack_note': Value('string'), 'storage_consolidation': {'minimum_split_bytes': Value('int64'), 'verified': Value('string'), 'groups': List({'root': Value('int64'), 'old_files': Value('int64'), 'new_files': Value('int64'), 'articles': Value('int64'), 'uncompressed_sha256': Value('string')})}}
              because column names don't match

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.

Plaintext Wikipedia (Cheyenne)

Compressed plaintext articles from Cheyenne Wikipedia. One current main-namespace revision per non-redirect article; titles and cleaned text are stored as UTF-8 in independent gzip shards.

Produced and maintained by cheeseonamonkey/PlainTextWikipedia.

Build status: COMPLETE — 1/1 root shards recovered (1 leaf archives). All planned page ranges recovered.

Format

Each .txt.gz shard has three lines per article (title, single-line body, blank separator):

Article title
Cleaned article body

Next title
Next article body

Shard files are normally named chywiki_01_of_NN.txt.gz, etc. If one shard fails, recovery splits it into named halves like chywiki_01a_of_NN.txt.gz and chywiki_01b_of_NN.txt.gz; a failing half can split again (01ba, 01bb, etc.). Only successful, non-overlapping leaves are published.

The machine-readable coverage file data/build-manifest.json records which roots and subranges completed. Always check its complete flag before treating a dataset as exhaustive. These are raw text archives, not structured rows with title and body fields in the Hugging Face datasets API.

Example: download and read

import gzip
from huggingface_hub import HfApi, hf_hub_download

repo = "ffatty/plaintext-wikipedia-full-cheyenne"
files = sorted(
    path for path in HfApi().list_repo_files(repo, repo_type="dataset")
    if path.startswith("data/") and path.endswith(".txt.gz")
)
path = hf_hub_download(repo, filename=files[0], repo_type="dataset")

with gzip.open(path, "rt", encoding="utf-8") as stream:
    title = stream.readline().rstrip("\n")
    body = stream.readline().rstrip("\n")
    print(title, body[:200])

Sources and attribution

  1. cheeseonamonkey/PlainTextWikipedia — maintained converter and publisher.
  2. daveshap/PlainTextWikipedia — original upstream project (unmaintained).
  3. Wikimedia dumps — article source.

Wikipedia content is released under Creative Commons Attribution-ShareAlike (CC BY-SA); the conversion code is MIT licensed. Follow the applicable Wikimedia reuse requirements, including author attribution.


Generated by cheeseonamonkey/PlainTextWikipedia. Source data: Wikimedia dumps.

Downloads last month
68