Dataset Viewer
Auto-converted to Parquet Duplicate
pecha_id
stringclasses
28 values
source_batch
stringclasses
3 values
window_index
int32
0
154
n_tokens_doc
int32
4.49k
793k
coverage_pct
float64
1.08
40
token_start
int32
0
785k
token_end
int32
4.49k
793k
char_start
int32
0
1.21M
char_end
int32
6.5k
1.22M
input_ids
listlengths
8.19k
8.19k
attention_mask
listlengths
8.19k
8.19k
labels
listlengths
8.19k
8.19k
I0FCFA88F
new
0
162,071
16.324085
0
8,190
0
11,905
[ 2, 149239, 244727, 122663, 237937, 164570, 238277, 71710, 237304, 240789, 239791, 238277, 152582, 193387, 241211, 238458, 103158, 196829, 35773, 237831, 237819, 214374, 238321, 80716, 241295, 238627, 238034, 122663, 237937, 237304, 240789, 239791, 2377...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
I0FCFA88F
new
1
162,071
16.324085
5,120
13,310
7,312
19,719
[ 2, 80716, 237819, 238451, 55610, 237831, 237819, 238277, 238679, 65616, 238627, 96625, 196829, 93673, 238547, 241027, 214374, 164570, 238277, 71710, 237819, 190316, 237819, 239791, 237780, 238679, 65616, 96625, 238451, 55610, 238321, 80716, 238134, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
I0FCFA88F
new
2
162,071
16.324085
10,240
18,430
15,014
27,489
[2,238627,175596,238134,241796,237937,35773,237937,237304,241796,238277,65616,236215,238451,219468,2(...TRUNCATED)
[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1(...TRUNCATED)
[-100,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(...TRUNCATED)
I0FCFA88F
new
3
162,071
16.324085
15,360
23,550
22,845
35,130
[2,241027,49513,164570,65616,96625,240594,237780,49513,238134,242610,103158,238808,83979,237819,8071(...TRUNCATED)
[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1(...TRUNCATED)
[-100,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(...TRUNCATED)
I0FCFA88F
new
4
162,071
16.324085
20,480
28,670
30,580
42,693
[2,238451,241211,238034,49513,238808,35773,237304,243472,239791,224669,118089,185434,237937,239791,2(...TRUNCATED)
[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1(...TRUNCATED)
[-100,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(...TRUNCATED)
I0FCFA88F
new
5
162,071
16.324085
25,600
33,790
38,219
50,289
[2,238277,71710,237831,240594,55610,237819,111066,237304,242610,49513,237937,96625,238679,242896,966(...TRUNCATED)
[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1(...TRUNCATED)
[-100,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(...TRUNCATED)
I0FCFA88F
new
6
162,071
16.324085
30,720
38,910
45,782
57,839
[2,238547,169526,241905,238458,83979,238547,241295,239791,224669,241198,111088,240767,214374,237831,(...TRUNCATED)
[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1(...TRUNCATED)
[-100,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(...TRUNCATED)
I0FCFA88F
new
7
162,071
16.324085
35,840
44,030
53,296
65,429
[2,237831,238627,238277,83979,118089,238451,224669,93673,240268,48790,237819,103158,237304,243947,12(...TRUNCATED)
[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1(...TRUNCATED)
[-100,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(...TRUNCATED)
I0FCFA88F
new
8
162,071
16.324085
40,960
49,150
60,890
73,065
[2,103158,238679,65616,238034,122663,196829,238627,219468,238451,48790,238547,214310,238277,238321,2(...TRUNCATED)
[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1(...TRUNCATED)
[-100,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(...TRUNCATED)
I0FCFA88F
new
9
162,071
16.324085
46,080
54,270
68,442
80,554
[2,242610,103158,238134,240980,238034,80716,237831,48790,238134,243259,238034,238679,65616,35773,237(...TRUNCATED)
[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1(...TRUNCATED)
[-100,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(...TRUNCATED)
End of preview. Expand in Data Studio

Bo-Tsawa-Benchmark

The public test set for Tsawa (རྩ་བ་, root text) detection in Tibetan commentaries: 28 books, 1,273 windows, 6,373 spans. Score a model on it and compare with others on the same books. The training and validation data are not published.

Format

Tokenized with jhu-clsp/mmBERT-base. Windows of 8,192 tokens, stride 5,120. Labels: O = 0, B-TSAWA = 1, I-TSAWA = 2, -100 = special tokens, padding and masked tokens. A token gets B if a span starts in it, I for the following tokens of the span.

Columns: pecha_id, source_batch, window_index, n_tokens_doc, coverage_pct, token_start, token_end, char_start, char_end, input_ids, attention_mask, labels.

Span ends follow the shad-inside convention: a span includes its closing shad. Repeated verses in the classical commentaries are masked (-100).

The test set

One split, test.

part books windows spans source
BDRC commentaries 22 639 1,976 BDRC volumes, OpenPecha .opf format, annotated by people
Classical commentaries 6 634 4,397 WeBuddhist *-rails repositories; labels from the root-verse links
Total 28 1,273 6,373

The source_batch column tells the parts apart: old and new are BDRC books, classical is a WeBuddhist commentary. The six classical books are one commentary on each of six root texts: the Vinaya sutra, the Pramāṇavārttika, the Madhyamakāvatāra, the Abhidharmakośa, the Bodhicaryāvatāra and the Mahāyānasūtrālaṃkāra.

Books config (plain text)

The default config holds token ids for jhu-clsp/mmBERT-base. To score a model with a different tokenizer, or an LLM, use the books config: one row per book with the exact text and the gold spans.

Column Meaning
pecha_id the book (WB… ids are the classical commentaries)
source_batch old, new or classical
text the full text of the book
doc_chars length of the text in characters
spans the gold Tsawa spans: a list of {id, start, end}
ignore_spans classical books only: repeated verses that are masked (-100) in the windows and not scored. A list of {start, end, reason}.

start is the first character of the span and end is one past its last character, so the span is text[start:end].

For the 22 BDRC books (old and new) the spans are read back from the published window labels, because Tsawa is scored in token space. Their edges therefore sit on mmBERT token boundaries and can differ by a character or two from the annotators' original offsets. The 6 classical books carry the original character spans. Tokenizing text with jhu-clsp/mmBERT-base and labelling it with these spans (and masking the ignore spans) gives back the window rows exactly: token ids and labels.

from datasets import load_dataset
books = load_dataset("BDRC/Bo-Tsawa-Benchmark", "books", split="test")

Scoring

Span precision, recall and F1 at IoU ≥ 0.5 in token space, greedy one-to-one matching, Viterbi decoding (only legal B/I transitions). Do not decode with argmax. Overlapping windows count a span in each window. Score the test set once, after you have chosen your model on your own validation data.

Citation

@misc{bo_tsawa_benchmark,
  title  = {Bo-Tsawa-Benchmark: Tibetan Tsawa test set},
  author = {Yontenn},
  year   = {2026},
  url    = {https://huggingface.co/datasets/BDRC/Bo-Tsawa-Benchmark}
}

Acknowledgements

Source texts were digitized and made available by the Buddhist Digital Resource Center (BDRC). We gratefully acknowledge BDRC. Annotations were prepared through OpenPecha with support from the Tsadra Foundation. The classical commentaries come from the public WeBuddhist repositories.

Downloads last month
38