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