You need to agree to share your Hugging Face information to access this dataset

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this dataset content.

Persian Legal Books

A collection of Persian law books. One row = one book, with the text kept page by page.

Structure

Field Type Description
id string Stable book ID (e.g. book-00001)
file_name string Source PDF file name
title string Book title
authors list[string] Authors
source_type string Source type (e.g. کتاب)
total_pages int Number of pages in the source PDF
pages list Pages of the book
pages[].page_number int Page number
pages[].content string Text of the page
pages[].metadata dict Header lines of the page and Page number

Usage

from datasets import load_dataset

ds = load_dataset("QomSSLab/Legal_Books", split="train")

book = ds[0]

print(book["id"])
text = "\n\n".join(p["content"] for p in book["pages"])

License

Not specified. The books belong to their authors and publishers.

Downloads last month
165