Urdatorn Claude Opus 5 commited on
Commit
eaebf86
·
1 Parent(s): 13ef6e2

Replace the 100-row task with a 5-row task and admit 11 more authors

Browse files

The 100-row eligibility bar excluded eleven authors that clear 50 comfortably,
most of them by a hair: Euripides had 79 validation and 79 test rows, Aristotle
87, Lysias 97. A closed set that omits Euripides and Aristotle is hard to
defend when the only thing keeping them out is a threshold.

Both publications now define 1-, 5-, 10- and 50-row tasks. The bottleneck moves
to 50, the largest chunk, so every retained author still has at least one
complete chunk of every task size in validation and in test, and every smaller
size divides 50, which is what lets one retained row set fill all four tasks.

Sphragis grows from 17 to 28 authors and from 43,300 to 50,500 training rows,
gaining Aeschines, Antiphon, Appian, Aristotle, Euripides, Hesiod, Lucian,
Lysias, Menander, Paul and Sextus Empiricus. The source-held-out track grows
from 11 to 12. Sphragis Metre gains Tryphiodorus.

The cost is that the thinnest authors now have a single 50-row chunk in test,
so their per-author accuracy on the 50-row task is either 0% or 100%. The
smaller task sizes are unaffected.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

Files changed (38) hide show
  1. README.md +65 -47
  2. data/sentence_1/test-00000-of-00001.parquet +2 -2
  3. data/sentence_1/train-00000-of-00001.parquet +2 -2
  4. data/sentence_1/validation-00000-of-00001.parquet +2 -2
  5. data/sentence_10/test-00000-of-00001.parquet +2 -2
  6. data/sentence_10/train-00000-of-00001.parquet +2 -2
  7. data/sentence_10/validation-00000-of-00001.parquet +2 -2
  8. data/{sentence_100 → sentence_5}/test-00000-of-00001.parquet +2 -2
  9. data/{sentence_100 → sentence_5}/train-00000-of-00001.parquet +2 -2
  10. data/{source_held_out_100 → sentence_5}/validation-00000-of-00001.parquet +2 -2
  11. data/sentence_50/test-00000-of-00001.parquet +2 -2
  12. data/sentence_50/train-00000-of-00001.parquet +2 -2
  13. data/sentence_50/validation-00000-of-00001.parquet +2 -2
  14. data/source_held_out_1/test-00000-of-00001.parquet +2 -2
  15. data/source_held_out_1/train-00000-of-00001.parquet +2 -2
  16. data/source_held_out_1/validation-00000-of-00001.parquet +2 -2
  17. data/source_held_out_10/test-00000-of-00001.parquet +2 -2
  18. data/source_held_out_10/train-00000-of-00001.parquet +2 -2
  19. data/source_held_out_10/validation-00000-of-00001.parquet +2 -2
  20. data/{source_held_out_100 → source_held_out_5}/test-00000-of-00001.parquet +2 -2
  21. data/{source_held_out_100 → source_held_out_5}/train-00000-of-00001.parquet +2 -2
  22. data/{sentence_100 → source_held_out_5}/validation-00000-of-00001.parquet +2 -2
  23. data/source_held_out_50/test-00000-of-00001.parquet +2 -2
  24. data/source_held_out_50/train-00000-of-00001.parquet +2 -2
  25. data/source_held_out_50/validation-00000-of-00001.parquet +2 -2
  26. inspection/sphragis.sqlite +2 -2
  27. metadata/build_report.json +111 -79
  28. metadata/dataset_variants.json +0 -0
  29. metadata/leakage_report.json +82 -82
  30. scripts/audit_leakage.py +2 -2
  31. scripts/build_dataset.py +24 -7
  32. scripts/build_sqlite_mirror.py +3 -3
  33. scripts/dataset_variants.py +7 -4
  34. scripts/validate_publication.py +1 -1
  35. tests/test_conllu_well_formed.py +4 -4
  36. tests/test_model_facing.py +1 -1
  37. tests/test_split_stratification.py +14 -11
  38. tests/test_verse_character_coverage.py +3 -3
README.md CHANGED
@@ -35,14 +35,14 @@ configs:
35
  path: data/sentence_50/validation-*
36
  - split: test
37
  path: data/sentence_50/test-*
38
- - config_name: sentence_100
39
  data_files:
40
  - split: train
41
- path: data/sentence_100/train-*
42
  - split: validation
43
- path: data/sentence_100/validation-*
44
  - split: test
45
- path: data/sentence_100/test-*
46
  - config_name: source_held_out_1
47
  data_files:
48
  - split: train
@@ -67,14 +67,14 @@ configs:
67
  path: data/source_held_out_50/validation-*
68
  - split: test
69
  path: data/source_held_out_50/test-*
70
- - config_name: source_held_out_100
71
  data_files:
72
  - split: train
73
- path: data/source_held_out_100/train-*
74
  - split: validation
75
- path: data/source_held_out_100/validation-*
76
  - split: test
77
- path: data/source_held_out_100/test-*
78
  ---
79
 
80
  # Sphragis
@@ -85,7 +85,7 @@ configs:
85
  prose and verse authorship attribution (AA). Its input is the complete curated
86
  union of the human-annotated [CoNLL-U](https://universaldependencies.org/format.html)
87
  trees in the supported treebank projects, including lemma, part of speech,
88
- morphology, and dependency relations. It defines 1-, 10-, 50-, and 100-sentence
89
  attribution tasks. The complementary scanned-line benchmark is published
90
  separately as [`Urdatorn/sphragis-metre`](https://huggingface.co/datasets/Urdatorn/sphragis-metre).
91
 
@@ -114,31 +114,32 @@ to the main track in consequence.
114
 
115
  | Configuration | Authors | Row unit | Train rows | Validation rows | Test rows |
116
  |---|---:|---|---:|---:|---:|
117
- | `sentence_1` | 17 | sentence | 43,300 | 4,800 | 4,800 |
118
- | `sentence_10` | 17 | 10-sentence chunk | 4,330 | 480 | 480 |
119
- | `sentence_50` | 17 | 50-sentence chunk | 866 | 96 | 96 |
120
- | `sentence_100` | 17 | 100-sentence chunk | 433 | 48 | 48 |
121
- | `source_held_out_1` | 11 | sentence | 25,100 | 4,200 | 4,200 |
122
- | `source_held_out_10` | 11 | 10-sentence chunk | 2,510 | 420 | 420 |
123
- | `source_held_out_50` | 11 | 50-sentence chunk | 502 | 84 | 84 |
124
- | `source_held_out_100` | 11 | 100-sentence chunk | 251 | 42 | 42 |
125
 
126
  The `source_held_out_*` configurations use the same rows, the same chunk sizes
127
  and the same 100-row bottleneck, over the eleven authors that more than one
128
  project annotates. Two of them, Hesiod and Lucian, do not reach the main
129
  track's threshold under random splitting but do under this arrangement.
130
 
131
- The suffix gives the chunk size in every split. `_100` defines one shared
132
- source corpus for all four tasks: an author is retained
133
- only when that author independently has at least 100 source rows in **both**
134
- validation and test, and every split is reduced to a multiple of 100 source
135
- rows per author. `_1` publishes the shared rows atomically, while `_10`, `_50`,
136
- and `_100` regroup those exact same train, validation, and test rows into fixed
 
137
  benchmark chunks. Thus author inventory and total source text are identical
138
  across task sizes.
139
 
140
  Source-row selection uses seed `776`. For each retained author and split, the
141
- unavoidable `n mod 100` source rows are selected for exclusion once by a stable
142
  hash. The shared retained rows are put into their best available textual order
143
  within each work for each chunking task. Complete single-work chunks are
144
  emitted first; only residual work tails are combined, and such rows are marked
@@ -150,28 +151,39 @@ Every row retains its treebank genre and provenance.
150
  ## Sentences per author label
151
 
152
  These are the exact retained atomic sentences in `sentence_1`. The same
153
- sentences are represented in the 10-, 50-, and 100-sentence configurations.
154
 
155
  | Author label | Train | Validation | Test | Total |
156
  |---|---:|---:|---:|---:|
157
- | Aeschylus | 2,600 | 300 | 300 | 3,200 (6.0%) |
158
- | Aristophanes | 1,400 | 100 | 100 | 1,600 (3.0%) |
159
- | Athenaeus | 1,900 | 200 | 200 | 2,300 (4.3%) |
160
- | Demosthenes | 2,400 | 300 | 300 | 3,000 (5.7%) |
161
- | Diodorus Siculus | 1,000 | 100 | 100 | 1,200 (2.3%) |
162
- | Dionysius of Halicarnassus | 800 | 100 | 100 | 1,000 (1.9%) |
163
- | Herodotus | 5,900 | 700 | 700 | 7,300 (13.8%) |
164
- | Homeric-Iliad | 6,200 | 700 | 700 | 7,600 (14.4%) |
165
- | Homeric-Odyssey | 4,800 | 600 | 600 | 6,000 (11.3%) |
166
- | Josephus | 800 | 100 | 100 | 1,000 (1.9%) |
167
- | Plato | 900 | 100 | 100 | 1,100 (2.1%) |
168
- | Plutarch | 1,300 | 100 | 100 | 1,500 (2.8%) |
169
- | Polybius | 3,000 | 300 | 300 | 3,600 (6.8%) |
170
- | Procopius | 900 | 100 | 100 | 1,100 (2.1%) |
171
- | Sophocles | 3,100 | 300 | 300 | 3,700 (7.0%) |
172
- | Thucydides | 900 | 100 | 100 | 1,100 (2.1%) |
173
- | Xenophon | 5,400 | 600 | 600 | 6,600 (12.5%) |
174
- | **All labels** | **43,300** | **4,800** | **4,800** | **52,900 (100.0%)** |
 
 
 
 
 
 
 
 
 
 
 
175
 
176
  ```python
177
  from datasets import load_dataset
@@ -184,10 +196,10 @@ sentences = load_dataset("Urdatorn/sphragis", "sentence_10")
184
  Splits use random seed `776` and begin with independent stratification within
185
  each author/work group: approximately 80% train, 10% validation and 10% test by
186
  row. Groups with 3–9 rows receive one validation and one test row; groups with
187
- fewer than three stay in training. The 100-row eligibility and remainder
188
  bottleneck is then applied to all
189
  four task sizes. The train, validation, and test source sets are all exact
190
- multiples of 100 per author. This makes the
191
  published source-row ratio slightly different from the initial 80/10/10 split.
192
  A stricter work-held-out evaluation can be added as a later track.
193
 
@@ -204,8 +216,8 @@ The `source_held_out_*` configurations remove that possibility by construction.
204
  For each author, the **second-largest** source project is held out entirely:
205
  its sentences become that author's validation and test data, split evenly, and
206
  every other project supplies training. An author is retained only when the
207
- held-out project yields at least 100 validation and 100 test rows and at least
208
- 100 training rows remain. A model that has learned to recognize annotators is
209
  actively penalized here, because every author arrives at evaluation in a scheme
210
  it was never trained in.
211
 
@@ -445,6 +457,12 @@ New Testament works are excluded.
445
  The *Iliad* and *Odyssey* are retained as distinct conventional corpora under
446
  the author labels `Homeric-Iliad` and `Homeric-Odyssey`; the labels do not claim
447
  a shared biographical author. Every work labelled `Fragments` is excluded.
 
 
 
 
 
 
448
  Machine-readable reasons and pre-deduplication counts are recorded in
449
  [`metadata/build_report.json`](metadata/build_report.json).
450
 
 
35
  path: data/sentence_50/validation-*
36
  - split: test
37
  path: data/sentence_50/test-*
38
+ - config_name: sentence_5
39
  data_files:
40
  - split: train
41
+ path: data/sentence_5/train-*
42
  - split: validation
43
+ path: data/sentence_5/validation-*
44
  - split: test
45
+ path: data/sentence_5/test-*
46
  - config_name: source_held_out_1
47
  data_files:
48
  - split: train
 
67
  path: data/source_held_out_50/validation-*
68
  - split: test
69
  path: data/source_held_out_50/test-*
70
+ - config_name: source_held_out_5
71
  data_files:
72
  - split: train
73
+ path: data/source_held_out_5/train-*
74
  - split: validation
75
+ path: data/source_held_out_5/validation-*
76
  - split: test
77
+ path: data/source_held_out_5/test-*
78
  ---
79
 
80
  # Sphragis
 
85
  prose and verse authorship attribution (AA). Its input is the complete curated
86
  union of the human-annotated [CoNLL-U](https://universaldependencies.org/format.html)
87
  trees in the supported treebank projects, including lemma, part of speech,
88
+ morphology, and dependency relations. It defines 1-, 5-, 10-, and 50-sentence
89
  attribution tasks. The complementary scanned-line benchmark is published
90
  separately as [`Urdatorn/sphragis-metre`](https://huggingface.co/datasets/Urdatorn/sphragis-metre).
91
 
 
114
 
115
  | Configuration | Authors | Row unit | Train rows | Validation rows | Test rows |
116
  |---|---:|---|---:|---:|---:|
117
+ | `sentence_1` | 28 | sentence | 50,500 | 5,650 | 5,650 |
118
+ | `sentence_5` | 28 | 5-sentence chunk | 10,100 | 1,130 | 1,130 |
119
+ | `sentence_10` | 28 | 10-sentence chunk | 5,050 | 565 | 565 |
120
+ | `sentence_50` | 28 | 50-sentence chunk | 1,010 | 113 | 113 |
121
+ | `source_held_out_1` | 12 | sentence | 28,500 | 4,550 | 4,550 |
122
+ | `source_held_out_5` | 12 | 5-sentence chunk | 5,700 | 910 | 910 |
123
+ | `source_held_out_10` | 12 | 10-sentence chunk | 2,850 | 455 | 455 |
124
+ | `source_held_out_50` | 12 | 50-sentence chunk | 570 | 91 | 91 |
125
 
126
  The `source_held_out_*` configurations use the same rows, the same chunk sizes
127
  and the same 100-row bottleneck, over the eleven authors that more than one
128
  project annotates. Two of them, Hesiod and Lucian, do not reach the main
129
  track's threshold under random splitting but do under this arrangement.
130
 
131
+ The suffix gives the chunk size in every split. `_50`, the largest, defines one
132
+ shared source corpus for all four tasks: an author is retained only when that
133
+ author independently has at least 50 source rows in **both** validation and
134
+ test, and every split is reduced to a multiple of 50 source rows per author.
135
+ Every smaller task size divides 50, which is what lets the same retained rows
136
+ fill all four. `_1` publishes the shared rows atomically, while `_5`, `_10` and
137
+ `_50` regroup those exact same train, validation, and test rows into fixed
138
  benchmark chunks. Thus author inventory and total source text are identical
139
  across task sizes.
140
 
141
  Source-row selection uses seed `776`. For each retained author and split, the
142
+ unavoidable `n mod 50` source rows are selected for exclusion once by a stable
143
  hash. The shared retained rows are put into their best available textual order
144
  within each work for each chunking task. Complete single-work chunks are
145
  emitted first; only residual work tails are combined, and such rows are marked
 
151
  ## Sentences per author label
152
 
153
  These are the exact retained atomic sentences in `sentence_1`. The same
154
+ sentences are represented in the 5-, 10-, and 50-sentence configurations.
155
 
156
  | Author label | Train | Validation | Test | Total |
157
  |---|---:|---:|---:|---:|
158
+ | Aeschines | 500 | 50 | 50 | 600 (1.0%) |
159
+ | Aeschylus | 2,600 | 300 | 300 | 3,200 (5.2%) |
160
+ | Antiphon | 400 | 50 | 50 | 500 (0.8%) |
161
+ | Appian | 750 | 50 | 50 | 850 (1.4%) |
162
+ | Aristophanes | 1,450 | 150 | 150 | 1,750 (2.8%) |
163
+ | Aristotle | 650 | 50 | 50 | 750 (1.2%) |
164
+ | Athenaeus | 1,950 | 200 | 200 | 2,350 (3.8%) |
165
+ | Demosthenes | 2,400 | 300 | 300 | 3,000 (4.9%) |
166
+ | Diodorus Siculus | 1,000 | 100 | 100 | 1,200 (1.9%) |
167
+ | Dionysius of Halicarnassus | 850 | 100 | 100 | 1,050 (1.7%) |
168
+ | Euripides | 600 | 50 | 50 | 700 (1.1%) |
169
+ | Herodotus | 5,900 | 700 | 700 | 7,300 (11.8%) |
170
+ | Hesiod | 700 | 50 | 50 | 800 (1.3%) |
171
+ | Homeric-Iliad | 6,250 | 750 | 750 | 7,750 (12.5%) |
172
+ | Homeric-Odyssey | 4,850 | 600 | 600 | 6,050 (9.8%) |
173
+ | Josephus | 800 | 100 | 100 | 1,000 (1.6%) |
174
+ | Lucian | 550 | 50 | 50 | 650 (1.1%) |
175
+ | Lysias | 750 | 50 | 50 | 850 (1.4%) |
176
+ | Menander | 700 | 50 | 50 | 800 (1.3%) |
177
+ | Paul | 700 | 50 | 50 | 800 (1.3%) |
178
+ | Plato | 900 | 100 | 100 | 1,100 (1.8%) |
179
+ | Plutarch | 1,300 | 150 | 150 | 1,600 (2.6%) |
180
+ | Polybius | 3,000 | 350 | 350 | 3,700 (6.0%) |
181
+ | Procopius | 950 | 100 | 100 | 1,150 (1.9%) |
182
+ | Sextus Empiricus | 500 | 50 | 50 | 600 (1.0%) |
183
+ | Sophocles | 3,100 | 350 | 350 | 3,800 (6.1%) |
184
+ | Thucydides | 950 | 100 | 100 | 1,150 (1.9%) |
185
+ | Xenophon | 5,450 | 650 | 650 | 6,750 (10.9%) |
186
+ | **All labels** | **50,500** | **5,650** | **5,650** | **61,800 (100.0%)** |
187
 
188
  ```python
189
  from datasets import load_dataset
 
196
  Splits use random seed `776` and begin with independent stratification within
197
  each author/work group: approximately 80% train, 10% validation and 10% test by
198
  row. Groups with 3–9 rows receive one validation and one test row; groups with
199
+ fewer than three stay in training. The 50-row eligibility and remainder
200
  bottleneck is then applied to all
201
  four task sizes. The train, validation, and test source sets are all exact
202
+ multiples of 50 per author. This makes the
203
  published source-row ratio slightly different from the initial 80/10/10 split.
204
  A stricter work-held-out evaluation can be added as a later track.
205
 
 
216
  For each author, the **second-largest** source project is held out entirely:
217
  its sentences become that author's validation and test data, split evenly, and
218
  every other project supplies training. An author is retained only when the
219
+ held-out project yields at least 50 validation and 50 test rows and at least
220
+ 50 training rows remain. A model that has learned to recognize annotators is
221
  actively penalized here, because every author arrives at evaluation in a scheme
222
  it was never trained in.
223
 
 
457
  The *Iliad* and *Odyssey* are retained as distinct conventional corpora under
458
  the author labels `Homeric-Iliad` and `Homeric-Odyssey`; the labels do not claim
459
  a shared biographical author. Every work labelled `Fragments` is excluded.
460
+
461
+ Where an upstream corpus files two works under one name and only one of them is
462
+ that author's, the works are named separately so that the pseudonymous rule can
463
+ act on them. The *Cynegetica* is transmitted under Oppian's name but is not by
464
+ the poet of the *Halieutica*, so it is labelled `Pseudo-Oppian` and excluded;
465
+ `Oppian` is the *Halieutica* alone.
466
  Machine-readable reasons and pre-deduplication counts are recorded in
467
  [`metadata/build_report.json`](metadata/build_report.json).
468
 
data/sentence_1/test-00000-of-00001.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:14770d4277823e04b0f6cbb53a3ae4036dd020124cd4ee8ba15a1bcfc57bbc26
3
- size 1454202
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b32ee0a4b2e1cf61921c1484f8c6b96569cdac5fdf6d9ca21906f0e98bcef51d
3
+ size 1696165
data/sentence_1/train-00000-of-00001.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b75ddbf13d092fe20888d6c068a67ecd5c5bc8775b09077d8e6dd7357905e1c2
3
- size 12237487
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cef082ec7a08f18581ed274ab7b068898ddb49918795cd63200d943491dd8073
3
+ size 14248650
data/sentence_1/validation-00000-of-00001.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:748f6b9e82cb64614c30bb7077c03cb0abaadeb1e00e5713c670d5ac3f8f4329
3
- size 1444361
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:68b044fd6ed307b03d58128458f729f04fad41987594c1622769174fa3c52ff2
3
+ size 1697530
data/sentence_10/test-00000-of-00001.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:bf491c42c150c2bc3d0dc4f64a4ef6d8dfdd5d183ddddc5fa3e962c57c4946cc
3
- size 1321392
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c22df82a8dbf599e2e8fc9a68391c7f51a2bbaf2d44909369c91281e99dd4d8b
3
+ size 1532728
data/sentence_10/train-00000-of-00001.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:1b55e096a0e092816721d2fd4fcadf862513e46bb509028d13500564e1160a02
3
- size 10402450
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1a1b21d6a8bb4f65486503ba03d63c2b71bb2d4042a4fe4c20b32d5dbb13f78f
3
+ size 12002579
data/sentence_10/validation-00000-of-00001.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:5c866aa0d4f9fbaaaa4544b8b0f082f1505a237c6b1e0821fb4a0dc2b4e8b279
3
- size 1312167
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:be2575d0091a4912a7a1baf861f23eb27893c3f919a52779e7c16d4f56a84074
3
+ size 1534640
data/{sentence_100 → sentence_5}/test-00000-of-00001.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:01278bc7879878a827bfdeeca5f497fb839b94bcbd31c465d698c92e7f9f6020
3
- size 1288881
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8ebccb15f5a9c0fd4c67029bc996b566f9009d219b16cc8c020bf1da04138468
3
+ size 1570073
data/{sentence_100 → sentence_5}/train-00000-of-00001.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b1f2f0f19062d01beea7e96f83f398fef60ad2858ba43638af9762e3f2c0392e
3
- size 10146914
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e26dfd1b822a8dc4e1ec1553844338161ca73205f1d7e4b9b50918431a5b0f8f
3
+ size 12303120
data/{source_held_out_100 → sentence_5}/validation-00000-of-00001.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:7cd440739df9a4a3d5e6c0bcce391a0f44f902e0ee32fd5634d622821c39c36e
3
- size 1194134
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7dec49899b25feb25b2f7ec88c59e151ab358afab25c31028ee0de0fb5c8f26c
3
+ size 1572340
data/sentence_50/test-00000-of-00001.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:f8a3764cf72330e86cbb293a5cb3665bca7f1baaa5a008c25848a8f231811854
3
- size 1288463
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b81a9a8d32bbb4978eddfd2991b3b3cda533647ecd06a28a274940cbbc86d6ee
3
+ size 1498014
data/sentence_50/train-00000-of-00001.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b40ff5e73093d2f671db9f75fb469cfff11032d2559a3b8e0d750b72926aa00b
3
- size 10175764
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1202ee01377667909c021389f2f6622e3c15b5121063f0daa86287767ac7cb10
3
+ size 11736592
data/sentence_50/validation-00000-of-00001.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:db7022e0882ae77a084343ea9c4571914549965713f5a2f829b57ce6dfc01b59
3
- size 1279662
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:85797da286c7ce2d954ee6a23dbab68767c39cf839ef3632aa64f582a9511411
3
+ size 1499780
data/source_held_out_1/test-00000-of-00001.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:fe36125d0780a3321470b81b16bc08c274ade7e34a207e1640ecd4cb201af809
3
- size 1346318
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bf3cee7cf76a5dfe9173b8702e844fdd0aaa2cfcca9d69e3aa7853ef4facc7bb
3
+ size 1433455
data/source_held_out_1/train-00000-of-00001.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:12769393b8913593752d406a9caf9c74b4ace6088bf646502279e991f4770a4c
3
- size 6448073
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:25da0e17db04e5d2bae9ca19aed3e7e5b9933947bfc267359fa8577e233d4a92
3
+ size 7339404
data/source_held_out_1/validation-00000-of-00001.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:85e4622d54e2aa853ec67374335b895a732327674273aef9dc4706986ea00101
3
- size 1346712
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:129f586c39211a06693f1b55c03dbbc38eae4cb0c916f6269f67913c7abf3a24
3
+ size 1439141
data/source_held_out_10/test-00000-of-00001.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:e2570cc2b9bcd2e76a91574465328d51d586ca05961e634dd80972ffc99d7382
3
- size 1226211
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:269cdad09004ef5e433c18978d56868d25c88307b5a4bb9d812523482a20cee5
3
+ size 1304691
data/source_held_out_10/train-00000-of-00001.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:3ada6e935cff1a39cff035ae69d236ef01453b93465325ccabbeb6ebda0e5cc6
3
- size 5467470
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:577cadae2a946bf9d7b5717f9f478fc437cc11b618bad606cf335b58278475e4
3
+ size 6221019
data/source_held_out_10/validation-00000-of-00001.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:e355b024751c4c22fbb9d63608104ed3d5870e16ee4085b2ac4b46c1dc3b2483
3
- size 1222117
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2ca9e343b94ddbd9c771913c133a81c5ea44bee41ba6c7172197b21641732a39
3
+ size 1306240
data/{source_held_out_100 → source_held_out_5}/test-00000-of-00001.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:8f5a1bfeb4b3e19fed1903517fb7568879873edf6b07526e78b88ab570f01dda
3
- size 1199456
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b18868d53bf167122a1e9bb052328c9cb0fff501f84bf574ebf99111269c8c79
3
+ size 1334461
data/{source_held_out_100 → source_held_out_5}/train-00000-of-00001.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:e63774f9f67be778b283a425b283fdb077daa3d6de56ba2c898348dc574643aa
3
- size 5312021
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8552f9e5fd510f134af266625dd26de43000263b8ab5d3e259f3e20d4cb718d0
3
+ size 6376410
data/{sentence_100 → source_held_out_5}/validation-00000-of-00001.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:d2ab3ae5a2f03d11a9c246cea46f0969b068c0e3657b123dce3382a26ba2697a
3
- size 1278930
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8ff4a54aa19ea55490d778a8d7fbfb195ef102aa140a6a97657931f455142666
3
+ size 1336537
data/source_held_out_50/test-00000-of-00001.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:856ccf11621ba3a26f302e8fe6f29938f1959db04fa03c22112c44266110a1e3
3
- size 1202969
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:45309782ef524a3b6a5838b67c743096db9ded926972b06a1a891daa5cc88604
3
+ size 1279177
data/source_held_out_50/train-00000-of-00001.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:2569f8721c2e794e9174abe7843056be05a2587808bc89ee94d2dc65556b3d7e
3
- size 5330210
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4cad1a114c486e52057cb2482b0c4ae9918bfb1b2ada9033fba0cbf96bd728b6
3
+ size 6068124
data/source_held_out_50/validation-00000-of-00001.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b3b6a79877f4a5a8ee1d28499b2ae13cc4edd80f0f83ea805ab5bf28726744b7
3
- size 1197595
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b0d0250479673803237db667d6d192a1398ad4e2bf92cfcc2ec46a1ce162251f
3
+ size 1280679
inspection/sphragis.sqlite CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:880fb25a1e9754c3b6b90a1b42242810871bd23fbad756deafbf66c429572cc3
3
- size 1775468544
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ba6b76242957da26d71b753c58f90b5f41e6fdf8511cc7aba7ea1ca79177828f
3
+ size 2385051648
metadata/build_report.json CHANGED
@@ -355,44 +355,44 @@
355
  },
356
  "data_files": {
357
  "sentence_1": {
358
- "test": 4800,
359
- "train": 43300,
360
- "validation": 4800
361
  },
362
  "sentence_10": {
363
- "test": 480,
364
- "train": 4330,
365
- "validation": 480
366
  },
367
- "sentence_100": {
368
- "test": 48,
369
- "train": 433,
370
- "validation": 48
371
  },
372
  "sentence_50": {
373
- "test": 96,
374
- "train": 866,
375
- "validation": 96
376
  },
377
  "source_held_out_1": {
378
- "test": 4200,
379
- "train": 25100,
380
- "validation": 4200
381
  },
382
  "source_held_out_10": {
383
- "test": 420,
384
- "train": 2510,
385
- "validation": 420
386
  },
387
- "source_held_out_100": {
388
- "test": 42,
389
- "train": 251,
390
- "validation": 42
391
  },
392
  "source_held_out_50": {
393
- "test": 84,
394
- "train": 502,
395
- "validation": 84
396
  }
397
  },
398
  "deduplication": {
@@ -815,6 +815,21 @@
815
  "publication": "sentence",
816
  "source_held_out_track": {
817
  "author_decisions": {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
818
  "Athenaeus": {
819
  "held_out_source": "gorman",
820
  "rows": {
@@ -1008,14 +1023,6 @@
1008
  "gorman": 666
1009
  }
1010
  },
1011
- "Aeschylus": {
1012
- "held_out_source": "ud_perseus",
1013
- "reason": "held-out source too small for a 100-row validation and test split",
1014
- "sources": {
1015
- "agdt": 3115,
1016
- "ud_perseus": 163
1017
- }
1018
- },
1019
  "Andocides": {
1020
  "reason": "only one source project",
1021
  "sources": {
@@ -1126,7 +1133,7 @@
1126
  },
1127
  "Lysias": {
1128
  "held_out_source": "pedalion",
1129
- "reason": "held-out source too small for a 100-row validation and test split",
1130
  "sources": {
1131
  "agdt": 54,
1132
  "gorman": 833,
@@ -1159,7 +1166,7 @@
1159
  },
1160
  "Polybius": {
1161
  "held_out_source": "agdt",
1162
- "reason": "held-out source too small for a 100-row validation and test split",
1163
  "sources": {
1164
  "agdt": 1,
1165
  "gorman": 3804
@@ -1196,9 +1203,10 @@
1196
  }
1197
  }
1198
  },
1199
- "minimum_rows_per_split": 100,
1200
  "policy": "hold out each author's second-largest source project entirely; its sentences form that author's validation and test data and every other project supplies training",
1201
  "retained_authors": [
 
1202
  "Athenaeus",
1203
  "Diodorus Siculus",
1204
  "Herodotus",
@@ -1239,64 +1247,70 @@
1239
  "nested_text_and_conllu_cardinality": true
1240
  },
1241
  "sentence_1": {
1242
- "authors": 17,
1243
  "genres": [
1244
  "prose",
1245
  "verse"
1246
  ],
1247
- "rows": 52900,
1248
  "splits": {
1249
- "test": 4800,
1250
- "train": 43300,
1251
- "validation": 4800
1252
  }
1253
  },
1254
  "sentence_10": {
1255
- "authors": 17,
1256
  "genres": [
1257
  "prose",
1258
  "verse"
1259
  ],
1260
- "rows": 5290,
1261
  "splits": {
1262
- "test": 480,
1263
- "train": 4330,
1264
- "validation": 480
1265
  }
1266
  },
1267
- "sentence_100": {
1268
- "authors": 17,
1269
  "genres": [
1270
  "prose",
1271
  "verse"
1272
  ],
1273
- "rows": 529,
1274
  "splits": {
1275
- "test": 48,
1276
- "train": 433,
1277
- "validation": 48
1278
  }
1279
  },
1280
  "sentence_50": {
1281
- "authors": 17,
1282
  "genres": [
1283
  "prose",
1284
  "verse"
1285
  ],
1286
- "rows": 1058,
1287
  "splits": {
1288
- "test": 96,
1289
- "train": 866,
1290
- "validation": 96
1291
  }
1292
  },
1293
  "source_held_out_1": {
1294
- "authors": 11,
1295
  "genres": [
1296
  "prose",
1297
  "verse"
1298
  ],
1299
  "held_out_sources": {
 
 
 
 
 
 
1300
  "Athenaeus": {
1301
  "held_out_source": "gorman",
1302
  "training_sources": [
@@ -1371,20 +1385,26 @@
1371
  ]
1372
  }
1373
  },
1374
- "rows": 33500,
1375
  "splits": {
1376
- "test": 4200,
1377
- "train": 25100,
1378
- "validation": 4200
1379
  }
1380
  },
1381
  "source_held_out_10": {
1382
- "authors": 11,
1383
  "genres": [
1384
  "prose",
1385
  "verse"
1386
  ],
1387
  "held_out_sources": {
 
 
 
 
 
 
1388
  "Athenaeus": {
1389
  "held_out_source": "gorman",
1390
  "training_sources": [
@@ -1459,20 +1479,26 @@
1459
  ]
1460
  }
1461
  },
1462
- "rows": 3350,
1463
  "splits": {
1464
- "test": 420,
1465
- "train": 2510,
1466
- "validation": 420
1467
  }
1468
  },
1469
- "source_held_out_100": {
1470
- "authors": 11,
1471
  "genres": [
1472
  "prose",
1473
  "verse"
1474
  ],
1475
  "held_out_sources": {
 
 
 
 
 
 
1476
  "Athenaeus": {
1477
  "held_out_source": "gorman",
1478
  "training_sources": [
@@ -1547,20 +1573,26 @@
1547
  ]
1548
  }
1549
  },
1550
- "rows": 335,
1551
  "splits": {
1552
- "test": 42,
1553
- "train": 251,
1554
- "validation": 42
1555
  }
1556
  },
1557
  "source_held_out_50": {
1558
- "authors": 11,
1559
  "genres": [
1560
  "prose",
1561
  "verse"
1562
  ],
1563
  "held_out_sources": {
 
 
 
 
 
 
1564
  "Athenaeus": {
1565
  "held_out_source": "gorman",
1566
  "training_sources": [
@@ -1635,11 +1667,11 @@
1635
  ]
1636
  }
1637
  },
1638
- "rows": 670,
1639
  "splits": {
1640
- "test": 84,
1641
- "train": 502,
1642
- "validation": 84
1643
  }
1644
  }
1645
  }
 
355
  },
356
  "data_files": {
357
  "sentence_1": {
358
+ "test": 5650,
359
+ "train": 50500,
360
+ "validation": 5650
361
  },
362
  "sentence_10": {
363
+ "test": 565,
364
+ "train": 5050,
365
+ "validation": 565
366
  },
367
+ "sentence_5": {
368
+ "test": 1130,
369
+ "train": 10100,
370
+ "validation": 1130
371
  },
372
  "sentence_50": {
373
+ "test": 113,
374
+ "train": 1010,
375
+ "validation": 113
376
  },
377
  "source_held_out_1": {
378
+ "test": 4550,
379
+ "train": 28500,
380
+ "validation": 4550
381
  },
382
  "source_held_out_10": {
383
+ "test": 455,
384
+ "train": 2850,
385
+ "validation": 455
386
  },
387
+ "source_held_out_5": {
388
+ "test": 910,
389
+ "train": 5700,
390
+ "validation": 910
391
  },
392
  "source_held_out_50": {
393
+ "test": 91,
394
+ "train": 570,
395
+ "validation": 91
396
  }
397
  },
398
  "deduplication": {
 
815
  "publication": "sentence",
816
  "source_held_out_track": {
817
  "author_decisions": {
818
+ "Aeschylus": {
819
+ "held_out_source": "ud_perseus",
820
+ "rows": {
821
+ "test": 81,
822
+ "train": 3115,
823
+ "validation": 81
824
+ },
825
+ "source_rows": {
826
+ "agdt": 3115,
827
+ "ud_perseus": 163
828
+ },
829
+ "training_sources": [
830
+ "agdt"
831
+ ]
832
+ },
833
  "Athenaeus": {
834
  "held_out_source": "gorman",
835
  "rows": {
 
1023
  "gorman": 666
1024
  }
1025
  },
 
 
 
 
 
 
 
 
1026
  "Andocides": {
1027
  "reason": "only one source project",
1028
  "sources": {
 
1133
  },
1134
  "Lysias": {
1135
  "held_out_source": "pedalion",
1136
+ "reason": "held-out source too small for a 50-row validation and test split",
1137
  "sources": {
1138
  "agdt": 54,
1139
  "gorman": 833,
 
1166
  },
1167
  "Polybius": {
1168
  "held_out_source": "agdt",
1169
+ "reason": "held-out source too small for a 50-row validation and test split",
1170
  "sources": {
1171
  "agdt": 1,
1172
  "gorman": 3804
 
1203
  }
1204
  }
1205
  },
1206
+ "minimum_rows_per_split": 50,
1207
  "policy": "hold out each author's second-largest source project entirely; its sentences form that author's validation and test data and every other project supplies training",
1208
  "retained_authors": [
1209
+ "Aeschylus",
1210
  "Athenaeus",
1211
  "Diodorus Siculus",
1212
  "Herodotus",
 
1247
  "nested_text_and_conllu_cardinality": true
1248
  },
1249
  "sentence_1": {
1250
+ "authors": 28,
1251
  "genres": [
1252
  "prose",
1253
  "verse"
1254
  ],
1255
+ "rows": 61800,
1256
  "splits": {
1257
+ "test": 5650,
1258
+ "train": 50500,
1259
+ "validation": 5650
1260
  }
1261
  },
1262
  "sentence_10": {
1263
+ "authors": 28,
1264
  "genres": [
1265
  "prose",
1266
  "verse"
1267
  ],
1268
+ "rows": 6180,
1269
  "splits": {
1270
+ "test": 565,
1271
+ "train": 5050,
1272
+ "validation": 565
1273
  }
1274
  },
1275
+ "sentence_5": {
1276
+ "authors": 28,
1277
  "genres": [
1278
  "prose",
1279
  "verse"
1280
  ],
1281
+ "rows": 12360,
1282
  "splits": {
1283
+ "test": 1130,
1284
+ "train": 10100,
1285
+ "validation": 1130
1286
  }
1287
  },
1288
  "sentence_50": {
1289
+ "authors": 28,
1290
  "genres": [
1291
  "prose",
1292
  "verse"
1293
  ],
1294
+ "rows": 1236,
1295
  "splits": {
1296
+ "test": 113,
1297
+ "train": 1010,
1298
+ "validation": 113
1299
  }
1300
  },
1301
  "source_held_out_1": {
1302
+ "authors": 12,
1303
  "genres": [
1304
  "prose",
1305
  "verse"
1306
  ],
1307
  "held_out_sources": {
1308
+ "Aeschylus": {
1309
+ "held_out_source": "ud_perseus",
1310
+ "training_sources": [
1311
+ "agdt"
1312
+ ]
1313
+ },
1314
  "Athenaeus": {
1315
  "held_out_source": "gorman",
1316
  "training_sources": [
 
1385
  ]
1386
  }
1387
  },
1388
+ "rows": 37600,
1389
  "splits": {
1390
+ "test": 4550,
1391
+ "train": 28500,
1392
+ "validation": 4550
1393
  }
1394
  },
1395
  "source_held_out_10": {
1396
+ "authors": 12,
1397
  "genres": [
1398
  "prose",
1399
  "verse"
1400
  ],
1401
  "held_out_sources": {
1402
+ "Aeschylus": {
1403
+ "held_out_source": "ud_perseus",
1404
+ "training_sources": [
1405
+ "agdt"
1406
+ ]
1407
+ },
1408
  "Athenaeus": {
1409
  "held_out_source": "gorman",
1410
  "training_sources": [
 
1479
  ]
1480
  }
1481
  },
1482
+ "rows": 3760,
1483
  "splits": {
1484
+ "test": 455,
1485
+ "train": 2850,
1486
+ "validation": 455
1487
  }
1488
  },
1489
+ "source_held_out_5": {
1490
+ "authors": 12,
1491
  "genres": [
1492
  "prose",
1493
  "verse"
1494
  ],
1495
  "held_out_sources": {
1496
+ "Aeschylus": {
1497
+ "held_out_source": "ud_perseus",
1498
+ "training_sources": [
1499
+ "agdt"
1500
+ ]
1501
+ },
1502
  "Athenaeus": {
1503
  "held_out_source": "gorman",
1504
  "training_sources": [
 
1573
  ]
1574
  }
1575
  },
1576
+ "rows": 7520,
1577
  "splits": {
1578
+ "test": 910,
1579
+ "train": 5700,
1580
+ "validation": 910
1581
  }
1582
  },
1583
  "source_held_out_50": {
1584
+ "authors": 12,
1585
  "genres": [
1586
  "prose",
1587
  "verse"
1588
  ],
1589
  "held_out_sources": {
1590
+ "Aeschylus": {
1591
+ "held_out_source": "ud_perseus",
1592
+ "training_sources": [
1593
+ "agdt"
1594
+ ]
1595
+ },
1596
  "Athenaeus": {
1597
  "held_out_source": "gorman",
1598
  "training_sources": [
 
1667
  ]
1668
  }
1669
  },
1670
+ "rows": 752,
1671
  "splits": {
1672
+ "test": 91,
1673
+ "train": 570,
1674
+ "validation": 91
1675
  }
1676
  }
1677
  }
metadata/dataset_variants.json CHANGED
The diff for this file is too large to render. See raw diff
 
metadata/leakage_report.json CHANGED
@@ -1,196 +1,196 @@
1
  {
2
  "configurations": {
3
  "sentence_1": {
4
- "authors": 17,
5
  "inventory_to_author": {
6
- "accuracy": 36.3125,
7
  "features": 50,
8
- "macro_f1": 17.7243
9
  },
10
  "majority_baseline": {
11
- "accuracy": 14.5833,
12
  "features": 0,
13
- "macro_f1": 1.4973
14
  },
15
  "markup_to_author": {
16
- "accuracy": 50.5208,
17
  "features": 64,
18
- "macro_f1": 32.0114
19
  },
20
  "markup_to_treebank_source": {
21
- "accuracy": 79.0208,
22
  "features": 64,
23
- "macro_f1": 73.0083
24
  },
25
- "test_rows": 4800
26
  },
27
  "sentence_10": {
28
- "authors": 17,
29
  "inventory_to_author": {
30
- "accuracy": 39.7917,
31
  "features": 50,
32
- "macro_f1": 16.6515
33
  },
34
  "majority_baseline": {
35
- "accuracy": 14.5833,
36
  "features": 0,
37
- "macro_f1": 1.4973
38
  },
39
  "markup_to_author": {
40
- "accuracy": 73.9583,
41
  "features": 64,
42
- "macro_f1": 51.9926
43
  },
44
  "markup_to_treebank_source": {
45
- "accuracy": 87.2917,
46
  "features": 64,
47
- "macro_f1": 67.9758
48
  },
49
- "test_rows": 480
50
  },
51
- "sentence_100": {
52
- "authors": 17,
53
  "inventory_to_author": {
54
- "accuracy": 50.0,
55
  "features": 50,
56
- "macro_f1": 27.274
57
  },
58
  "majority_baseline": {
59
- "accuracy": 14.5833,
60
  "features": 0,
61
- "macro_f1": 1.4973
62
  },
63
  "markup_to_author": {
64
- "accuracy": 68.75,
65
  "features": 64,
66
- "macro_f1": 39.5994
67
  },
68
  "markup_to_treebank_source": {
69
- "accuracy": 62.5,
70
  "features": 64,
71
- "macro_f1": 52.151
72
  },
73
- "test_rows": 48
74
  },
75
  "sentence_50": {
76
- "authors": 17,
77
  "inventory_to_author": {
78
- "accuracy": 47.9167,
79
  "features": 50,
80
- "macro_f1": 28.9223
81
  },
82
  "majority_baseline": {
83
- "accuracy": 14.5833,
84
  "features": 0,
85
- "macro_f1": 1.4973
86
  },
87
  "markup_to_author": {
88
- "accuracy": 73.9583,
89
  "features": 64,
90
- "macro_f1": 41.2814
91
  },
92
  "markup_to_treebank_source": {
93
- "accuracy": 73.9583,
94
  "features": 64,
95
- "macro_f1": 57.5758
96
  },
97
- "test_rows": 96
98
  },
99
  "source_held_out_1": {
100
- "authors": 11,
101
  "inventory_to_author": {
102
- "accuracy": 16.7143,
103
  "features": 50,
104
- "macro_f1": 7.8796
105
  },
106
  "majority_baseline": {
107
- "accuracy": 11.9048,
108
  "features": 0,
109
- "macro_f1": 1.9342
110
  },
111
  "markup_to_author": {
112
- "accuracy": 23.6667,
113
  "features": 64,
114
- "macro_f1": 12.4674
115
  },
116
  "markup_to_treebank_source": {
117
- "accuracy": 33.3333,
118
  "features": 64,
119
- "macro_f1": 18.338
120
  },
121
- "test_rows": 4200
122
  },
123
  "source_held_out_10": {
124
- "authors": 11,
125
  "inventory_to_author": {
126
- "accuracy": 12.8571,
127
  "features": 50,
128
- "macro_f1": 4.5931
129
  },
130
  "majority_baseline": {
131
- "accuracy": 11.9048,
132
  "features": 0,
133
- "macro_f1": 1.9342
134
  },
135
  "markup_to_author": {
136
- "accuracy": 36.9048,
137
  "features": 64,
138
- "macro_f1": 21.9855
139
  },
140
  "markup_to_treebank_source": {
141
- "accuracy": 33.8095,
142
  "features": 64,
143
- "macro_f1": 18.0101
144
  },
145
- "test_rows": 420
146
  },
147
- "source_held_out_100": {
148
- "authors": 11,
149
  "inventory_to_author": {
150
- "accuracy": 23.8095,
151
  "features": 50,
152
- "macro_f1": 8.2867
153
  },
154
  "majority_baseline": {
155
- "accuracy": 11.9048,
156
  "features": 0,
157
- "macro_f1": 1.9342
158
  },
159
  "markup_to_author": {
160
- "accuracy": 28.5714,
161
  "features": 64,
162
- "macro_f1": 13.7457
163
  },
164
  "markup_to_treebank_source": {
165
- "accuracy": 21.4286,
166
  "features": 64,
167
- "macro_f1": 11.6162
168
  },
169
- "test_rows": 42
170
  },
171
  "source_held_out_50": {
172
- "authors": 11,
173
  "inventory_to_author": {
174
- "accuracy": 7.1429,
175
  "features": 50,
176
- "macro_f1": 2.7308
177
  },
178
  "majority_baseline": {
179
- "accuracy": 11.9048,
180
  "features": 0,
181
- "macro_f1": 1.9342
182
  },
183
  "markup_to_author": {
184
- "accuracy": 27.381,
185
  "features": 64,
186
- "macro_f1": 14.5915
187
  },
188
  "markup_to_treebank_source": {
189
- "accuracy": 25.0,
190
  "features": 64,
191
- "macro_f1": 12.7619
192
  },
193
- "test_rows": 84
194
  }
195
  },
196
  "probes": {
 
1
  {
2
  "configurations": {
3
  "sentence_1": {
4
+ "authors": 28,
5
  "inventory_to_author": {
6
+ "accuracy": 32.708,
7
  "features": 50,
8
+ "macro_f1": 11.038
9
  },
10
  "majority_baseline": {
11
+ "accuracy": 13.2743,
12
  "features": 0,
13
+ "macro_f1": 0.8371
14
  },
15
  "markup_to_author": {
16
+ "accuracy": 45.646,
17
  "features": 64,
18
+ "macro_f1": 20.6286
19
  },
20
  "markup_to_treebank_source": {
21
+ "accuracy": 77.6814,
22
  "features": 64,
23
+ "macro_f1": 61.977
24
  },
25
+ "test_rows": 5650
26
  },
27
  "sentence_10": {
28
+ "authors": 28,
29
  "inventory_to_author": {
30
+ "accuracy": 36.2832,
31
  "features": 50,
32
+ "macro_f1": 12.805
33
  },
34
  "majority_baseline": {
35
+ "accuracy": 13.2743,
36
  "features": 0,
37
+ "macro_f1": 0.8371
38
  },
39
  "markup_to_author": {
40
+ "accuracy": 67.9646,
41
  "features": 64,
42
+ "macro_f1": 34.7397
43
  },
44
  "markup_to_treebank_source": {
45
+ "accuracy": 86.7257,
46
  "features": 64,
47
+ "macro_f1": 61.3577
48
  },
49
+ "test_rows": 565
50
  },
51
+ "sentence_5": {
52
+ "authors": 28,
53
  "inventory_to_author": {
54
+ "accuracy": 35.3097,
55
  "features": 50,
56
+ "macro_f1": 11.6605
57
  },
58
  "majority_baseline": {
59
+ "accuracy": 13.2743,
60
  "features": 0,
61
+ "macro_f1": 0.8371
62
  },
63
  "markup_to_author": {
64
+ "accuracy": 64.0708,
65
  "features": 64,
66
+ "macro_f1": 36.1669
67
  },
68
  "markup_to_treebank_source": {
69
+ "accuracy": 87.4336,
70
  "features": 64,
71
+ "macro_f1": 61.3361
72
  },
73
+ "test_rows": 1130
74
  },
75
  "sentence_50": {
76
+ "authors": 28,
77
  "inventory_to_author": {
78
+ "accuracy": 42.4779,
79
  "features": 50,
80
+ "macro_f1": 17.4088
81
  },
82
  "majority_baseline": {
83
+ "accuracy": 13.2743,
84
  "features": 0,
85
+ "macro_f1": 0.8371
86
  },
87
  "markup_to_author": {
88
+ "accuracy": 67.2566,
89
  "features": 64,
90
+ "macro_f1": 23.7232
91
  },
92
  "markup_to_treebank_source": {
93
+ "accuracy": 73.4513,
94
  "features": 64,
95
+ "macro_f1": 62.5611
96
  },
97
+ "test_rows": 113
98
  },
99
  "source_held_out_1": {
100
+ "authors": 12,
101
  "inventory_to_author": {
102
+ "accuracy": 13.5165,
103
  "features": 50,
104
+ "macro_f1": 5.7013
105
  },
106
  "majority_baseline": {
107
+ "accuracy": 10.989,
108
  "features": 0,
109
+ "macro_f1": 1.6502
110
  },
111
  "markup_to_author": {
112
+ "accuracy": 18.7473,
113
  "features": 64,
114
+ "macro_f1": 10.3109
115
  },
116
  "markup_to_treebank_source": {
117
+ "accuracy": 45.6264,
118
  "features": 64,
119
+ "macro_f1": 26.9095
120
  },
121
+ "test_rows": 4550
122
  },
123
  "source_held_out_10": {
124
+ "authors": 12,
125
  "inventory_to_author": {
126
+ "accuracy": 8.5714,
127
  "features": 50,
128
+ "macro_f1": 2.7505
129
  },
130
  "majority_baseline": {
131
+ "accuracy": 10.989,
132
  "features": 0,
133
+ "macro_f1": 1.6502
134
  },
135
  "markup_to_author": {
136
+ "accuracy": 28.7912,
137
  "features": 64,
138
+ "macro_f1": 17.6304
139
  },
140
  "markup_to_treebank_source": {
141
+ "accuracy": 45.0549,
142
  "features": 64,
143
+ "macro_f1": 26.5007
144
  },
145
+ "test_rows": 455
146
  },
147
+ "source_held_out_5": {
148
+ "authors": 12,
149
  "inventory_to_author": {
150
+ "accuracy": 11.2088,
151
  "features": 50,
152
+ "macro_f1": 4.0306
153
  },
154
  "majority_baseline": {
155
+ "accuracy": 10.989,
156
  "features": 0,
157
+ "macro_f1": 1.6502
158
  },
159
  "markup_to_author": {
160
+ "accuracy": 25.8242,
161
  "features": 64,
162
+ "macro_f1": 16.9135
163
  },
164
  "markup_to_treebank_source": {
165
+ "accuracy": 49.5604,
166
  "features": 64,
167
+ "macro_f1": 28.6622
168
  },
169
+ "test_rows": 910
170
  },
171
  "source_held_out_50": {
172
+ "authors": 12,
173
  "inventory_to_author": {
174
+ "accuracy": 3.2967,
175
  "features": 50,
176
+ "macro_f1": 1.5152
177
  },
178
  "majority_baseline": {
179
+ "accuracy": 10.989,
180
  "features": 0,
181
+ "macro_f1": 1.6502
182
  },
183
  "markup_to_author": {
184
+ "accuracy": 24.1758,
185
  "features": 64,
186
+ "macro_f1": 12.0011
187
  },
188
  "markup_to_treebank_source": {
189
+ "accuracy": 32.967,
190
  "features": 64,
191
+ "macro_f1": 20.4127
192
  },
193
+ "test_rows": 91
194
  }
195
  },
196
  "probes": {
scripts/audit_leakage.py CHANGED
@@ -139,8 +139,8 @@ def main() -> None:
139
  parser.add_argument(
140
  "--configs", nargs="*",
141
  default=[
142
- *(f"sentence_{suffix}" for suffix in (1, 10, 50, 100)),
143
- *(f"source_held_out_{suffix}" for suffix in (1, 10, 50, 100)),
144
  ],
145
  )
146
  args = parser.parse_args()
 
139
  parser.add_argument(
140
  "--configs", nargs="*",
141
  default=[
142
+ *(f"sentence_{suffix}" for suffix in (1, 5, 10, 50)),
143
+ *(f"source_held_out_{suffix}" for suffix in (1, 5, 10, 50)),
144
  ],
145
  )
146
  args = parser.parse_args()
scripts/build_dataset.py CHANGED
@@ -1241,6 +1241,12 @@ def hypotactic_author_work(stem: str, line: dict) -> tuple[str, str, str]:
1241
  author = canonical_author(author)
1242
  if author == "Homer" and work in {"Iliad", "Odyssey"}:
1243
  author = f"Homeric-{work}"
 
 
 
 
 
 
1244
  work_id = HYPOTACTIC_CANONICAL_WORK_IDS.get(
1245
  (author, work), f"hypotactic:{slug(author)}:{slug(work)}",
1246
  )
@@ -1744,12 +1750,17 @@ def predicted_metre_rows(
1744
  excluded[reason] += 1
1745
  else:
1746
  eligible[hypotactic_line_key(line)] = curated
1747
- if set(predictions) != set(eligible):
1748
- missing = set(eligible) - set(predictions)
1749
- extra = set(predictions) - set(eligible)
1750
  raise ValueError(
1751
- f"Stoicheia cache is incomplete or stale: missing={len(missing)} extra={len(extra)}"
 
1752
  )
 
 
 
 
 
1753
  gold_by_key = {
1754
  (row["hypotactic_file"], row["poem_sequence"], row["book"], row["line_number"]): row
1755
  for row in gold_rows
@@ -1757,6 +1768,8 @@ def predicted_metre_rows(
1757
  output = []
1758
  excluded_disputed = 0
1759
  for key, prediction in sorted(predictions.items()):
 
 
1760
  line = lines_by_key.get(key)
1761
  if line is None:
1762
  raise ValueError(f"Stoicheia prediction has no Hypotactic line: {key}")
@@ -1843,6 +1856,7 @@ def predicted_metre_rows(
1843
  "context_sentences_spanning_multiple_lines": len(multiline_sentence_ids),
1844
  "context_window_forced_splits": len(forced_context_sentence_ids),
1845
  "predictions_in_cache": len(predictions),
 
1846
  "hypotactic_lines_total": len(lines_by_key),
1847
  "hypotactic_lines_excluded_before_parsing": sum(excluded.values()),
1848
  "hypotactic_lines_excluded_by_reason": dict(sorted(excluded.items())),
@@ -2049,7 +2063,7 @@ def lower_greek_syllables(payload):
2049
  return payload
2050
 
2051
 
2052
- SOURCE_HELD_OUT_TARGET = 100
2053
 
2054
 
2055
  def source_held_out_rows(rows: list[dict]) -> tuple[list[dict], dict]:
@@ -2094,7 +2108,10 @@ def source_held_out_rows(rows: list[dict]) -> tuple[list[dict], dict]:
2094
  or len(train_rows) < SOURCE_HELD_OUT_TARGET
2095
  ):
2096
  rejected[author] = {
2097
- "reason": "held-out source too small for a 100-row validation and test split",
 
 
 
2098
  "held_out_source": held_out,
2099
  "sources": {source: len(by_source[source]) for source in ranked},
2100
  }
@@ -2202,7 +2219,7 @@ def validate_publication(
2202
  rows_by_config: dict[str, list[dict]], publication: str,
2203
  ) -> dict:
2204
  """Validate final repository-level rows after the publication split."""
2205
- suffixes = ("1", "10", "50", "100")
2206
  if publication == "sentence":
2207
  expected_configs = (
2208
  *(f"sentence_{suffix}" for suffix in suffixes),
 
1241
  author = canonical_author(author)
1242
  if author == "Homer" and work in {"Iliad", "Odyssey"}:
1243
  author = f"Homeric-{work}"
1244
+ # Hypotactic files both works under one Oppian, but the Cynegetica is not by
1245
+ # the poet of the Halieutica. Naming its author separately lets the
1246
+ # pseudonymous rule in authorship_decision exclude it, rather than leaving
1247
+ # 38% of the Oppian label written by somebody else.
1248
+ if author == "Oppian" and work == "Cynegetica":
1249
+ author = "Pseudo-Oppian"
1250
  work_id = HYPOTACTIC_CANONICAL_WORK_IDS.get(
1251
  (author, work), f"hypotactic:{slug(author)}:{slug(work)}",
1252
  )
 
1750
  excluded[reason] += 1
1751
  else:
1752
  eligible[hypotactic_line_key(line)] = curated
1753
+ missing = set(eligible) - set(predictions)
1754
+ if missing:
 
1755
  raise ValueError(
1756
+ f"Stoicheia cache is incomplete: {len(missing)} eligible lines "
1757
+ "have no parse"
1758
  )
1759
+ # The cache may hold parses for lines curation has since excluded, as it
1760
+ # does for the Cynegetica. Those are simply unused: every prediction that
1761
+ # is published still has its text and authorship checked against the
1762
+ # Hypotactic line below, which is what would catch a genuinely stale cache.
1763
+ unused_predictions = len(set(predictions) - set(eligible))
1764
  gold_by_key = {
1765
  (row["hypotactic_file"], row["poem_sequence"], row["book"], row["line_number"]): row
1766
  for row in gold_rows
 
1768
  output = []
1769
  excluded_disputed = 0
1770
  for key, prediction in sorted(predictions.items()):
1771
+ if key not in eligible:
1772
+ continue
1773
  line = lines_by_key.get(key)
1774
  if line is None:
1775
  raise ValueError(f"Stoicheia prediction has no Hypotactic line: {key}")
 
1856
  "context_sentences_spanning_multiple_lines": len(multiline_sentence_ids),
1857
  "context_window_forced_splits": len(forced_context_sentence_ids),
1858
  "predictions_in_cache": len(predictions),
1859
+ "cached_predictions_unused_after_curation": unused_predictions,
1860
  "hypotactic_lines_total": len(lines_by_key),
1861
  "hypotactic_lines_excluded_before_parsing": sum(excluded.values()),
1862
  "hypotactic_lines_excluded_by_reason": dict(sorted(excluded.items())),
 
2063
  return payload
2064
 
2065
 
2066
+ SOURCE_HELD_OUT_TARGET = 50
2067
 
2068
 
2069
  def source_held_out_rows(rows: list[dict]) -> tuple[list[dict], dict]:
 
2108
  or len(train_rows) < SOURCE_HELD_OUT_TARGET
2109
  ):
2110
  rejected[author] = {
2111
+ "reason": (
2112
+ "held-out source too small for a "
2113
+ f"{SOURCE_HELD_OUT_TARGET}-row validation and test split"
2114
+ ),
2115
  "held_out_source": held_out,
2116
  "sources": {source: len(by_source[source]) for source in ranked},
2117
  }
 
2219
  rows_by_config: dict[str, list[dict]], publication: str,
2220
  ) -> dict:
2221
  """Validate final repository-level rows after the publication split."""
2222
+ suffixes = ("1", "5", "10", "50")
2223
  if publication == "sentence":
2224
  expected_configs = (
2225
  *(f"sentence_{suffix}" for suffix in suffixes),
scripts/build_sqlite_mirror.py CHANGED
@@ -16,8 +16,8 @@ import pyarrow.parquet as pq
16
 
17
  SPLITS = ("train", "validation", "test")
18
  CONFIGS = (
19
- tuple(f"sentence_{suffix}" for suffix in ("1", "10", "50", "100"))
20
- + tuple(f"source_held_out_{suffix}" for suffix in ("1", "10", "50", "100"))
21
  )
22
  INDEX_COLUMN = "_split_row_index"
23
 
@@ -218,7 +218,7 @@ def main() -> None:
218
  )
219
  parser.add_argument("--check", action="store_true")
220
  args = parser.parse_args()
221
- suffixes = ("1", "10", "50", "100")
222
  CONFIGS = (
223
  tuple(f"sentence_{suffix}" for suffix in suffixes)
224
  + tuple(f"source_held_out_{suffix}" for suffix in suffixes)
 
16
 
17
  SPLITS = ("train", "validation", "test")
18
  CONFIGS = (
19
+ tuple(f"sentence_{suffix}" for suffix in ("1", "5", "10", "50"))
20
+ + tuple(f"source_held_out_{suffix}" for suffix in ("1", "5", "10", "50"))
21
  )
22
  INDEX_COLUMN = "_split_row_index"
23
 
 
218
  )
219
  parser.add_argument("--check", action="store_true")
220
  args = parser.parse_args()
221
+ suffixes = ("1", "5", "10", "50")
222
  CONFIGS = (
223
  tuple(f"sentence_{suffix}" for suffix in suffixes)
224
  + tuple(f"source_held_out_{suffix}" for suffix in suffixes)
scripts/dataset_variants.py CHANGED
@@ -27,16 +27,19 @@ except ModuleNotFoundError: # Direct execution from the scripts directory.
27
  BASE_CONFIGS = ("sentence", "source_held_out", "verse_metre")
28
  SPLITS = ("train", "validation", "test")
29
  CHUNK_TARGETS_BY_BASE = {
30
- "sentence": (10, 50, 100),
31
- "source_held_out": (10, 50, 100),
32
- "verse_metre": (10, 50, 100),
33
  }
34
  PUBLIC_CONFIG_PREFIX = {
35
  "sentence": "sentence",
36
  "source_held_out": "source_held_out",
37
  "verse_metre": "verse",
38
  }
39
- BOTTLENECK_TARGET = 100
 
 
 
40
  CHUNKING_SEED = 776
41
 
42
  CHUNK_FIELDS = (
 
27
  BASE_CONFIGS = ("sentence", "source_held_out", "verse_metre")
28
  SPLITS = ("train", "validation", "test")
29
  CHUNK_TARGETS_BY_BASE = {
30
+ "sentence": (5, 10, 50),
31
+ "source_held_out": (5, 10, 50),
32
+ "verse_metre": (5, 10, 50),
33
  }
34
  PUBLIC_CONFIG_PREFIX = {
35
  "sentence": "sentence",
36
  "source_held_out": "source_held_out",
37
  "verse_metre": "verse",
38
  }
39
+ # The largest chunk size, so every retained author has at least one complete
40
+ # chunk of every task size in validation and in test. Every smaller target
41
+ # divides it, which is what lets the same retained rows fill all four tasks.
42
+ BOTTLENECK_TARGET = 50
43
  CHUNKING_SEED = 776
44
 
45
  CHUNK_FIELDS = (
scripts/validate_publication.py CHANGED
@@ -85,7 +85,7 @@ def normalize(value: str) -> str:
85
 
86
 
87
  def configs(publication: str) -> tuple[str, ...]:
88
- suffixes = (1, 10, 50, 100)
89
  if publication == "sentence":
90
  return (
91
  *(f"sentence_{suffix}" for suffix in suffixes),
 
85
 
86
 
87
  def configs(publication: str) -> tuple[str, ...]:
88
+ suffixes = (1, 5, 10, 50)
89
  if publication == "sentence":
90
  return (
91
  *(f"sentence_{suffix}" for suffix in suffixes),
tests/test_conllu_well_formed.py CHANGED
@@ -19,9 +19,9 @@ REPO_ROOT = Path(__file__).resolve().parents[1]
19
  DATA_ROOT = REPO_ROOT / "data"
20
  METRE_DATA_ROOT = REPO_ROOT.parent / "sphragis-metre" / "data"
21
  CONFIGS = tuple(
22
- [(DATA_ROOT, f"sentence_{suffix}") for suffix in ("1", "10", "50", "100")]
23
- + [(DATA_ROOT, f"source_held_out_{suffix}") for suffix in ("1", "10", "50", "100")]
24
- + [(METRE_DATA_ROOT, f"verse_{suffix}") for suffix in ("1", "10", "50", "100")]
25
  )
26
 
27
 
@@ -56,7 +56,7 @@ def test_all_conllu_documents_are_well_formed_and_identifier_free() -> None:
56
 
57
 
58
  def test_verse_metre_conllu_forms_do_not_exceed_line_text() -> None:
59
- for suffix in ("1", "10", "50", "100"):
60
  for split in ("train", "validation", "test"):
61
  path = METRE_DATA_ROOT / f"verse_{suffix}" / f"{split}-00000-of-00001.parquet"
62
  for row in pq.read_table(path, columns=["id", "text", "conllu"]).to_pylist():
 
19
  DATA_ROOT = REPO_ROOT / "data"
20
  METRE_DATA_ROOT = REPO_ROOT.parent / "sphragis-metre" / "data"
21
  CONFIGS = tuple(
22
+ [(DATA_ROOT, f"sentence_{suffix}") for suffix in ("1", "5", "10", "50")]
23
+ + [(DATA_ROOT, f"source_held_out_{suffix}") for suffix in ("1", "5", "10", "50")]
24
+ + [(METRE_DATA_ROOT, f"verse_{suffix}") for suffix in ("1", "5", "10", "50")]
25
  )
26
 
27
 
 
56
 
57
 
58
  def test_verse_metre_conllu_forms_do_not_exceed_line_text() -> None:
59
+ for suffix in ("1", "5", "10", "50"):
60
  for split in ("train", "validation", "test"):
61
  path = METRE_DATA_ROOT / f"verse_{suffix}" / f"{split}-00000-of-00001.parquet"
62
  for row in pq.read_table(path, columns=["id", "text", "conllu"]).to_pylist():
tests/test_model_facing.py CHANGED
@@ -376,7 +376,7 @@ def test_editorial_punctuation_leaves_the_text_column() -> None:
376
 
377
 
378
  def _configs(prefix: str) -> list[str]:
379
- return [f"{prefix}_{suffix}" for suffix in ("1", "10", "50", "100")]
380
 
381
 
382
  @pytest.mark.parametrize("config", _configs("source_held_out"))
 
376
 
377
 
378
  def _configs(prefix: str) -> list[str]:
379
+ return [f"{prefix}_{suffix}" for suffix in ("1", "5", "10", "50")]
380
 
381
 
382
  @pytest.mark.parametrize("config", _configs("source_held_out"))
tests/test_split_stratification.py CHANGED
@@ -14,6 +14,7 @@ from scripts.metre_units import (
14
  load_syllable_units,
15
  syllable_line,
16
  )
 
17
  from scripts.metrical_lines import PUBLIC_METRICAL_LINE_FIELD_SET, sanitize_metrical_lines
18
  from scripts.text_units import load_text_units
19
 
@@ -22,9 +23,9 @@ REPO_ROOT = Path(__file__).resolve().parents[1]
22
  METRE_ROOT = REPO_ROOT.parent / "sphragis-metre"
23
  SPLITS = ("train", "validation", "test")
24
  PUBLICATIONS = (
25
- (REPO_ROOT, "sentence", (1, 10, 50, 100)),
26
- (REPO_ROOT, "source_held_out", (1, 10, 50, 100)),
27
- (METRE_ROOT, "verse", (1, 10, 50, 100)),
28
  )
29
  # The per-author unit table in each README documents the main track only; the
30
  # source-held-out track's per-author counts live in build_report.json, because
@@ -125,7 +126,7 @@ def test_readme_author_unit_counts_and_shares_match_atomic_parquets() -> None:
125
  }
126
 
127
 
128
- def test_all_atomic_splits_are_balanced_and_100_chunkable() -> None:
129
  for root, base, _suffixes in PUBLICATIONS:
130
  counts = defaultdict(Counter)
131
  for split in SPLITS:
@@ -138,8 +139,10 @@ def test_all_atomic_splits_are_balanced_and_100_chunkable() -> None:
138
  for author, author_counts in counts.items():
139
  assert author_counts["validation"] == author_counts["test"]
140
  for split in SPLITS:
141
- assert author_counts[split] >= 100, (base, author, split)
142
- assert author_counts[split] % 100 == 0, (base, author, split)
 
 
143
 
144
 
145
  def test_chunk_sizes_and_atomic_coverage_are_exact_in_every_split() -> None:
@@ -182,7 +185,7 @@ def test_sentence_publication_contains_no_hypotactic_fields_or_provenance() -> N
182
  "component_line_index", "parent_sentence_ids", "hypotactic_file",
183
  "book", "poem_sequence", "line_number",
184
  }
185
- for suffix in (1, 10, 50, 100):
186
  for split in SPLITS:
187
  path = config_path(REPO_ROOT, "sentence", suffix, split)
188
  schema = pq.ParquetFile(path).schema_arrow
@@ -197,7 +200,7 @@ def test_sentence_publication_contains_no_hypotactic_fields_or_provenance() -> N
197
 
198
 
199
  def test_metre_publication_omits_redundant_genre_column() -> None:
200
- for suffix in (1, 10, 50, 100):
201
  for split in SPLITS:
202
  path = config_path(METRE_ROOT, "verse", suffix, split)
203
  assert "genre" not in pq.ParquetFile(path).schema_arrow.names
@@ -221,7 +224,7 @@ def test_metre_chunks_preserve_aligned_metre_and_syllable_line_units() -> None:
221
  }
222
  assert all(len(units) == 1 for units in atomic_syllables[split].values())
223
  assert all(len(units) == 1 for units in atomic_metres[split].values())
224
- for suffix in (10, 50, 100):
225
  for split in SPLITS:
226
  rows = pq.read_table(
227
  config_path(METRE_ROOT, "verse", suffix, split),
@@ -358,7 +361,7 @@ def test_metre_syntax_origin_is_explicit_and_provenance_matches() -> None:
358
  assert "stoicheia_tagger_parser" in sources
359
  assert atomic_origins == {"predicted"}
360
 
361
- for suffix in (10, 50, 100):
362
  for split in SPLITS:
363
  origins = set(pq.read_table(
364
  config_path(METRE_ROOT, "verse", suffix, split),
@@ -424,7 +427,7 @@ def test_gold_is_diagnostic_only_and_quality_metrics_are_reported() -> None:
424
 
425
 
426
  def test_scansion_is_not_published() -> None:
427
- for suffix in (1, 10, 50, 100):
428
  for split in SPLITS:
429
  path = config_path(METRE_ROOT, "verse", suffix, split)
430
  assert "scansion" not in pq.ParquetFile(path).schema_arrow.names
 
14
  load_syllable_units,
15
  syllable_line,
16
  )
17
+ from scripts.dataset_variants import BOTTLENECK_TARGET
18
  from scripts.metrical_lines import PUBLIC_METRICAL_LINE_FIELD_SET, sanitize_metrical_lines
19
  from scripts.text_units import load_text_units
20
 
 
23
  METRE_ROOT = REPO_ROOT.parent / "sphragis-metre"
24
  SPLITS = ("train", "validation", "test")
25
  PUBLICATIONS = (
26
+ (REPO_ROOT, "sentence", (1, 5, 10, 50)),
27
+ (REPO_ROOT, "source_held_out", (1, 5, 10, 50)),
28
+ (METRE_ROOT, "verse", (1, 5, 10, 50)),
29
  )
30
  # The per-author unit table in each README documents the main track only; the
31
  # source-held-out track's per-author counts live in build_report.json, because
 
126
  }
127
 
128
 
129
+ def test_all_atomic_splits_are_balanced_and_chunkable() -> None:
130
  for root, base, _suffixes in PUBLICATIONS:
131
  counts = defaultdict(Counter)
132
  for split in SPLITS:
 
139
  for author, author_counts in counts.items():
140
  assert author_counts["validation"] == author_counts["test"]
141
  for split in SPLITS:
142
+ assert author_counts[split] >= BOTTLENECK_TARGET, (base, author, split)
143
+ assert author_counts[split] % BOTTLENECK_TARGET == 0, (
144
+ base, author, split,
145
+ )
146
 
147
 
148
  def test_chunk_sizes_and_atomic_coverage_are_exact_in_every_split() -> None:
 
185
  "component_line_index", "parent_sentence_ids", "hypotactic_file",
186
  "book", "poem_sequence", "line_number",
187
  }
188
+ for suffix in (1, 5, 10, 50):
189
  for split in SPLITS:
190
  path = config_path(REPO_ROOT, "sentence", suffix, split)
191
  schema = pq.ParquetFile(path).schema_arrow
 
200
 
201
 
202
  def test_metre_publication_omits_redundant_genre_column() -> None:
203
+ for suffix in (1, 5, 10, 50):
204
  for split in SPLITS:
205
  path = config_path(METRE_ROOT, "verse", suffix, split)
206
  assert "genre" not in pq.ParquetFile(path).schema_arrow.names
 
224
  }
225
  assert all(len(units) == 1 for units in atomic_syllables[split].values())
226
  assert all(len(units) == 1 for units in atomic_metres[split].values())
227
+ for suffix in (5, 10, 50):
228
  for split in SPLITS:
229
  rows = pq.read_table(
230
  config_path(METRE_ROOT, "verse", suffix, split),
 
361
  assert "stoicheia_tagger_parser" in sources
362
  assert atomic_origins == {"predicted"}
363
 
364
+ for suffix in (5, 10, 50):
365
  for split in SPLITS:
366
  origins = set(pq.read_table(
367
  config_path(METRE_ROOT, "verse", suffix, split),
 
427
 
428
 
429
  def test_scansion_is_not_published() -> None:
430
+ for suffix in (1, 5, 10, 50):
431
  for split in SPLITS:
432
  path = config_path(METRE_ROOT, "verse", suffix, split)
433
  assert "scansion" not in pq.ParquetFile(path).schema_arrow.names
tests/test_verse_character_coverage.py CHANGED
@@ -28,9 +28,9 @@ def normalized_character_count(root: Path, config: str) -> int:
28
 
29
  def test_each_publication_has_equal_character_counts_across_task_sizes() -> None:
30
  publications = (
31
- (REPO_ROOT, "sentence", (1, 10, 50, 100)),
32
- (REPO_ROOT, "source_held_out", (1, 10, 50, 100)),
33
- (REPO_ROOT.parent / "sphragis-metre", "verse", (1, 10, 50, 100)),
34
  )
35
  for root, genre, suffixes in publications:
36
  counts = {
 
28
 
29
  def test_each_publication_has_equal_character_counts_across_task_sizes() -> None:
30
  publications = (
31
+ (REPO_ROOT, "sentence", (1, 5, 10, 50)),
32
+ (REPO_ROOT, "source_held_out", (1, 5, 10, 50)),
33
+ (REPO_ROOT.parent / "sphragis-metre", "verse", (1, 5, 10, 50)),
34
  )
35
  for root, genre, suffixes in publications:
36
  counts = {