karma689 commited on
Commit
d803265
·
verified ·
1 Parent(s): 2c7fa34

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +58 -36
README.md CHANGED
@@ -1,26 +1,20 @@
1
  ---
 
 
2
  license: mit
3
  task_categories:
4
  - image-classification
5
- language:
6
- - bo
7
  tags:
8
  - tibetan
9
  - manuscript
10
  - script-classification
11
- - bdrc
12
  - benchmark
 
 
13
  size_categories:
14
  - n<1K
15
- configs:
16
- - config_name: default
17
- data_files:
18
- - split: test
19
- path: "test-*.parquet"
20
- splits:
21
- - name: test
22
- num_examples: 360
23
- features:
24
  - name: id
25
  dtype: string
26
  - name: image_bytes
@@ -35,46 +29,74 @@ configs:
35
  '3': Pedri
36
  '4': Tsugdri
37
  '5': Uchen
38
- - name: script_type
39
- dtype: string
 
 
 
 
 
 
 
 
 
40
  ---
41
 
42
- # tibetan-script-classification-benchmark
43
 
44
- Tibetan manuscript script-classification **benchmark** — a curated holdout evaluation
45
- set of 360 page scans across 6 script classes from the
46
- [Buddhist Digital Resource Center](https://www.bdrc.io) (BDRC).
47
 
48
- This dataset is **evaluation-only** (single `test` split). It is not used for training.
 
 
 
 
 
 
 
49
 
50
- ## Class distribution
51
 
52
- | Class | Images | Works | Subclass breakdown |
53
- |-------|-------:|------:|-------------------|
54
- | Danyig | 60 | 57 | DraDring: 26 / DraRing: 8 / Drathung: 17 / Gongshabma: 3 / Tsegdrig: 6 |
55
- | Druma | 60 | 54 | Dhumri: 22 / DruDring: 20 / DruRing: 10 / Druchen: 2 / Druthung: 6 |
56
- | Gyuyig | 60 | 57 | Khyuyig: 31 / Tsumachug: 15 / Yigchung: 14 |
57
- | Pedri | 60 | 60 | Peri: 44 / Petsuk: 16 |
58
- | Tsugdri | 60 | 55 | Trinyig: 36 / Tsugchung: 14 / Tsugthung: 10 |
59
- | Uchen | 60 | 57 | Uchen SugDring: 53 / Uchen SugRing: 3 / Uchen Sugthung: 4 |
60
- | **Total** | **360** | | |
61
 
62
- Each class contributes up to **60 BDRC pages** from unique manuscripts
63
- (one page per work_id). Pages target **equal distribution across subclasses**; subclasses with fewer available manuscripts contribute their full capacity.
 
 
 
64
 
65
- ## Usage
66
 
67
  ```python
68
  from datasets import load_dataset
69
 
70
  ds = load_dataset("BDRC/tibetan-script-classification-benchmark", split="test")
71
- # ds[0] → {'id': '...', 'image_bytes': ..., 'script': 'Uchen', 'script_type': 'Uchen SugDring'}
 
 
 
 
 
 
 
 
 
 
72
  ```
73
 
74
- ## License
75
 
76
- Images taken from the open access collection of the Buddhist Digital Resource Center. Not all images are in the public domain, some are from recent publications possibly under copyright. We provide the images under the Fair Use copyright exception, but any reuse of this dataset will have to be based on a copyright analysis. We provide the classification data under the CC0 1.0 Universal (Public Domain Dedication).
 
 
 
 
 
 
 
 
77
 
78
  ## Acknowledgements
79
 
80
- All images are provided by the Buddhist Digital Resource Center (BDRC). This dataset was developed by Dharmaduta from specifications provided by BDRC for the project "The BDRC Etext Corpus", with funding from the Khyentse Foundation. **[Buddhist Digital Resource Center](https://www.bdrc.io)** (BDRC). Developed by Dharmaduta / OpenPecha.
 
1
  ---
2
+ language:
3
+ - bo
4
  license: mit
5
  task_categories:
6
  - image-classification
 
 
7
  tags:
8
  - tibetan
9
  - manuscript
10
  - script-classification
 
11
  - benchmark
12
+ - bdrc
13
+ pretty_name: Tibetan Script Classification Benchmark
14
  size_categories:
15
  - n<1K
16
+ dataset_info:
17
+ features:
 
 
 
 
 
 
 
18
  - name: id
19
  dtype: string
20
  - name: image_bytes
 
29
  '3': Pedri
30
  '4': Tsugdri
31
  '5': Uchen
32
+ splits:
33
+ - name: test
34
+ num_bytes: 0
35
+ num_examples: 360
36
+ download_size: 0
37
+ dataset_size: 0
38
+ configs:
39
+ - config_name: default
40
+ data_files:
41
+ - split: test
42
+ path: "test.parquet"
43
  ---
44
 
45
+ # Tibetan Script Classification Benchmark
46
 
47
+ Holdout benchmark for 6-class Tibetan script classification. **Test split only** — not used during training.
48
+ All images are BDRC manuscript page scans, balanced by subclass.
 
49
 
50
+ | Class | Images | Subclasses |
51
+ |-------|-------:|-----------|
52
+ | **Danyig** | 60 | DraDring: 25, DraRing: 9, Drathung: 17, Gongshabma: 3, Tsegdrig: 6 |
53
+ | **Druma** | 60 | Dhumri: 22, DruDring: 20, DruRing: 10, Druchen: 2, Druthung: 6 |
54
+ | **Gyuyig** | 60 | Khyuyig: 31, Tsumachug: 15, Yigchung: 14 |
55
+ | **Pedri** | 60 | Peri: 44, Petsuk: 16 |
56
+ | **Tsugdri** | 60 | Trinyig: 36, Tsugchung: 14, Tsugthung: 10 |
57
+ | **Uchen** | 60 | Uchen SugDring: 53, Uchen SugRing: 3, Uchen Sugthung: 4 |
58
 
59
+ **Total: 360 images** across 6 classes.
60
 
61
+ ## Parquet schema
 
 
 
 
 
 
 
 
62
 
63
+ | Column | Type | Description |
64
+ |--------|------|-------------|
65
+ | `id` | string | BDRC page id (e.g. `W00KG09391-I00KG093950005`) |
66
+ | `image_bytes` | binary | JPEG/PNG page image |
67
+ | `script` | string | One of: `Danyig`, `Druma`, `Gyuyig`, `Pedri`, `Tsugdri`, `Uchen` |
68
 
69
+ ## Load in Python
70
 
71
  ```python
72
  from datasets import load_dataset
73
 
74
  ds = load_dataset("BDRC/tibetan-script-classification-benchmark", split="test")
75
+ print(len(ds)) # 360
76
+
77
+ row = ds[0]
78
+ # row["id"], row["image_bytes"], row["script"]
79
+ ```
80
+
81
+ ## Evaluate a model
82
+
83
+ ```python
84
+ from experiments.benchmark_eval.eval import run_benchmark
85
+ run_benchmark(model, repo_id="BDRC/tibetan-script-classification-benchmark")
86
  ```
87
 
88
+ ## Citation
89
 
90
+ ```bibtex
91
+ @misc{bdrcscriptbenchmark,
92
+ title = {Tibetan Script Classification Benchmark},
93
+ author = {Buddhist Digital Resource Center and OpenPecha},
94
+ year = {2026},
95
+ url = {https://huggingface.co/datasets/BDRC/tibetan-script-classification-benchmark},
96
+ note = {Images from BDRC. MIT.}
97
+ }
98
+ ```
99
 
100
  ## Acknowledgements
101
 
102
+ Images from the **[Buddhist Digital Resource Center](https://www.bdrc.io)** (BDRC). Developed by **Dharmaduta** / **OpenPecha**.