File size: 2,691 Bytes
6b97955
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
---
license: mit
pretty_name: Bo-Chapter-Benchmark
language:
- bo
task_categories:
- token-classification
tags:
- tibetan
- chapter
- layer-detection
- bio
- mmbert
- openpecha
- benchmark
configs:
- config_name: default
  data_files:
  - split: test
    path: data/test-*
---

# Bo-Chapter-Benchmark

The public test set for the Chapter layer (ལེའུ་, chapter and section headings) of Tibetan Buddhist books: 36 books, 940 windows, 258 Chapter spans. Score a model on it and compare with others on the same books. The training and validation data are not published.

## Format

| item | value |
|---|---|
| tokenizer | `jhu-clsp/mmBERT-base` (fast, with offsets) |
| labels | `O` = 0, `B-CHAPTER` = 1, `I-CHAPTER` = 2; CLS, SEP and padding = -100 |
| columns | `input_ids`, `attention_mask`, `labels`, `token_start`, `token_end`, `char_start`, `char_end`, `pecha_id`, `source_batch`, `window_index`, `n_tokens_doc`, `coverage_pct` |

A window holds 8,192 tokens (8,190 content tokens plus CLS and SEP) and starts every 5,120 tokens, so consecutive windows overlap by 3,070 content tokens. Tokens in the overlap are labelled in both windows. `token_start` and `token_end` give the window's token range in the book, and `char_start` and `char_end` its character range. `source_batch` is `old` or `new` (the two annotation batches).

## The test set

One split, `test`, made of whole books (a book is never split across train and test).

| split | books | old / new books | windows | Chapter spans | spans per window |
|---|---|---|---|---|---|
| test | 36 | 16 / 20 | 940 | 258 | 0.274 |

## Scoring

Span precision, recall and F1 at IoU >= 0.5, greedy one-to-one matching, with character offsets and an inclusive end. The scoring code is in the [GitHub repository](https://github.com/tenzinyonten/tibetan-layer-detection/tree/main/chapter). Score the test set once, after you have chosen your model on your own validation data.

## Data source

Source texts are BDRC books in OpenPecha `.opf` format; the Chapter spans come from the `Chapter` layer of those books, after the span cleaning described in the GitHub repository.

## Citation

```bibtex
@misc{bo_chapter_benchmark,
  title  = {Bo-Chapter-Benchmark: Tibetan chapter-heading test set},
  author = {Yonten, Tenzin},
  year   = {2026},
  url    = {https://huggingface.co/datasets/BDRC/Bo-Chapter-Benchmark}
}
```

## Acknowledgements

Source texts were digitized and made available by the [Buddhist Digital Resource Center (BDRC)](https://www.bdrc.io/). We gratefully acknowledge BDRC. Annotations were prepared through [OpenPecha](https://openpecha.org/) with support from the [Tsadra Foundation](https://www.tsadra.org/).