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:    TypeError
Message:      Couldn't cast array of type
struct<section_id: string, title: string>
to
List({'section_id': Value('string'), 'title': Value('string')})
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/json/json.py", line 246, in _generate_tables
                  pa_table = paj.read_json(
                             ^^^^^^^^^^^^^^
                File "pyarrow/_json.pyx", line 342, in pyarrow._json.read_json
                File "pyarrow/error.pxi", line 155, in pyarrow.lib.pyarrow_internal_check_status
                File "pyarrow/error.pxi", line 92, in pyarrow.lib.check_status
              pyarrow.lib.ArrowInvalid: JSON parse error: Missing a name for object member. in row 0
              
              During handling of the above exception, another exception occurred:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/utils.py", line 99, in get_rows_or_raise
                  return get_rows(
                         ^^^^^^^^^
                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 77, in get_rows
                  rows_plus_one = list(itertools.islice(ds, rows_max_number + 1))
                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2690, in __iter__
                  for key, example in ex_iterable:
                                      ^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2227, in __iter__
                  for key, pa_table in self._iter_arrow():
                                       ^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2251, in _iter_arrow
                  for key, pa_table in self.ex_iterable._iter_arrow():
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 494, in _iter_arrow
                  for key, pa_table in iterator:
                                       ^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 384, in _iter_arrow
                  for key, pa_table in self.generate_tables_fn(**gen_kwags):
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/json/json.py", line 295, in _generate_tables
                  yield Key(shard_idx, 0), self._cast_table(pa_table)
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/json/json.py", line 128, in _cast_table
                  pa_table = table_cast(pa_table, self.info.features.arrow_schema)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2321, in table_cast
                  return cast_table_to_schema(table, schema)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2255, in cast_table_to_schema
                  cast_array_to_feature(
                File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 1804, in wrapper
                  return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks])
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2101, in cast_array_to_feature
                  raise TypeError(f"Couldn't cast array of type\n{_short_str(array.type)}\nto\n{_short_str(feature)}")
              TypeError: Couldn't cast array of type
              struct<section_id: string, title: string>
              to
              List({'section_id': Value('string'), 'title': Value('string')})

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.

Tushe Community Grade School STEM

Open dataset of grade-school STEM (Science, Technology, Engineering, Mathematics) textbooks, curated for Tushe Community and aligned with curriculum use (e.g. CAPS-aligned content).

Data Fields (per book JSON)

Field Type Description
source_file string Original .txt filename
title string Derived book title (e.g. "Grade 8A Mathematics")
table_of_contents list [{ "section_id", "title" }, ...]
front_matter string Intro, copyright, TOC block
chapters list [{ "chapter_id", "title", "content" }, ...]

File Naming

  • Gr{Grade}{Part}_*_Learner_Eng.json / *_Teacher_Eng.json
  • Examples: Gr8A_Mathematics_Learner_Eng.json, Gr10_PhysicalSciences_Teacher_Eng.json

Intended Use

  • Curriculum-aligned teaching and learning
  • Building educational tools (e.g. search, Q&A, revision)
  • Research in education and NLP
  • Redistribution and adaptation under the dataset license

Source and License

  • Original textbooks: Siyavula / Sasol Inzalo Foundation / Ukuqonda Institute (CAPS-aligned, open-licensed).
  • Processing: PDF → OCR → TOC extraction → chapter/section splitting → JSON; character corrections applied.
  • Dataset license: CC-BY-4.0 (attribution required; derivatives allowed).
  • Original book licenses: See each book’s front matter (e.g. CC-BY-ND, CC-BY-NC) where applicable.

Citation

If you use this dataset, please cite Tushe Community and the source textbooks:

@misc{tushe-community-grade-school-stem,
  title        = {Tushe Community Grade School STEM},
  author       = {Tushe Community},
  year         = {2026},
  publisher    = {Hugging Face},
  url          = {https://huggingface.co/datasets/AlaminI/tushe-grade-school-stem},
  note         = {Open dataset of grade-school STEM textbooks (Siyavula, CAPS-aligned)}
}

Contact

Downloads last month
228

Models trained or fine-tuned on Tushe/tushe-grade-school-stem