Dataset Viewer
Auto-converted to Parquet Duplicate
id
stringlengths
36
36
collection
stringclasses
8 values
filename
stringlengths
4
67
text
stringlengths
0
1.61M
char_count
int64
0
1.61M
2ffeeb20-7b11-46f5-9c1b-a290bf943539
Bon Kangyur
I4PD3972
"གསུང་རབ་སྒོ་མཛོད་རིན་པོ་ཆེའི་གླེག(...TRUNCATED)
423,273
5a5507e9-bb18-4d6b-a697-cf1c09eaa959
Bon Kangyur
I4PD3973
"གསུང་རབ་སྒོ་མཛོད་རིན་པོ་ཆེའི་གླེག(...TRUNCATED)
541,481
8a517c6d-766a-4997-8931-6ed47825e5d1
Bon Kangyur
I4PD3974
"གསུང་རབ་སྒོ་མཛོད་རིན་པོ་ཆེའི་གླེག(...TRUNCATED)
433,107
99200cfc-e099-4f7a-9b46-86961b41d380
Bon Kangyur
I4PD3975
"གལསབརྒསསྒྲོསསྨརྗ ༈ཕནམཔོ་ཆ་འདཟ་བཅའ (...TRUNCATED)
436,823
37c31cca-d0e7-4207-96dd-abffce9d4d25
Bon Kangyur
I4PD3976
"གསུང་རབ་སྒོ་འཇུག་རིན་པོ་ཆེན་གླེགས(...TRUNCATED)
565,882
c1d48d15-8f66-4a58-ae31-8b5be0adcadd
Bon Kangyur
I4PD3977
"གསུང་རབ་སྒོ་མཛོད་རིན་པོ་ཆེའི་གླེག(...TRUNCATED)
564,011
5e2830ce-c2c3-45b5-b237-f92a95469bf0
Bon Kangyur
I4PD3978
"གསུང་རབ་སྒོ་མཛོད་རིན་པོ་ཆེའི་གླེག(...TRUNCATED)
429,840
e82b3ecf-be60-4915-bccd-302e4a517d3d
Bon Kangyur
I4PD3979
"གསུང་རབ་སྒོ་མཛོད་རིན་པོ་ཆེའི་གླེག(...TRUNCATED)
435,624
dcb9be6a-7d9c-424f-ae8a-cb5df184bfba
Bon Kangyur
I4PD3980
"གསུང་རབ་སྒོ་མཛོད་རིན་པོ་ཆེའི་གླེག(...TRUNCATED)
444,047
8d26f5b9-a528-4eaf-86bf-5ac51bb42129
Bon Kangyur
I4PD3981
"གསུང་རབ་སྒོ་མཛོད་རིིན་པོ་ཆེའི་གླེ(...TRUNCATED)
593,264
End of preview. Expand in Data Studio

BoCorpus

A comprehensive Tibetan corpus dataset for language model training and NLP research.

Dataset Description

BoCorpus is a curated collection of classical Tibetan texts compiled from multiple digital collections. The dataset is designed for training language models and conducting research in Tibetan natural language processing.

Collections Included

The corpus contains texts from the following collections:

  • Bon Kangyur: 151 texts
  • Derge Kangyur: 103 texts
  • Derge Tengyur: 213 texts
  • DharmaEbook: 98 texts
  • Pagen Project: 1 texts
  • Tsadra Collection: 266 texts
  • འབྲི་ལུགས་བང་མཛོད་སྐོར་ལྔ།: 136 texts
  • རིན་ཆེན་གཏེར་མཛོད་ཆེན་མོ།: 71 texts

Data Statistics

  • Total records: 1039
  • Total characters: 603,325,999
  • Average characters per text: 580,679

Dataset Schema

Column Type Description
id string Unique UUID4 identifier for each record
collection string Name of the source collection
filename string Original filename (without extension)
text string Full text content with all line breaks removed
char_count int64 Total number of characters in the text

Usage

Loading with HuggingFace Datasets

from datasets import load_dataset

dataset = load_dataset("openpecha/BoCorpus", split="train")

# Access a single example
example = dataset[0]
print(f"Collection: {example['collection']}")
print(f"Characters: {example['char_count']}")
print(f"Text preview: {example['text'][:100]}...")

Loading with Pandas

import pandas as pd

df = pd.read_parquet("bo_corpus.parquet")
print(df.head())

Loading with PyArrow

import pyarrow.parquet as pq

table = pq.read_table("bo_corpus.parquet")
df = table.to_pandas()

Data Preparation

The texts in this dataset have undergone the following preprocessing:

  1. Newline removal: All newline characters (\n) are removed to create continuous text strings
  2. UUID assignment: Each text receives a unique UUID4 identifier
  3. Character counting: Total character count is computed for each text
  4. Collection tagging: Each record is tagged with its source collection name

Citation

If you use this dataset in your research, please cite:

@dataset{bocorpus,
  title = {BoCorpus: A Tibetan Text Corpus},
  author = {OpenPecha},
  year = {2024},
  url = {https://huggingface.co/openpecha/BoCorpus}
}

License

This dataset is released under the MIT License.

Acknowledgments

This corpus was prepared by OpenPecha as part of their mission to make Tibetan Buddhist texts accessible for digital research and AI applications.

Downloads last month
21