Dataset Viewer
Duplicate
The dataset viewer is not available for this split.
Cannot extract the features (columns) for the split 'index' of the config 'index' of the dataset.
Error code:   FeaturesError
Exception:    HfHubHTTPError
Message:      404 Client Error: Not Found for url: https://hf-hub-lfs-us-east-1.s3.us-east-1.amazonaws.com/repos/02/8c/028cd8851c22381114c9721ee00c358625bb6fea4bb3986e8bdda7a150ef4b9c/c4775f76e0b050110247b65c8b2ec7933204ec95e79ee8726111f8f4c72f5bc9?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA2JU7TKAQLC2QXPN7%2F20260210%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260210T084008Z&X-Amz-Expires=3600&X-Amz-Signature=50b51eee04514723186e2488b070d62926c7c404f9216800779d91beb64612b2&X-Amz-SignedHeaders=host&response-content-disposition=inline%3B%20filename%2A%3DUTF-8%27%27index.tsv%3B%20filename%3D%22index.tsv%22%3B&response-content-type=text%2Ftab-separated-values&x-id=GetObject

<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>NoSuchKey</Code><Message>The specified key does not exist.</Message><Key>repos/02/8c/028cd8851c22381114c9721ee00c358625bb6fea4bb3986e8bdda7a150ef4b9c/c4775f76e0b050110247b65c8b2ec7933204ec95e79ee8726111f8f4c72f5bc9</Key><RequestId>ZFA4WFB4YGASPHHP</RequestId><HostId>lHPzTHyYKYDiVLHkAKN1KVjKIgazGgaMqp5KF971XHZF2HwiGczC8ii+96oEq+2G0a5yQEukG7BsKtHbObL8F8KJkwqbR47C</HostId></Error>
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.12/site-packages/huggingface_hub/utils/_http.py", line 409, in hf_raise_for_status
                  response.raise_for_status()
                File "/usr/local/lib/python3.12/site-packages/requests/models.py", line 1026, in raise_for_status
                  raise HTTPError(http_error_msg, response=self)
              requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://hf-hub-lfs-us-east-1.s3.us-east-1.amazonaws.com/repos/02/8c/028cd8851c22381114c9721ee00c358625bb6fea4bb3986e8bdda7a150ef4b9c/c4775f76e0b050110247b65c8b2ec7933204ec95e79ee8726111f8f4c72f5bc9?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA2JU7TKAQLC2QXPN7%2F20260210%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260210T084008Z&X-Amz-Expires=3600&X-Amz-Signature=50b51eee04514723186e2488b070d62926c7c404f9216800779d91beb64612b2&X-Amz-SignedHeaders=host&response-content-disposition=inline%3B%20filename%2A%3DUTF-8%27%27index.tsv%3B%20filename%3D%22index.tsv%22%3B&response-content-type=text%2Ftab-separated-values&x-id=GetObject
              
              The above exception was the direct cause of the following exception:
              
              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 3608, 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 2368, in _head
                  return next(iter(self.iter(batch_size=n)))
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2573, in iter
                  for key, example in iterator:
                                      ^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2060, in __iter__
                  for key, pa_table in self._iter_arrow():
                                       ^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2082, in _iter_arrow
                  yield from self.ex_iterable._iter_arrow()
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 544, in _iter_arrow
                  for key, pa_table in iterator:
                                       ^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 383, 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/csv/csv.py", line 196, in _generate_tables
                  csv_file_reader = pd.read_csv(file, iterator=True, dtype=dtype, **self.config.pd_read_csv_kwargs)
                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                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 1250, in xpandas_read_csv
                  return pd.read_csv(xopen(filepath_or_buffer, "rb", download_config=download_config), **kwargs)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/pandas/io/parsers/readers.py", line 1026, in read_csv
                  return _read(filepath_or_buffer, kwds)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/pandas/io/parsers/readers.py", line 620, in _read
                  parser = TextFileReader(filepath_or_buffer, **kwds)
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/pandas/io/parsers/readers.py", line 1620, in __init__
                  self._engine = self._make_engine(f, self.engine)
                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/pandas/io/parsers/readers.py", line 1898, in _make_engine
                  return mapping[engine](f, **self.options)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/pandas/io/parsers/c_parser_wrapper.py", line 93, in __init__
                  self._reader = parsers.TextReader(src, **kwds)
                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "pandas/_libs/parsers.pyx", line 574, in pandas._libs.parsers.TextReader.__cinit__
                File "pandas/_libs/parsers.pyx", line 663, in pandas._libs.parsers.TextReader._get_header
                File "pandas/_libs/parsers.pyx", line 874, in pandas._libs.parsers.TextReader._tokenize_rows
                File "pandas/_libs/parsers.pyx", line 891, in pandas._libs.parsers.TextReader._check_tokenize_status
                File "pandas/_libs/parsers.pyx", line 2053, in pandas._libs.parsers.raise_parser_error
                File "/usr/local/lib/python3.12/site-packages/datasets/utils/file_utils.py", line 844, in read_with_retries
                  out = read(*args, **kwargs)
                        ^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/huggingface_hub/hf_file_system.py", line 1015, in read
                  return super().read(length)
                         ^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/fsspec/spec.py", line 1846, in read
                  out = self.cache._fetch(self.loc, self.loc + length)
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/fsspec/caching.py", line 189, in _fetch
                  self.cache = self.fetcher(start, end)  # new block replaces old
                               ^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/huggingface_hub/hf_file_system.py", line 976, in _fetch_range
                  hf_raise_for_status(r)
                File "/usr/local/lib/python3.12/site-packages/huggingface_hub/utils/_http.py", line 482, in hf_raise_for_status
                  raise _format(HfHubHTTPError, str(e), response) from e
              huggingface_hub.errors.HfHubHTTPError: 404 Client Error: Not Found for url: https://hf-hub-lfs-us-east-1.s3.us-east-1.amazonaws.com/repos/02/8c/028cd8851c22381114c9721ee00c358625bb6fea4bb3986e8bdda7a150ef4b9c/c4775f76e0b050110247b65c8b2ec7933204ec95e79ee8726111f8f4c72f5bc9?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA2JU7TKAQLC2QXPN7%2F20260210%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260210T084008Z&X-Amz-Expires=3600&X-Amz-Signature=50b51eee04514723186e2488b070d62926c7c404f9216800779d91beb64612b2&X-Amz-SignedHeaders=host&response-content-disposition=inline%3B%20filename%2A%3DUTF-8%27%27index.tsv%3B%20filename%3D%22index.tsv%22%3B&response-content-type=text%2Ftab-separated-values&x-id=GetObject
              
              <?xml version="1.0" encoding="UTF-8"?>
              <Error><Code>NoSuchKey</Code><Message>The specified key does not exist.</Message><Key>repos/02/8c/028cd8851c22381114c9721ee00c358625bb6fea4bb3986e8bdda7a150ef4b9c/c4775f76e0b050110247b65c8b2ec7933204ec95e79ee8726111f8f4c72f5bc9</Key><RequestId>ZFA4WFB4YGASPHHP</RequestId><HostId>lHPzTHyYKYDiVLHkAKN1KVjKIgazGgaMqp5KF971XHZF2HwiGczC8ii+96oEq+2G0a5yQEukG7BsKtHbObL8F8KJkwqbR47C</HostId></Error>

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.

Prophet's Mosque Library

📖 Overview

Prophet’s Mosque Library is one of the primary resources for Islamic books. It hosts more than 48,000 PDF books across over 70 categories.

In this dataset, we processed the original PDF files using Google Document AI APIs and extracted their contents into two additional formats: TXT and DOCX.

📊 Dataset Contents

The dataset includes 70,884 PDF files (spanning 23,494,042 pages) representing 48,717 Islamic books. Each book is provided in three formats:

  • PDF files are located in the pdf directory.
  • TXT files are located in the txt directory.
  • DOCX files are located in the docx directory.

All three directories (pdf, txt, and docx) share the same folder structure.

For example, a book located at pdf/category/book/file.pdf will have its corresponding TXT and DOCX versions at txt/category/book/file.txt and docx/category/book/file.docx, respectively.

The index.tsv file contains the following information about each book in the dataset:

  • category: One of the 74 book categories available in the dataset.
  • author: Book author.
  • title: Book title.
  • pages: Total number of book pages.
  • pdf_paths: Array of PDF files paths as each book can be splitted into multiple files (e.g. Books with multiple volumes).
  • txt_paths: Array of TXT files paths as each book can be splitted into multiple files (e.g. Books with multiple volumes).
  • docx_paths: Array of DOCX files paths as each book can be splitted into multiple files (e.g. Books with multiple volumes).

The books are organized into 74 categories, as listed below:

Category Percentage Number of Books
علوم القرآن 2.07% 1010
التجويد والقراءات 1.91% 931
مباحث قرآنية عامة 2.00% 975
أصول التفسير 0.43% 208
التفاسير القديمة 0.61% 298
التفاسير الحديثة 0.81% 397
فهارس الحديث 0.24% 118
مصطلح الحديث 2.34% 1140
الجرح والتعديل 1.90% 926
الحديث الستة 1.06% 515
مسانيد الأئمة الأربعة 0.33% 161
المسانيد الأخرى والجوامع 1.20% 586
باقي مجموعات الحديث 3.02% 1469
التوحيد والعقيدة 6.26% 3048
الفرق والأديان والردود 3.95% 1926
أصول الفقه وقواعده 2.91% 1416
الفرائض 0.44% 212
الأحوال الشخصية 0.14% 66
السياسة الشرعية 1.24% 603
الفقه العام 6.48% 3157
الفقه الحنفي 0.39% 192
الفقه المالكي 0.69% 335
الفقه الشافعي 0.65% 318
الفقه الحنبلي 0.92% 447
فقه المذاهب الأخرى 0.15% 74
الفتاوى 1.27% 618
التزكية والأخلاق والآداب 5.91% 2881
الأذكار والشعائر 0.94% 460
اللغة العربية 1.99% 970
البلاغة 0.48% 235
النحو والصرف 1.98% 964
العروض 0.06% 27
الأدب 5.75% 2803
السيرة النبوية 2.27% 1106
الجغرافيا والرحلات 1.56% 758
التراجم والأعلام 4.65% 2265
الأنساب 0.52% 254
تاريخ أوربا 0.09% 46
تاريخ المملكة العربية السعودية 0.68% 331
التاريخ الإسلامي 3.37% 1643
تاريخ مكة المكرمة 0.53% 256
تاريخ المدينة المنورة 0.52% 255
تاريخ أفريقيا 0.19% 94
المجاميع 0.39% 190
المجاميع العشر 0.49% 240
الأدلة والفهارس 0.83% 402
المكتبات وطرق البحث 0.70% 343
الدوريات 0.02% 9
الخطب والمساجد 0.67% 327
الثقافة الإسلامية العامة 2.93% 1425
الدعوة والدفاع عن الإسلام 2.66% 1294
قضايا الإصلاح الإجتماعي 1.83% 893
الأمن الفكري 0.10% 49
علوم الحاسب الآلي 0.22% 108
الإعلام ووسائل الإتصال 0.17% 84
الموسوعات العامة 0.14% 67
الإعلام والصحافة 0.12% 57
المؤتمرات والندوات 0.77% 373
علم النفس 0.95% 462
المنطق 0.00% 1
علم الإجتماع 0.44% 215
علم الإحصاء 0.07% 36
العلوم السياسية 1.27% 620
الإقتصاد 1.34% 653
القانون 0.41% 200
الإدارة 1.07% 520
العلوم العسكرية 0.10% 49
التربية والتعليم 4.15% 2023
العلوم بحتة 0.75% 365
التكنولوجيا والعلوم التطبيقية 0.18% 89
الطب 1.56% 758
الزراعة 0.44% 215
الفنون 0.27% 130
غير مصنف 0.05% 26

📄 TXT Format

Each TXT file contains the raw text extracted by Google Document AI from the corresponding PDF. Pages are separated by the special marker: \nPAGE_SEPARATOR\n.

📝 DOCX Format

DOCX files also contain text extracted via Google Document AI. However, all consecutive whitespace characters have been replaced with a single space character (' ') to help maintain a consistent 1:1 alignment with the original PDF layout.

Downloads last month
374,279