Datasets:
Replace the 100-row task with a 5-row task and admit 11 more authors
Browse filesThe 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>
- README.md +65 -47
- data/sentence_1/test-00000-of-00001.parquet +2 -2
- data/sentence_1/train-00000-of-00001.parquet +2 -2
- data/sentence_1/validation-00000-of-00001.parquet +2 -2
- data/sentence_10/test-00000-of-00001.parquet +2 -2
- data/sentence_10/train-00000-of-00001.parquet +2 -2
- data/sentence_10/validation-00000-of-00001.parquet +2 -2
- data/{sentence_100 → sentence_5}/test-00000-of-00001.parquet +2 -2
- data/{sentence_100 → sentence_5}/train-00000-of-00001.parquet +2 -2
- data/{source_held_out_100 → sentence_5}/validation-00000-of-00001.parquet +2 -2
- data/sentence_50/test-00000-of-00001.parquet +2 -2
- data/sentence_50/train-00000-of-00001.parquet +2 -2
- data/sentence_50/validation-00000-of-00001.parquet +2 -2
- data/source_held_out_1/test-00000-of-00001.parquet +2 -2
- data/source_held_out_1/train-00000-of-00001.parquet +2 -2
- data/source_held_out_1/validation-00000-of-00001.parquet +2 -2
- data/source_held_out_10/test-00000-of-00001.parquet +2 -2
- data/source_held_out_10/train-00000-of-00001.parquet +2 -2
- data/source_held_out_10/validation-00000-of-00001.parquet +2 -2
- data/{source_held_out_100 → source_held_out_5}/test-00000-of-00001.parquet +2 -2
- data/{source_held_out_100 → source_held_out_5}/train-00000-of-00001.parquet +2 -2
- data/{sentence_100 → source_held_out_5}/validation-00000-of-00001.parquet +2 -2
- data/source_held_out_50/test-00000-of-00001.parquet +2 -2
- data/source_held_out_50/train-00000-of-00001.parquet +2 -2
- data/source_held_out_50/validation-00000-of-00001.parquet +2 -2
- inspection/sphragis.sqlite +2 -2
- metadata/build_report.json +111 -79
- metadata/dataset_variants.json +0 -0
- metadata/leakage_report.json +82 -82
- scripts/audit_leakage.py +2 -2
- scripts/build_dataset.py +24 -7
- scripts/build_sqlite_mirror.py +3 -3
- scripts/dataset_variants.py +7 -4
- scripts/validate_publication.py +1 -1
- tests/test_conllu_well_formed.py +4 -4
- tests/test_model_facing.py +1 -1
- tests/test_split_stratification.py +14 -11
- tests/test_verse_character_coverage.py +3 -3
|
@@ -35,14 +35,14 @@ configs:
|
|
| 35 |
path: data/sentence_50/validation-*
|
| 36 |
- split: test
|
| 37 |
path: data/sentence_50/test-*
|
| 38 |
-
- config_name:
|
| 39 |
data_files:
|
| 40 |
- split: train
|
| 41 |
-
path: data/
|
| 42 |
- split: validation
|
| 43 |
-
path: data/
|
| 44 |
- split: test
|
| 45 |
-
path: data/
|
| 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:
|
| 71 |
data_files:
|
| 72 |
- split: train
|
| 73 |
-
path: data/
|
| 74 |
- split: validation
|
| 75 |
-
path: data/
|
| 76 |
- split: test
|
| 77 |
-
path: data/
|
| 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-,
|
| 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` |
|
| 118 |
-
| `
|
| 119 |
-
| `
|
| 120 |
-
| `
|
| 121 |
-
| `source_held_out_1` |
|
| 122 |
-
| `
|
| 123 |
-
| `
|
| 124 |
-
| `
|
| 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. `
|
| 132 |
-
source corpus for all four tasks: an author is retained
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
|
|
|
| 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
|
| 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
|
| 154 |
|
| 155 |
| Author label | Train | Validation | Test | Total |
|
| 156 |
|---|---:|---:|---:|---:|
|
| 157 |
-
|
|
| 158 |
-
|
|
| 159 |
-
|
|
| 160 |
-
|
|
| 161 |
-
|
|
| 162 |
-
|
|
| 163 |
-
|
|
| 164 |
-
|
|
| 165 |
-
|
|
| 166 |
-
|
|
| 167 |
-
|
|
| 168 |
-
|
|
| 169 |
-
|
|
| 170 |
-
|
|
| 171 |
-
|
|
| 172 |
-
|
|
| 173 |
-
|
|
| 174 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|
| 188 |
bottleneck is then applied to all
|
| 189 |
four task sizes. The train, validation, and test source sets are all exact
|
| 190 |
-
multiples of
|
| 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
|
| 208 |
-
|
| 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 |
|
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b32ee0a4b2e1cf61921c1484f8c6b96569cdac5fdf6d9ca21906f0e98bcef51d
|
| 3 |
+
size 1696165
|
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cef082ec7a08f18581ed274ab7b068898ddb49918795cd63200d943491dd8073
|
| 3 |
+
size 14248650
|
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:68b044fd6ed307b03d58128458f729f04fad41987594c1622769174fa3c52ff2
|
| 3 |
+
size 1697530
|
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c22df82a8dbf599e2e8fc9a68391c7f51a2bbaf2d44909369c91281e99dd4d8b
|
| 3 |
+
size 1532728
|
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1a1b21d6a8bb4f65486503ba03d63c2b71bb2d4042a4fe4c20b32d5dbb13f78f
|
| 3 |
+
size 12002579
|
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:be2575d0091a4912a7a1baf861f23eb27893c3f919a52779e7c16d4f56a84074
|
| 3 |
+
size 1534640
|
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8ebccb15f5a9c0fd4c67029bc996b566f9009d219b16cc8c020bf1da04138468
|
| 3 |
+
size 1570073
|
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e26dfd1b822a8dc4e1ec1553844338161ca73205f1d7e4b9b50918431a5b0f8f
|
| 3 |
+
size 12303120
|
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7dec49899b25feb25b2f7ec88c59e151ab358afab25c31028ee0de0fb5c8f26c
|
| 3 |
+
size 1572340
|
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b81a9a8d32bbb4978eddfd2991b3b3cda533647ecd06a28a274940cbbc86d6ee
|
| 3 |
+
size 1498014
|
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1202ee01377667909c021389f2f6622e3c15b5121063f0daa86287767ac7cb10
|
| 3 |
+
size 11736592
|
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:85797da286c7ce2d954ee6a23dbab68767c39cf839ef3632aa64f582a9511411
|
| 3 |
+
size 1499780
|
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bf3cee7cf76a5dfe9173b8702e844fdd0aaa2cfcca9d69e3aa7853ef4facc7bb
|
| 3 |
+
size 1433455
|
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:25da0e17db04e5d2bae9ca19aed3e7e5b9933947bfc267359fa8577e233d4a92
|
| 3 |
+
size 7339404
|
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:129f586c39211a06693f1b55c03dbbc38eae4cb0c916f6269f67913c7abf3a24
|
| 3 |
+
size 1439141
|
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:269cdad09004ef5e433c18978d56868d25c88307b5a4bb9d812523482a20cee5
|
| 3 |
+
size 1304691
|
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:577cadae2a946bf9d7b5717f9f478fc437cc11b618bad606cf335b58278475e4
|
| 3 |
+
size 6221019
|
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2ca9e343b94ddbd9c771913c133a81c5ea44bee41ba6c7172197b21641732a39
|
| 3 |
+
size 1306240
|
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b18868d53bf167122a1e9bb052328c9cb0fff501f84bf574ebf99111269c8c79
|
| 3 |
+
size 1334461
|
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8552f9e5fd510f134af266625dd26de43000263b8ab5d3e259f3e20d4cb718d0
|
| 3 |
+
size 6376410
|
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8ff4a54aa19ea55490d778a8d7fbfb195ef102aa140a6a97657931f455142666
|
| 3 |
+
size 1336537
|
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:45309782ef524a3b6a5838b67c743096db9ded926972b06a1a891daa5cc88604
|
| 3 |
+
size 1279177
|
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4cad1a114c486e52057cb2482b0c4ae9918bfb1b2ada9033fba0cbf96bd728b6
|
| 3 |
+
size 6068124
|
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b0d0250479673803237db667d6d192a1398ad4e2bf92cfcc2ec46a1ce162251f
|
| 3 |
+
size 1280679
|
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ba6b76242957da26d71b753c58f90b5f41e6fdf8511cc7aba7ea1ca79177828f
|
| 3 |
+
size 2385051648
|
|
@@ -355,44 +355,44 @@
|
|
| 355 |
},
|
| 356 |
"data_files": {
|
| 357 |
"sentence_1": {
|
| 358 |
-
"test":
|
| 359 |
-
"train":
|
| 360 |
-
"validation":
|
| 361 |
},
|
| 362 |
"sentence_10": {
|
| 363 |
-
"test":
|
| 364 |
-
"train":
|
| 365 |
-
"validation":
|
| 366 |
},
|
| 367 |
-
"
|
| 368 |
-
"test":
|
| 369 |
-
"train":
|
| 370 |
-
"validation":
|
| 371 |
},
|
| 372 |
"sentence_50": {
|
| 373 |
-
"test":
|
| 374 |
-
"train":
|
| 375 |
-
"validation":
|
| 376 |
},
|
| 377 |
"source_held_out_1": {
|
| 378 |
-
"test":
|
| 379 |
-
"train":
|
| 380 |
-
"validation":
|
| 381 |
},
|
| 382 |
"source_held_out_10": {
|
| 383 |
-
"test":
|
| 384 |
-
"train":
|
| 385 |
-
"validation":
|
| 386 |
},
|
| 387 |
-
"
|
| 388 |
-
"test":
|
| 389 |
-
"train":
|
| 390 |
-
"validation":
|
| 391 |
},
|
| 392 |
"source_held_out_50": {
|
| 393 |
-
"test":
|
| 394 |
-
"train":
|
| 395 |
-
"validation":
|
| 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
|
| 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
|
| 1163 |
"sources": {
|
| 1164 |
"agdt": 1,
|
| 1165 |
"gorman": 3804
|
|
@@ -1196,9 +1203,10 @@
|
|
| 1196 |
}
|
| 1197 |
}
|
| 1198 |
},
|
| 1199 |
-
"minimum_rows_per_split":
|
| 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":
|
| 1243 |
"genres": [
|
| 1244 |
"prose",
|
| 1245 |
"verse"
|
| 1246 |
],
|
| 1247 |
-
"rows":
|
| 1248 |
"splits": {
|
| 1249 |
-
"test":
|
| 1250 |
-
"train":
|
| 1251 |
-
"validation":
|
| 1252 |
}
|
| 1253 |
},
|
| 1254 |
"sentence_10": {
|
| 1255 |
-
"authors":
|
| 1256 |
"genres": [
|
| 1257 |
"prose",
|
| 1258 |
"verse"
|
| 1259 |
],
|
| 1260 |
-
"rows":
|
| 1261 |
"splits": {
|
| 1262 |
-
"test":
|
| 1263 |
-
"train":
|
| 1264 |
-
"validation":
|
| 1265 |
}
|
| 1266 |
},
|
| 1267 |
-
"
|
| 1268 |
-
"authors":
|
| 1269 |
"genres": [
|
| 1270 |
"prose",
|
| 1271 |
"verse"
|
| 1272 |
],
|
| 1273 |
-
"rows":
|
| 1274 |
"splits": {
|
| 1275 |
-
"test":
|
| 1276 |
-
"train":
|
| 1277 |
-
"validation":
|
| 1278 |
}
|
| 1279 |
},
|
| 1280 |
"sentence_50": {
|
| 1281 |
-
"authors":
|
| 1282 |
"genres": [
|
| 1283 |
"prose",
|
| 1284 |
"verse"
|
| 1285 |
],
|
| 1286 |
-
"rows":
|
| 1287 |
"splits": {
|
| 1288 |
-
"test":
|
| 1289 |
-
"train":
|
| 1290 |
-
"validation":
|
| 1291 |
}
|
| 1292 |
},
|
| 1293 |
"source_held_out_1": {
|
| 1294 |
-
"authors":
|
| 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":
|
| 1375 |
"splits": {
|
| 1376 |
-
"test":
|
| 1377 |
-
"train":
|
| 1378 |
-
"validation":
|
| 1379 |
}
|
| 1380 |
},
|
| 1381 |
"source_held_out_10": {
|
| 1382 |
-
"authors":
|
| 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":
|
| 1463 |
"splits": {
|
| 1464 |
-
"test":
|
| 1465 |
-
"train":
|
| 1466 |
-
"validation":
|
| 1467 |
}
|
| 1468 |
},
|
| 1469 |
-
"
|
| 1470 |
-
"authors":
|
| 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":
|
| 1551 |
"splits": {
|
| 1552 |
-
"test":
|
| 1553 |
-
"train":
|
| 1554 |
-
"validation":
|
| 1555 |
}
|
| 1556 |
},
|
| 1557 |
"source_held_out_50": {
|
| 1558 |
-
"authors":
|
| 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":
|
| 1639 |
"splits": {
|
| 1640 |
-
"test":
|
| 1641 |
-
"train":
|
| 1642 |
-
"validation":
|
| 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 |
}
|
|
The diff for this file is too large to render.
See raw diff
|
|
|
|
@@ -1,196 +1,196 @@
|
|
| 1 |
{
|
| 2 |
"configurations": {
|
| 3 |
"sentence_1": {
|
| 4 |
-
"authors":
|
| 5 |
"inventory_to_author": {
|
| 6 |
-
"accuracy":
|
| 7 |
"features": 50,
|
| 8 |
-
"macro_f1":
|
| 9 |
},
|
| 10 |
"majority_baseline": {
|
| 11 |
-
"accuracy":
|
| 12 |
"features": 0,
|
| 13 |
-
"macro_f1":
|
| 14 |
},
|
| 15 |
"markup_to_author": {
|
| 16 |
-
"accuracy":
|
| 17 |
"features": 64,
|
| 18 |
-
"macro_f1":
|
| 19 |
},
|
| 20 |
"markup_to_treebank_source": {
|
| 21 |
-
"accuracy":
|
| 22 |
"features": 64,
|
| 23 |
-
"macro_f1":
|
| 24 |
},
|
| 25 |
-
"test_rows":
|
| 26 |
},
|
| 27 |
"sentence_10": {
|
| 28 |
-
"authors":
|
| 29 |
"inventory_to_author": {
|
| 30 |
-
"accuracy":
|
| 31 |
"features": 50,
|
| 32 |
-
"macro_f1":
|
| 33 |
},
|
| 34 |
"majority_baseline": {
|
| 35 |
-
"accuracy":
|
| 36 |
"features": 0,
|
| 37 |
-
"macro_f1":
|
| 38 |
},
|
| 39 |
"markup_to_author": {
|
| 40 |
-
"accuracy":
|
| 41 |
"features": 64,
|
| 42 |
-
"macro_f1":
|
| 43 |
},
|
| 44 |
"markup_to_treebank_source": {
|
| 45 |
-
"accuracy":
|
| 46 |
"features": 64,
|
| 47 |
-
"macro_f1":
|
| 48 |
},
|
| 49 |
-
"test_rows":
|
| 50 |
},
|
| 51 |
-
"
|
| 52 |
-
"authors":
|
| 53 |
"inventory_to_author": {
|
| 54 |
-
"accuracy":
|
| 55 |
"features": 50,
|
| 56 |
-
"macro_f1":
|
| 57 |
},
|
| 58 |
"majority_baseline": {
|
| 59 |
-
"accuracy":
|
| 60 |
"features": 0,
|
| 61 |
-
"macro_f1":
|
| 62 |
},
|
| 63 |
"markup_to_author": {
|
| 64 |
-
"accuracy":
|
| 65 |
"features": 64,
|
| 66 |
-
"macro_f1":
|
| 67 |
},
|
| 68 |
"markup_to_treebank_source": {
|
| 69 |
-
"accuracy":
|
| 70 |
"features": 64,
|
| 71 |
-
"macro_f1":
|
| 72 |
},
|
| 73 |
-
"test_rows":
|
| 74 |
},
|
| 75 |
"sentence_50": {
|
| 76 |
-
"authors":
|
| 77 |
"inventory_to_author": {
|
| 78 |
-
"accuracy":
|
| 79 |
"features": 50,
|
| 80 |
-
"macro_f1":
|
| 81 |
},
|
| 82 |
"majority_baseline": {
|
| 83 |
-
"accuracy":
|
| 84 |
"features": 0,
|
| 85 |
-
"macro_f1":
|
| 86 |
},
|
| 87 |
"markup_to_author": {
|
| 88 |
-
"accuracy":
|
| 89 |
"features": 64,
|
| 90 |
-
"macro_f1":
|
| 91 |
},
|
| 92 |
"markup_to_treebank_source": {
|
| 93 |
-
"accuracy": 73.
|
| 94 |
"features": 64,
|
| 95 |
-
"macro_f1":
|
| 96 |
},
|
| 97 |
-
"test_rows":
|
| 98 |
},
|
| 99 |
"source_held_out_1": {
|
| 100 |
-
"authors":
|
| 101 |
"inventory_to_author": {
|
| 102 |
-
"accuracy":
|
| 103 |
"features": 50,
|
| 104 |
-
"macro_f1":
|
| 105 |
},
|
| 106 |
"majority_baseline": {
|
| 107 |
-
"accuracy":
|
| 108 |
"features": 0,
|
| 109 |
-
"macro_f1": 1.
|
| 110 |
},
|
| 111 |
"markup_to_author": {
|
| 112 |
-
"accuracy":
|
| 113 |
"features": 64,
|
| 114 |
-
"macro_f1":
|
| 115 |
},
|
| 116 |
"markup_to_treebank_source": {
|
| 117 |
-
"accuracy":
|
| 118 |
"features": 64,
|
| 119 |
-
"macro_f1":
|
| 120 |
},
|
| 121 |
-
"test_rows":
|
| 122 |
},
|
| 123 |
"source_held_out_10": {
|
| 124 |
-
"authors":
|
| 125 |
"inventory_to_author": {
|
| 126 |
-
"accuracy":
|
| 127 |
"features": 50,
|
| 128 |
-
"macro_f1":
|
| 129 |
},
|
| 130 |
"majority_baseline": {
|
| 131 |
-
"accuracy":
|
| 132 |
"features": 0,
|
| 133 |
-
"macro_f1": 1.
|
| 134 |
},
|
| 135 |
"markup_to_author": {
|
| 136 |
-
"accuracy":
|
| 137 |
"features": 64,
|
| 138 |
-
"macro_f1":
|
| 139 |
},
|
| 140 |
"markup_to_treebank_source": {
|
| 141 |
-
"accuracy":
|
| 142 |
"features": 64,
|
| 143 |
-
"macro_f1":
|
| 144 |
},
|
| 145 |
-
"test_rows":
|
| 146 |
},
|
| 147 |
-
"
|
| 148 |
-
"authors":
|
| 149 |
"inventory_to_author": {
|
| 150 |
-
"accuracy":
|
| 151 |
"features": 50,
|
| 152 |
-
"macro_f1":
|
| 153 |
},
|
| 154 |
"majority_baseline": {
|
| 155 |
-
"accuracy":
|
| 156 |
"features": 0,
|
| 157 |
-
"macro_f1": 1.
|
| 158 |
},
|
| 159 |
"markup_to_author": {
|
| 160 |
-
"accuracy":
|
| 161 |
"features": 64,
|
| 162 |
-
"macro_f1":
|
| 163 |
},
|
| 164 |
"markup_to_treebank_source": {
|
| 165 |
-
"accuracy":
|
| 166 |
"features": 64,
|
| 167 |
-
"macro_f1":
|
| 168 |
},
|
| 169 |
-
"test_rows":
|
| 170 |
},
|
| 171 |
"source_held_out_50": {
|
| 172 |
-
"authors":
|
| 173 |
"inventory_to_author": {
|
| 174 |
-
"accuracy":
|
| 175 |
"features": 50,
|
| 176 |
-
"macro_f1":
|
| 177 |
},
|
| 178 |
"majority_baseline": {
|
| 179 |
-
"accuracy":
|
| 180 |
"features": 0,
|
| 181 |
-
"macro_f1": 1.
|
| 182 |
},
|
| 183 |
"markup_to_author": {
|
| 184 |
-
"accuracy":
|
| 185 |
"features": 64,
|
| 186 |
-
"macro_f1":
|
| 187 |
},
|
| 188 |
"markup_to_treebank_source": {
|
| 189 |
-
"accuracy":
|
| 190 |
"features": 64,
|
| 191 |
-
"macro_f1":
|
| 192 |
},
|
| 193 |
-
"test_rows":
|
| 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": {
|
|
@@ -139,8 +139,8 @@ def main() -> None:
|
|
| 139 |
parser.add_argument(
|
| 140 |
"--configs", nargs="*",
|
| 141 |
default=[
|
| 142 |
-
*(f"sentence_{suffix}" for suffix in (1,
|
| 143 |
-
*(f"source_held_out_{suffix}" for suffix in (1,
|
| 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()
|
|
@@ -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 |
-
|
| 1748 |
-
|
| 1749 |
-
extra = set(predictions) - set(eligible)
|
| 1750 |
raise ValueError(
|
| 1751 |
-
f"Stoicheia cache is incomplete
|
|
|
|
| 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 =
|
| 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":
|
|
|
|
|
|
|
|
|
|
| 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", "
|
| 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),
|
|
@@ -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", "
|
| 20 |
-
+ tuple(f"source_held_out_{suffix}" for suffix in ("1", "
|
| 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", "
|
| 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)
|
|
@@ -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": (
|
| 31 |
-
"source_held_out": (
|
| 32 |
-
"verse_metre": (
|
| 33 |
}
|
| 34 |
PUBLIC_CONFIG_PREFIX = {
|
| 35 |
"sentence": "sentence",
|
| 36 |
"source_held_out": "source_held_out",
|
| 37 |
"verse_metre": "verse",
|
| 38 |
}
|
| 39 |
-
|
|
|
|
|
|
|
|
|
|
| 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 = (
|
|
@@ -85,7 +85,7 @@ def normalize(value: str) -> str:
|
|
| 85 |
|
| 86 |
|
| 87 |
def configs(publication: str) -> tuple[str, ...]:
|
| 88 |
-
suffixes = (1,
|
| 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),
|
|
@@ -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", "
|
| 23 |
-
+ [(DATA_ROOT, f"source_held_out_{suffix}") for suffix in ("1", "
|
| 24 |
-
+ [(METRE_DATA_ROOT, f"verse_{suffix}") for suffix in ("1", "
|
| 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", "
|
| 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():
|
|
@@ -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", "
|
| 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"))
|
|
@@ -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,
|
| 26 |
-
(REPO_ROOT, "source_held_out", (1,
|
| 27 |
-
(METRE_ROOT, "verse", (1,
|
| 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
|
| 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] >=
|
| 142 |
-
assert author_counts[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,
|
| 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,
|
| 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 (
|
| 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 (
|
| 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,
|
| 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
|
|
@@ -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,
|
| 32 |
-
(REPO_ROOT, "source_held_out", (1,
|
| 33 |
-
(REPO_ROOT.parent / "sphragis-metre", "verse", (1,
|
| 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 = {
|