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 0x7f68f1e41c70>'
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/split/first_rows.py", line 243, in compute_first_rows_from_streaming_response
                  iterable_dataset = iterable_dataset._resolve_features()
                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 4072, in _resolve_features
                  features = _infer_features_from_batch(self.with_format(None)._head())
                                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2404, in _head
                  return next(iter(self.iter(batch_size=n)))
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2597, in iter
                  for key, example in iterator:
                                      ^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2102, in __iter__
                  for key, pa_table in self._iter_arrow():
                                       ^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2124, in _iter_arrow
                  yield from self.ex_iterable._iter_arrow()
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 479, in _iter_arrow
                  for key, pa_table in iterator:
                                       ^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 380, 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/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.12/site-packages/datasets/streaming.py", line 73, in wrapper
                  return function(*args, download_config=download_config, **kwargs)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/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 0x7f68f1e41c70>'

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.

⚖️ Indonesian Supreme Court HTML Dataset (ID_Supreme_Court_HTML)

This repository contains a massive collection of official court decisions from the Supreme Court of the Republic of Indonesia (Mahkamah Agung RI), preserved in their original HTML structure. 🏛️

Unlike plain text datasets, this collection retains the underlying web formatting from the official Direktori Putusan, making it an invaluable resource for developers building legal tech tools that require structural context, such as headers, metadata tables, and formal legal hierarchies. 📂

💡 The Concept: Structural Legal Preservation

Legal documents are more than just text; their meaning is often tied to their layout—where the "Menimbang" (Considering) section ends and the "MENGADILI" (Adjudicating) section begins. By providing the data in HTML:

  • 🏗️ Structural Parsing: Developers can use CSS selectors or XPath to precisely extract Case Numbers, Judge Names, and Verdicts.
  • 🔍 Rich Context: Preserves the original tables and lists that are often mangled in PDF-to-text conversions.
  • 🤖 RAG Optimization: Ideal for Chunking strategies that respect the natural boundaries of a court decision.

🛠️ Data Acquisition & Integrity

This dataset was compiled using legitimate developer-sanctioned methods:

  • Source: Mahkamah Agung RI - Direktori Putusan 🌐
  • Methodology: Systematic retrieval via official web endpoints, adhering to public access guidelines. No aggressive bot-scraping was used; the process was orchestrated to respect the source's stability. ✅
  • Format: Raw HTML strings mapped to unique decision IDs.

🧪 Use Cases

  • Legal LLM Training: Fine-tune models to understand the specific formal language and structure of Indonesian jurisprudence. 🎓
  • Information Extraction (NER): Build pipelines to automatically identify the Prosecutor, Defendant, and specific Articles of the law cited. 🔎
  • Semantic Search: Powering legal search engines that allow users to filter by specific sections of a decision. 🚀
  • Legal Analytics: Perform trend analysis on sentencing and judicial reasoning across different regions and years. 📈

📂 Dataset Structure

Each entry in the dataset includes:

  • ID: The unique identifier from the Supreme Court directory.
  • HTML Content: The full, raw HTML body of the decision. 📑
  • Metadata (where available): Case type (Perdata, Pidana, etc.), year, and court level.

📜 License & Attribution

This dataset is licensed under the Creative Commons Attribution 4.0 International (CC BY 4.0). 📝

Attribution

  1. Original Source: Mahkamah Agung Republik Indonesia.
  2. Dataset Curator: Azzindani (via Hugging Face Datasets).

Disclaimer: This dataset is provided for research and development purposes. It is not an official legal record. For official legal proceedings, always refer to the verified physical or digital documents provided by the Indonesian Supreme Court. ⚠️


Downloads last month
8