CoolFace
Datasetpublic

MoMonir/shamela_books_text_full

Shamela_Books_Text_Full This dataset contains the full text content of Islamic Arabic books from the Shamela Library, organized by category, book, volume, and page, with footnotes stored separately. It is designed to support Arabic NLP, digital humanities, and bibliographic analysis. πŸ”— This dataset is linked to the companion metadata dataset: πŸ‘‰ Shamela_Books_info via the book_id field. Update : The dataset includes the original raw files as well as a single… See the full description on the dataset page: https://huggingface.co/datasets/MoMonir/shamela_books_text_full.

sourceHugging Faceapache-2.0updated 4mo agoView on Hugging Face
2likes182downloads
Dataset Card

Shamela\Books\Text\_Full

This dataset contains the full text content of Islamic Arabic books from the Shamela Library, organized by category, book, volume, and page, with footnotes stored separately. It is designed to support Arabic NLP, digital humanities, and bibliographic analysis.

πŸ”— This dataset is linked to the companion metadata dataset: πŸ‘‰ Shamela\_Books\_info via the book_id field.


Update :

The dataset includes the original raw files as well as a single merged file.


πŸ“Š Dataset Summary

  • β€”Total Categories: 40
  • β€”Total Books: 8,538
  • β€”Total Records (Pages): 7,552,019
  • β€”Granularity: Each row = a page of a book
  • β€”Footnotes: Stored in a separate column for clean processing

πŸ“ Dataset Fields

ColumnDescription
serial_numberUnique row ID for each page
category_idNumeric identifier for book category
categoryName of the category (e.g., Fiqh, Tafsir, etc.)
book_titleTitle of the book
book_idUnique ID used by Shamela.ws
editionEdition info (if available)
publisherPublisher name (if available)
page_numberPage number within the volume
volume_numbervolume number (supports sub-parts and prefixes)
textMain content text of the page
foot_noteFootnote text from the same page

πŸ”— Link to Metadata

To access full author info, publishing details, and classification, use the book_id to join this dataset with: πŸ“˜ Shamela\_Books\_info

python
# Example join (Pandas):
import pandas as pd

text_df = pd.read_csv('shamela_books_text_full.csv')
info_df = pd.read_csv('shamela_books_info.csv')

merged_df = text_df.merge(info_df, on='book_id')

πŸ“š Volume Numbering Reference

πŸ”Ή Main Content

Pattern ExampleDescriptionVolume Number
5 Ψ£, and 5 Ψ¨Arabic letter multi-parts (Ψ£ = 1)5.2 , 5.1
2- 1Hyphenated parts2.1
47 - 48Multi-volume, first number used47
001, 1Standard numeric volume1

🧠 Usage Ideas

  • β€”Train/fine-tune Arabic language models
  • β€”Information retrieval / document segmentation
  • β€”Digital Islamic studies / literary analysis
  • β€”Linking text to authors, death years, categories, and editors

Acknowledgment and Gratitude

We extend our sincere gratitude to everyone behind the development of Ψ§Ω„Ω…ΩƒΨͺΨ¨Ψ© Ψ§Ω„Ψ΄Ψ§Ω…Ω„Ψ© (shamela.ws), including the project maintainers, contributors, transcribers, supporters, and sponsors who have worked over many years to make this remarkable resource available. May Allah reward them abundantly and accept their efforts.


πŸ“… Disclaimer

This dataset is based on exported data from Shamela Library software synced withShamela.ws in June 2025. Please note that the Shamela Library may add or remove entries at any time, and this dataset may not reflect future updates.


πŸ“– Citation

If you use this dataset, please cite it as:

@dataset{shamela_books_text,
  title = {Shamela Books Text},
  author = {MoMonir},
  year = {2025},
  url = {https://huggingface.co/datasets/MoMonir/shamela_books_text}
}