karma689 commited on
Commit
21de484
·
verified ·
1 Parent(s): ac50731

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +111 -53
README.md CHANGED
@@ -8,70 +8,128 @@ pretty_name: Tibetan Annotation Layer Detection
8
  tags:
9
  - tibetan
10
  - openpecha
 
11
  - ner
12
  - quotation
13
  - span-detection
 
14
  size_categories:
15
  - n<1K
16
- source_datasets:
17
- - tsadra/OpenPecha
18
- configs:
19
- - config_name: default
20
- data_files:
21
- - split: train
22
- path: data/train-*
23
- - split: validation
24
- path: data/validation-*
25
- - split: test
26
- path: data/test-*
27
- dataset_info:
28
- features:
29
- - name: book_id
30
- dtype: string
31
- - name: text
32
- dtype: string
33
- - name: spans
34
- list:
35
- - name: start
36
- dtype: int64
37
- - name: end
38
- dtype: int64
39
- - name: label
40
- dtype: string
41
- - name: in_scope_layers
42
- list: string
43
- splits:
44
- - name: train
45
- num_bytes: 152593843
46
- num_examples: 217
47
- - name: validation
48
- num_bytes: 19880985
49
- num_examples: 25
50
- - name: test
51
- num_bytes: 24788889
52
- num_examples: 24
53
- download_size: 57723916
54
- dataset_size: 197263717
55
  ---
56
 
57
  # Tibetan Annotation Layer Detection
58
 
59
- Book-level dataset for multi-layer span detection in classical Tibetan texts (OpenPecha / tsadra). Each row is one book: raw text + cleaned character-offset spans across seven modeled annotation layers.
 
 
 
60
 
61
- ## Schema
 
62
 
63
- | Column | Type | Description |
64
- |---|---|---|
65
- | `book_id` | string | OpenPecha book id (e.g. `P000010`) |
66
- | `text` | string | Full book text (`base/v001.txt`) |
67
- | `spans` | list of `{{start, end, label}}` | Inclusive character offsets; label is one of `QUOTATION`, `SABCHE`, `TSAWA`, `YIGCHUNG`, `CHAPTER`, `AUTHOR`, `BOOKTITLE` |
68
- | `in_scope_layers` | list of string | Layers this book is in-scope for (absent spans are trustworthy negatives) |
69
 
70
- Splits: `train` / `validation` / `test` (book-level stratified split; never split inside a book).
71
 
72
- ## Data quality notes
 
 
73
 
74
- - **512 invalid spans dropped** (480 Quotation, 30 Chapter, 2 Yigchung) — all `inverted_empty_start_eq_end_plus_1`; none recoverable.
75
- - **Citation excluded** — only 2 books, 88% invalid.
76
- - **Author / BookTitle** are in model scope experimentally (~1 span/book); may be demoted to metadata-only if they underperform.
77
- - Spans are **not** pre-combined into BIO tags — overlapping spans are preserved at full fidelity; priority resolution happens at training time.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  tags:
9
  - tibetan
10
  - openpecha
11
+ - tsadra
12
  - ner
13
  - quotation
14
  - span-detection
15
+ - buddhist-studies
16
  size_categories:
17
  - n<1K
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  ---
19
 
20
  # Tibetan Annotation Layer Detection
21
 
22
+ 266 annotated Classical Tibetan books with seven annotation layers — Quotation,
23
+ Sabche, Tsawa, Yigchung, Chapter, Author, BookTitle — stored as character-offset
24
+ spans over a flat base text. Each row is one book: `book_id`, `text`, `spans`
25
+ (`{start, end, label}`), and `in_scope_layers`.
26
 
27
+ Book-level split: **217 train / 25 validation / 24 test**. A book is never split
28
+ across partitions.
29
 
30
+ This revision (`v1.1`) is a span-level clean of `v1.0`. Texts, book membership,
31
+ split assignment, and split order are unchanged.
 
 
 
 
32
 
33
+ ## What changed in v1.1
34
 
35
+ Every span with `start == end` was dropped, on all seven layers. No other spans
36
+ were removed. Impossible geometries (`start > end`, negative offsets, offsets
37
+ beyond the book text) were scanned and **none were found**.
38
 
39
+ Character mass uses inclusive length `end - start + 1` (see caveat below).
40
+
41
+ | Layer | Spans before | Spans after | Removed | Char mass before | Char mass after |
42
+ |---|---:|---:|---:|---:|---:|
43
+ | Quotation | 24,730 | 24,722 | 8 | 3,415,105 | 3,415,097 |
44
+ | Sabche | 18,847 | 18,845 | 2 | 1,608,291 | 1,608,289 |
45
+ | Tsawa | 6,845 | 6,811 | 34 | 1,285,298 | 1,285,264 |
46
+ | Yigchung | 9,025 | 8,804 | 221 | 841,535 | 841,314 |
47
+ | Chapter | 1,637 | 1,637 | 0 | 94,724 | 94,724 |
48
+ | Author | 311 | 311 | 0 | 12,160 | 12,160 |
49
+ | BookTitle | 266 | 266 | 0 | 21,938 | 21,938 |
50
+ | **Total** | **61,661** | **61,396** | **265** | **7,279,051** | **7,278,786** |
51
+
52
+ All 265 removals were `start == end`. 43 books lost at least one span:
53
+
54
+ | Book | Spans removed |
55
+ |---|---:|
56
+ | P000036 | 58 |
57
+ | P000140 | 33 |
58
+ | P000236 | 21 |
59
+ | P000275 | 20 |
60
+ | P000087 | 16 |
61
+ | P000123 | 14 |
62
+ | P000153 | 14 |
63
+ | P000195 | 8 |
64
+ | P000138 | 6 |
65
+ | P000073 | 5 |
66
+ | P000132 | 5 |
67
+ | P000174 | 4 |
68
+ | P000030 | 4 |
69
+ | P000034 | 3 |
70
+ | P000037 | 3 |
71
+ | P000054 | 3 |
72
+ | P000089 | 3 |
73
+ | P000119 | 3 |
74
+ | P000130 | 3 |
75
+ | P000152 | 3 |
76
+ | P000159 | 3 |
77
+ | P000010 | 3 |
78
+ | P000011 | 3 |
79
+ | P000171 | 3 |
80
+ | P000218 | 3 |
81
+ | P000055 | 2 |
82
+ | P000199 | 2 |
83
+ | P000230 | 2 |
84
+ | P000021 | 1 |
85
+ | P000028 | 1 |
86
+ | P000050 | 1 |
87
+ | P000051 | 1 |
88
+ | P000096 | 1 |
89
+ | P000126 | 1 |
90
+ | P000156 | 1 |
91
+ | P000175 | 1 |
92
+ | P000203 | 1 |
93
+ | P000207 | 1 |
94
+ | P000216 | 1 |
95
+ | P000224 | 1 |
96
+ | P000258 | 1 |
97
+ | P000151 | 1 |
98
+ | P000246 | 1 |
99
+
100
+ `v1.0` remains reachable as the `v1.0` tag (commit `aaa17607`).
101
+
102
+ ## Why
103
+
104
+ `start == end` spans are zero-length or one-character stray marks, not real
105
+ annotations. The previous validator only checked geometric coherence (negative,
106
+ inverted, out of bounds), so these passed silently.
107
+
108
+ ## Flagged books (zero spans for an in-scope layer)
109
+
110
+ These books are **retained**. Their in-scope layer with no remaining spans is
111
+ unresolved — they are not dropped from the split.
112
+
113
+ - **P000218** (test): 847,725 characters; had 3 Quotation spans, all `start == end`.
114
+ After this clean it has **no Quotation annotation at all**, while still marked
115
+ in-scope for Quotation.
116
+ - **P000126** (train): already had **zero** Quotation spans while marked in-scope.
117
+ Unchanged by this clean (one non-Quotation `start == end` span was dropped).
118
+
119
+ No other in-scope layer on any book went to zero spans as a result of this clean.
120
+
121
+ ## Known remaining issues (not fixed here)
122
+
123
+ - Some books have very low annotation density relative to their length.
124
+ - Some books have large positional gaps with no annotation.
125
+ - Damage has only been systematically examined for **Quotation**. The other six
126
+ layers were cleaned of `start == end` here but have not been inspected for
127
+ density or gaps.
128
+ - No minimum-length rule, density filter, or gap detection was applied.
129
+
130
+ The offset convention (inclusive vs half-open) has not been independently verified.
131
+
132
+ ## License
133
+
134
+ Packaging, split, and this clean are released under CC0 1.0. Underlying texts and
135
+ original annotations come from OpenPecha / Tsadra; per-book source licenses vary.