document_id stringlengths 36 36 | book_name_si stringlengths 0 46 | book_name_en stringclasses 6
values | source stringclasses 2
values | text stringlengths 7.92k 14.3M | language stringclasses 2
values |
|---|---|---|---|---|---|
a95aa297-ad7b-4cb2-92c9-a3f0de181271 | ඉතිහාසයේ අසිරිමත් ලේඛනය – මහාවංශය | IFBC | "38 මහින්දතට නම් ආරාමය සිවුපසයෙන් සමෘඬ (...TRUNCATED) | sinhala | |
25a0ec87-fda8-4142-9ac4-9181bfbc9fc1 | මිලින්ද ප්රශ්නය | IFBC | "එකල රජ්ජුරුවෝ ‘‘ස්වාමීනි, නාග- සෙනයන්(...TRUNCATED) | sinhala | |
a33c5ae5-2f68-4dec-810f-e384e25c61c3 | බුත්සරණ | IFBC | "එවේලෙහි පසේබුදුන් වහන්සේ තමන්වහන්සේ(...TRUNCATED) | sinhala | |
b249d4a8-b302-41d5-a880-4b265a549e29 | "විශුද්ධි මාර්ගය – බුද්ධඝෝෂ මාහිමියන(...TRUNCATED) | IFBC | "‛ආභරහත්ථක- අලංසාටක- තත්රවට්ටක-කාකමාස(...TRUNCATED) | sinhala | |
d2784821-86c6-467f-a2b7-6a3e6cd0b410 | විමානවස්තුව | IFBC | "නරවීර නිට්ඨිතා ශිල්ප දන්නවුන් විසින(...TRUNCATED) | sinhala | |
f0a868d9-b06b-41ca-9858-9e8ca77e2f35 | සද්ධර්ම රත්නාවලිය | IFBC | "ඒ බුදුහු පණස් රියන් උස ඇති සේක\nමෙ තෙක්(...TRUNCATED) | sinhala | |
232067db-0596-4f06-a43b-1ef7e76c8ef4 | පාළි භාෂා ශබ්දකෝෂය – | IFBC | "පුගොඩනැගිලි වර්ගයක්, පැලක් දික් ගේ\nප(...TRUNCATED) | sinhala | |
9f0a3a52-30f2-4844-becf-e9c16a903954 | සිංහල දීපවංශය | IFBC | "මෙය ම:ව:සඳහන් වී නැත\nමහරජ තුමනි, ක්රමව(...TRUNCATED) | sinhala | |
6db33a94-c51c-465f-b0eb-d7d382b67b3c | පංච මහා වාදය | IFBC | "වාතය නැත්නම් මනුෂ්යයන්ට සහ තිරිසනුන(...TRUNCATED) | sinhala | |
8ed49185-10a6-4bfd-b1d2-6ac47bcb442d | "අතිපූජ්ය රේරුකාණේ චන්දවිමල හිමි ච(...TRUNCATED) | IFBC | "ආදාහන පූජාවක් වශයෙන් කරනව නම් පිදිය ය(...TRUNCATED) | sinhala |
SiPaKosa-Books: Book-Level Sinhala-Pali Buddhist Corpus
This is the book-level version of the SiPaKosa dataset. Where SiPaKosa-Sent contains individual sentences, this dataset groups all sentences by book so each row represents one complete book's worth of text.
Related dataset (sentence-level): RaniduG/SiPaKosa-Sent
What's in here
| File | Description |
|---|---|
corpus/full_corpus.csv |
All records from SiPaKosa unified into a single flat file |
corpus/full_corpus.parquet |
Same as above in parquet format |
corpus/grouped_corpus.csv |
Text grouped and concatenated at book level |
corpus/grouped_corpus.parquet |
Same as above in parquet format |
Dataset Configs
| Config | Path | Description |
|---|---|---|
full_corpus |
corpus/full_corpus.csv | All sentences from both sinhala and mixed splits |
grouped_corpus |
corpus/grouped_corpus.csv | One row per book with full text concatenated |
Grouping Logic
For source == IFBC, text is grouped by book_name_si (Sinhala book name).
For source == Tripitaka, text is grouped by book_name_en (English book name).
Sentences within each book are joined with a newline character.
Columns
| Column | Description | Example |
|---|---|---|
document_id |
Unique UUID per row | 3f4a1b2c-... |
book_name_si |
Sinhala book name (IFBC only) | විශුද්ධිමාර්ගය |
book_name_en |
English book name (Tripitaka only) | Khuddaka Nikaya |
source |
Data source | IFBC or Tripitaka |
text |
Full book text (sentences joined by newline) | මා හට... |
language |
Language classification | sinhala or pali |
Quick Start
from datasets import load_dataset
# Load the grouped (book-level) corpus
ds = load_dataset("RaniduG/SiPaKosa-Books", "grouped_corpus")
print(ds["train"][0])
# Load the flat full corpus
full = load_dataset("RaniduG/SiPaKosa-Books", "full_corpus")
print(full["train"][0])
# Filter Tripitaka books only
import pandas as pd
df = pd.DataFrame(ds["train"])
tripitaka = df[df["source"] == "Tripitaka"]
ifbc = df[df["source"] == "IFBC"]
Relationship to SiPaKosa
The sentence-level dataset RaniduG/SiPaKosa-Sent contains:
- 786,344 total sentences
- Split into
sinhalaandmixedconfigs with train/validation/test splits - Columns include
sentence_id,book_category,book_name_si,book_name_en,source,text,language
This dataset (SiPaKosa-Books) is built directly from SiPaKosa by aggregating all text to book level. Use SiPaKosa for sentence-level tasks like classification or language modelling. Use SiPaKosa-Books for document-level tasks like retrieval, summarisation or RAG indexing.
Sources
- IFBC: 16 digitised historical Sinhala Buddhist books
- Tripitaka: 5 Nikayas scraped from tripitaka.online
License
MIT, for research purposes.
Paper
- Downloads last month
- 284