@mailwoman/corpus 11.5.0 → 12.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (232) hide show
  1. package/data/address-source-register.json +545 -11
  2. package/data/builds/v0.8.22-wofrank-overlay/OVERLAY_PLAN.json +51 -0
  3. package/data/builds/v0.8.24-everyplace/inputs.json +35 -0
  4. package/data/license-decisions.json +440 -9
  5. package/data/licenses/PROVENANCE.md +27 -18
  6. package/data/licenses/at-bev-adressregister-cc-by-4.0.md +25 -0
  7. package/data/licenses/br-ibge-cnefe-open-data.md +21 -0
  8. package/data/licenses/ca-qc-mrnf-cc-by-4.0.md +29 -0
  9. package/data/licenses/ca-statcan-open-licence.md +41 -0
  10. package/data/licenses/ca-yukon-ogl-2.0.md +19 -0
  11. package/data/licenses/dk-dmikg-cc-by-4.0.md +43 -0
  12. package/data/licenses/jp-mlit-isj-pdl-1.0.md +35 -0
  13. package/data/source-additions.json +90 -0
  14. package/data/source-resolutions.json +3 -2
  15. package/data/training-configs/v8.17.0-stage1-gazetteer-v0822-s42.yaml +557 -0
  16. package/data/training-configs/v8.17.0-stage2-corpus-v0822-s42.yaml +1008 -0
  17. package/data/training-configs/v8.18.0-gazetteer-then-mixture-v0822-s42.yaml +1225 -0
  18. package/data/training-configs/v8.20.0-wofrank-v0822-s42.yaml +863 -0
  19. package/data/training-configs/v8.21.0-outcomes-v0822-s42.yaml +873 -0
  20. package/data/training-configs/v8.22.0-stage1-everyplace-v0824-s42.yaml +374 -0
  21. package/data/training-configs/v8.22.0-stage2-corpus-v0824-s42.yaml +808 -0
  22. package/data/training-configs/v8.22.1-stage1-everyplace-v0824-s42.yaml +376 -0
  23. package/data/training-configs/v8.22.1-stage2-corpus-v0824-s42.yaml +793 -0
  24. package/data/training-configs/v9.0.0-bytestem-v090-s42.yaml +665 -0
  25. package/data/training-configs/v9.1.0-bytestem-global-v091-s42.yaml +710 -0
  26. package/data/training-configs/v9.2.0-bytestem-global-v092-s42.yaml +714 -0
  27. package/data/training-manifests/v0.8.22-wofrank-overlay.json +9000 -0
  28. package/data/training-manifests/v0.8.24-everyplace-overlay.json +9000 -0
  29. package/data/training-manifests/v0.9.0-compact.effective.json +2556 -0
  30. package/data/training-manifests/v0.9.0-compact.json +9000 -0
  31. package/data/training-manifests/v0.9.1-compact.json +9660 -0
  32. package/data/training-manifests/v0.9.2-compact.effective.json +2670 -0
  33. package/data/training-manifests/v0.9.2-compact.json +9660 -0
  34. package/lib/adapters/geonames/features/adapter.ts +29 -11
  35. package/lib/adapters/overture/adapter.ts +26 -6
  36. package/lib/adapters/street/line.ts +6 -5
  37. package/lib/adapters/street/unit.ts +7 -0
  38. package/lib/adapters/wof/admin/json/adapter.ts +38 -3
  39. package/lib/adapters/wof/json-rows.ts +84 -5
  40. package/lib/adapters/wof/sample.ts +42 -6
  41. package/lib/au/adapters/gnaf/source.ts +12 -0
  42. package/lib/build/code-hash.ts +1 -1
  43. package/lib/cjk/foreign-places.ts +1 -1
  44. package/lib/fr/adapters/ban/adapter.ts +57 -8
  45. package/lib/fr/recipes/admin-split.ts +14 -2
  46. package/lib/fr/recipes/lieudit.ts +1 -1
  47. package/lib/fr/recipes/order.ts +14 -5
  48. package/lib/international/recipes/locale.ts +1 -1
  49. package/lib/kr/adapters/localdata/permit-rows.ts +1 -1
  50. package/lib/parquet/schema.ts +7 -0
  51. package/lib/recipes/po/box/cedex/recipe.ts +1 -1
  52. package/lib/recipes/po/box/cedex/vocabulary.ts +4 -4
  53. package/lib/recipes/trailing-region.ts +147 -17
  54. package/lib/synthesizers/po-box.ts +51 -12
  55. package/lib/test-kit/corpus-recipe.ts +3 -0
  56. package/lib/tools/anthropic/batches.ts +221 -0
  57. package/lib/tools/anthropic/labeling.ts +263 -0
  58. package/lib/tools/compact-v9.ts +890 -0
  59. package/lib/tools/fetch/wikidata/vital-places/entities.ts +20 -2
  60. package/lib/tools/fetch/wikidata/vital-places/qrank.ts +5 -4
  61. package/lib/tools/fragment-assay.run.ts +2 -1
  62. package/lib/tools/name-roles/name-roles.run.ts +296 -0
  63. package/lib/tools/name-roles/prompt.ts +253 -0
  64. package/lib/tools/overlay/deletions.ts +1 -1
  65. package/lib/tools/overlay/draw-weight.ts +275 -0
  66. package/lib/tools/place-twins/place-twins.run.ts +528 -0
  67. package/lib/tools/place-twins/prompt.ts +276 -0
  68. package/lib/tools/prominent-shapes/prominent-shapes.run.ts +420 -0
  69. package/lib/tools/prominent-shapes/prompt.ts +189 -0
  70. package/lib/tools/prominent-shapes/read-seeds.ts +286 -0
  71. package/lib/tools/prominent-shapes/seeds.ts +281 -0
  72. package/lib/tools/prominent-shapes/validate.ts +563 -0
  73. package/lib/tools/source-register/build.ts +1 -0
  74. package/lib/training/config/admission.ts +9 -2
  75. package/lib/training/config/schema.ts +68 -1
  76. package/lib/types.ts +23 -0
  77. package/lib/us/adapters/usgov/usgs-structures/adapter.ts +103 -6
  78. package/lib/utils/split.ts +1 -1
  79. package/out/adapters/geonames/features/adapter.d.ts +2 -2
  80. package/out/adapters/geonames/features/adapter.d.ts.map +1 -1
  81. package/out/adapters/geonames/features/adapter.js +25 -11
  82. package/out/adapters/geonames/features/adapter.js.map +1 -1
  83. package/out/adapters/overture/adapter.d.ts.map +1 -1
  84. package/out/adapters/overture/adapter.js +21 -5
  85. package/out/adapters/overture/adapter.js.map +1 -1
  86. package/out/adapters/street/line.d.ts +4 -4
  87. package/out/adapters/street/line.d.ts.map +1 -1
  88. package/out/adapters/street/line.js +5 -5
  89. package/out/adapters/street/line.js.map +1 -1
  90. package/out/adapters/street/unit.d.ts +4 -0
  91. package/out/adapters/street/unit.d.ts.map +1 -1
  92. package/out/adapters/street/unit.js +3 -0
  93. package/out/adapters/street/unit.js.map +1 -1
  94. package/out/adapters/wof/admin/json/adapter.d.ts +7 -0
  95. package/out/adapters/wof/admin/json/adapter.d.ts.map +1 -1
  96. package/out/adapters/wof/admin/json/adapter.js +28 -3
  97. package/out/adapters/wof/admin/json/adapter.js.map +1 -1
  98. package/out/adapters/wof/json-rows.d.ts +8 -0
  99. package/out/adapters/wof/json-rows.d.ts.map +1 -1
  100. package/out/adapters/wof/json-rows.js +56 -4
  101. package/out/adapters/wof/json-rows.js.map +1 -1
  102. package/out/adapters/wof/sample.d.ts +12 -0
  103. package/out/adapters/wof/sample.d.ts.map +1 -1
  104. package/out/adapters/wof/sample.js +37 -6
  105. package/out/adapters/wof/sample.js.map +1 -1
  106. package/out/au/adapters/gnaf/source.d.ts +9 -0
  107. package/out/au/adapters/gnaf/source.d.ts.map +1 -1
  108. package/out/au/adapters/gnaf/source.js +9 -0
  109. package/out/au/adapters/gnaf/source.js.map +1 -1
  110. package/out/build/code-hash.js +1 -1
  111. package/out/build/code-hash.js.map +1 -1
  112. package/out/cjk/foreign-places.js +1 -1
  113. package/out/cjk/foreign-places.js.map +1 -1
  114. package/out/fr/adapters/ban/adapter.d.ts.map +1 -1
  115. package/out/fr/adapters/ban/adapter.js +49 -7
  116. package/out/fr/adapters/ban/adapter.js.map +1 -1
  117. package/out/fr/recipes/admin-split.d.ts.map +1 -1
  118. package/out/fr/recipes/admin-split.js +15 -2
  119. package/out/fr/recipes/admin-split.js.map +1 -1
  120. package/out/fr/recipes/lieudit.js +1 -1
  121. package/out/fr/recipes/lieudit.js.map +1 -1
  122. package/out/fr/recipes/order.d.ts.map +1 -1
  123. package/out/fr/recipes/order.js +16 -5
  124. package/out/fr/recipes/order.js.map +1 -1
  125. package/out/international/recipes/locale.js +1 -1
  126. package/out/international/recipes/locale.js.map +1 -1
  127. package/out/kr/adapters/localdata/permit-rows.js +1 -1
  128. package/out/kr/adapters/localdata/permit-rows.js.map +1 -1
  129. package/out/parquet/schema.d.ts +6 -0
  130. package/out/parquet/schema.d.ts.map +1 -1
  131. package/out/parquet/schema.js +6 -0
  132. package/out/parquet/schema.js.map +1 -1
  133. package/out/recipes/po/box/cedex/recipe.js +1 -1
  134. package/out/recipes/po/box/cedex/recipe.js.map +1 -1
  135. package/out/recipes/po/box/cedex/vocabulary.d.ts +1 -1
  136. package/out/recipes/po/box/cedex/vocabulary.d.ts.map +1 -1
  137. package/out/recipes/po/box/cedex/vocabulary.js +4 -4
  138. package/out/recipes/po/box/cedex/vocabulary.js.map +1 -1
  139. package/out/recipes/trailing-region.d.ts.map +1 -1
  140. package/out/recipes/trailing-region.js +122 -17
  141. package/out/recipes/trailing-region.js.map +1 -1
  142. package/out/synthesizers/po-box.d.ts +7 -0
  143. package/out/synthesizers/po-box.d.ts.map +1 -1
  144. package/out/synthesizers/po-box.js +36 -12
  145. package/out/synthesizers/po-box.js.map +1 -1
  146. package/out/test-kit/corpus-recipe.d.ts +3 -0
  147. package/out/test-kit/corpus-recipe.d.ts.map +1 -1
  148. package/out/test-kit/corpus-recipe.js.map +1 -1
  149. package/out/tools/anthropic/batches.d.ts +117 -0
  150. package/out/tools/anthropic/batches.d.ts.map +1 -0
  151. package/out/tools/anthropic/batches.js +141 -0
  152. package/out/tools/anthropic/batches.js.map +1 -0
  153. package/out/tools/anthropic/labeling.d.ts +97 -0
  154. package/out/tools/anthropic/labeling.d.ts.map +1 -0
  155. package/out/tools/anthropic/labeling.js +146 -0
  156. package/out/tools/anthropic/labeling.js.map +1 -0
  157. package/out/tools/compact-v9.d.ts +124 -0
  158. package/out/tools/compact-v9.d.ts.map +1 -0
  159. package/out/tools/compact-v9.js +507 -0
  160. package/out/tools/compact-v9.js.map +1 -0
  161. package/out/tools/fetch/wikidata/vital-places/entities.d.ts +3 -0
  162. package/out/tools/fetch/wikidata/vital-places/entities.d.ts.map +1 -1
  163. package/out/tools/fetch/wikidata/vital-places/entities.js +19 -1
  164. package/out/tools/fetch/wikidata/vital-places/entities.js.map +1 -1
  165. package/out/tools/fetch/wikidata/vital-places/qrank.d.ts.map +1 -1
  166. package/out/tools/fetch/wikidata/vital-places/qrank.js +4 -4
  167. package/out/tools/fetch/wikidata/vital-places/qrank.js.map +1 -1
  168. package/out/tools/fragment-assay.run.js +1 -1
  169. package/out/tools/fragment-assay.run.js.map +1 -1
  170. package/out/tools/name-roles/name-roles.run.d.ts +2 -0
  171. package/out/tools/name-roles/name-roles.run.d.ts.map +1 -0
  172. package/out/tools/name-roles/name-roles.run.js +230 -0
  173. package/out/tools/name-roles/name-roles.run.js.map +1 -0
  174. package/out/tools/name-roles/prompt.d.ts +166 -0
  175. package/out/tools/name-roles/prompt.d.ts.map +1 -0
  176. package/out/tools/name-roles/prompt.js +176 -0
  177. package/out/tools/name-roles/prompt.js.map +1 -0
  178. package/out/tools/overlay/deletions.js +1 -1
  179. package/out/tools/overlay/deletions.js.map +1 -1
  180. package/out/tools/overlay/draw-weight.d.ts +86 -0
  181. package/out/tools/overlay/draw-weight.d.ts.map +1 -0
  182. package/out/tools/overlay/draw-weight.js +131 -0
  183. package/out/tools/overlay/draw-weight.js.map +1 -0
  184. package/out/tools/place-twins/place-twins.run.d.ts +2 -0
  185. package/out/tools/place-twins/place-twins.run.d.ts.map +1 -0
  186. package/out/tools/place-twins/place-twins.run.js +385 -0
  187. package/out/tools/place-twins/place-twins.run.js.map +1 -0
  188. package/out/tools/place-twins/prompt.d.ts +169 -0
  189. package/out/tools/place-twins/prompt.d.ts.map +1 -0
  190. package/out/tools/place-twins/prompt.js +183 -0
  191. package/out/tools/place-twins/prompt.js.map +1 -0
  192. package/out/tools/prominent-shapes/prominent-shapes.run.d.ts +2 -0
  193. package/out/tools/prominent-shapes/prominent-shapes.run.d.ts.map +1 -0
  194. package/out/tools/prominent-shapes/prominent-shapes.run.js +302 -0
  195. package/out/tools/prominent-shapes/prominent-shapes.run.js.map +1 -0
  196. package/out/tools/prominent-shapes/prompt.d.ts +74 -0
  197. package/out/tools/prominent-shapes/prompt.d.ts.map +1 -0
  198. package/out/tools/prominent-shapes/prompt.js +156 -0
  199. package/out/tools/prominent-shapes/prompt.js.map +1 -0
  200. package/out/tools/prominent-shapes/read-seeds.d.ts +23 -0
  201. package/out/tools/prominent-shapes/read-seeds.d.ts.map +1 -0
  202. package/out/tools/prominent-shapes/read-seeds.js +219 -0
  203. package/out/tools/prominent-shapes/read-seeds.js.map +1 -0
  204. package/out/tools/prominent-shapes/seeds.d.ts +132 -0
  205. package/out/tools/prominent-shapes/seeds.d.ts.map +1 -0
  206. package/out/tools/prominent-shapes/seeds.js +178 -0
  207. package/out/tools/prominent-shapes/seeds.js.map +1 -0
  208. package/out/tools/prominent-shapes/validate.d.ts +152 -0
  209. package/out/tools/prominent-shapes/validate.d.ts.map +1 -0
  210. package/out/tools/prominent-shapes/validate.js +389 -0
  211. package/out/tools/prominent-shapes/validate.js.map +1 -0
  212. package/out/tools/source-register/build.d.ts.map +1 -1
  213. package/out/tools/source-register/build.js +1 -0
  214. package/out/tools/source-register/build.js.map +1 -1
  215. package/out/training/config/admission.d.ts +2 -1
  216. package/out/training/config/admission.d.ts.map +1 -1
  217. package/out/training/config/admission.js +9 -2
  218. package/out/training/config/admission.js.map +1 -1
  219. package/out/training/config/schema.d.ts +276 -1
  220. package/out/training/config/schema.d.ts.map +1 -1
  221. package/out/training/config/schema.js +64 -1
  222. package/out/training/config/schema.js.map +1 -1
  223. package/out/types.d.ts +21 -0
  224. package/out/types.d.ts.map +1 -1
  225. package/out/types.js +13 -0
  226. package/out/types.js.map +1 -1
  227. package/out/us/adapters/usgov/usgs-structures/adapter.d.ts.map +1 -1
  228. package/out/us/adapters/usgov/usgs-structures/adapter.js +78 -4
  229. package/out/us/adapters/usgov/usgs-structures/adapter.js.map +1 -1
  230. package/out/utils/split.js +1 -1
  231. package/out/utils/split.js.map +1 -1
  232. package/package.json +24 -24
@@ -0,0 +1,557 @@
1
+ # v8.17.0-stage1-gazetteer-v0822-s42 is one of the two stages of v8.17.0 (#3531), derived on 2026-11-27 from
2
+ # v8.16.0-base-c6-wofreps-positions-v0822-s42.yaml by scratchpad/2026/11/27/derive-v8170-stages.ts.
3
+ #
4
+ # Stage 1 trains every `wof-admin` train row of corpus v0.8.22 once, reading the corpus's existing train files in
5
+ # their stored order (`data.read_order: stored`), with no source draw, shuffle or seed. `wof-postalcode` is out of
6
+ # v8.17.0 by the operator's decision of 2026-11-27, so it weighs 0.0 here and in stage 2. Every other source weighs
7
+ # 0.0 and `train_rows_per_epoch` is null. `country_weights` adds XK, XS, UN, XZ and XN at 1.0: WOF writes these
8
+ # codes outside ISO 3166-1 on 18,211 `wof-admin` train rows, and the sampler skips a row whose country
9
+ # `country_weights` leaves out. With them every one of the 2,780,333 `wof-admin` train rows (`sourceRowCounts`)
10
+ # is admitted, so `max_steps` is ceil(2,780,333 / 512) = 5,431.
11
+ # `source_reps`, `source_emit_factors`, `required_corpus_receipts` and `prominent_place_coverage` are left out,
12
+ # because they describe the stage-2 mixture. `required_validation_coverage` is left out because its audit reads
13
+ # the admitted countries through `weightedCountries`, which refuses the five codes above. Stage 2 keeps it, and
14
+ # stage 2's model is the one graded. `fisher_capture` is false for the same reason.
15
+ # `train.cuda_graph` is false: its first capture failed on the A100 (2026-11-27, run 8758701bc86349c1) because
16
+ # `cross_entropy_loss` with label smoothing calls `masked_select`, whose `nonzero` syncs with the host (#3531).
17
+ #
18
+ # Both stages train at batch 512 (#3531). `learning_rate` is v8.16.0's 5.0e-4 times the square root of the batch
19
+ # ratio, 1.0e-3, and the step-counted keys keep v8.16.0's row counts: `warmup_steps` 1000 → 250, `eval_every_steps`
20
+ # 2000 → 500, `save_every_steps` 5000 → 1250, `log_every_steps` 100 → 25 and `fisher_capture_last_n_steps`
21
+ # 2000 → 500. `eval_batch_size` stays 128.
22
+ #
23
+ # The notes that follow are v8.16.0's.
24
+ #
25
+ # v8.16.0-base-c6-wofreps-positions-v0822-s42 is v8.15.0-base-c6-wofreps-cursor-emit-v0822-s42.yaml with its run
26
+ # renamed, drafted on 2026-11-27 (#3516). Every key below the notes is v8.15.0's but `train.output_dir` and
27
+ # `train.trackio_run_name`. The trainer image it launches on builds two changes:
28
+ #
29
+ # 1. The sampler starts each epoch's spread row group where the run's earlier epochs stopped reading it
30
+ # (b62c9b9abd). v8.15.0 placed epoch e at (e - 1) times the group's expected draws, and an epoch's emitted-row
31
+ # limit stops it short of them. `wof-admin` drew 2,815,421 times against 2,780,333 train rows, and 419,900 rows
32
+ # were never drawn, while 407,229 rows repeated four or more epochs after their first draw.
33
+ # 2. AdamW and the gradient clip run libtorch's multi-tensor kernels on CUDA (c322f4a89c). On the CPU the two
34
+ # kernels agree within 1e-6 after 20 steps. On CUDA the update rounds differently from the per-tensor kernel.
35
+ #
36
+ # v8.15.0 parsed 118,499 of the 131,823 development rows exactly, against the shipped 11.4.0's 118,368.
37
+ #
38
+ # The notes that follow are v8.15.0's.
39
+ #
40
+ # v8.15.0-base-c6-wofreps-cursor-emit-v0822-s42 is v8.14.0-base-c6-wofreps-cursor-v0822-s42.yaml with
41
+ # `data.source_emit_factors` and `train.max_steps` 126000, drafted on 2026-11-26 (#3516).
42
+ #
43
+ # A `source_reps` target counts emitted rows, and the emit step's augmented copies make some sources emit more rows
44
+ # per draw than others: in v8.14.0 `wof-admin` realized 2,277,277 rows against its derived 2,780,333 (0.82), and
45
+ # `usgov-usgs-structures` 333,089 against 231,284 (1.44). The sampler divides each target by its source's factor
46
+ # (`draws_per_row` in mtf-sampler/src/source_reps.rs). The factors are v8.14.0's epoch-mixture audit's
47
+ # `distortion_vs_draw_share`, written by `node packages/mailwoman/tools/training/draw/emit-factors.run.ts --config
48
+ # v8.14.0-base-c6-wofreps-cursor-v0822-s42.yaml --audit epoch-mixture-v8.14.0-base-c6-wofreps-cursor-v0822-s42.json`.
49
+ # A source the audit's epoch emitted fewer than 2,000 rows of reads 1 (115 sources). `max_steps` keeps every
50
+ # weighted source's draws at or above v8.10.0's. The draw report (in emitted rows) lists 22 `source_reps` sources
51
+ # below v8.10.0's run, each with a factor above 1 that over-delivered under the old arithmetic and now emits its
52
+ # declared target, such as `usgov-usgs-structures` (331,013 → 231,284 emitted rows).
53
+ #
54
+ # The notes that follow are v8.14.0's.
55
+ #
56
+ # v8.14.0-base-c6-wofreps-cursor-v0822-s42 is v8.13.0-base-c6-wofreps-v0822-s42.yaml with its run renamed, drafted on
57
+ # 2026-11-26 (#3516). The trainer image it launches on builds the sampler's epoch cursor (a7fb952de4): the epochs of a
58
+ # run read each spread source's row groups in turn, where each epoch formerly read a fresh random part of them. In
59
+ # v8.13.0, 1,211,010 of wof-admin's 2,780,333 train rows were never drawn under `source_reps: 1.0`. Every key below the
60
+ # notes is v8.13.0's but `train.output_dir` and `train.trackio_run_name`.
61
+ #
62
+ # The notes that follow are v8.13.0's.
63
+ #
64
+ # v8.13.0-base-c6-wofreps-v0822-s42 is v8.10.0-base-c6-90k-v0822-s42.yaml, the shipped 11.3.0 model's config, with
65
+ # v8.12.0's training draw reallocation as its one change, drafted on 2026-11-26 (#3516). Corpus v0.8.22 is unchanged.
66
+ #
67
+ # On the development collections (131,823 rows) the shipped model parsed 117,533 rows exactly, v8.11.0 (corpus v0.8.23,
68
+ # v8.10.0's draw) 115,031 and v8.12.0 (corpus v0.8.23, the reallocated draw) 115,686. The large country losses (CH, KZ,
69
+ # ID, IR, MX) sit in both v0.8.23 models, and the draw change gained 655 rows on one corpus. This run measures the draw
70
+ # change on the shipped model's own corpus.
71
+ #
72
+ # A. `wof-admin` and `wof-postalcode` leave `source_weights` (15.0 and 7.5) for `source_reps` 1.0: one expected
73
+ # draw per training row.
74
+ # B. `rendered-prominent-places` leaves `source_weights` (3.5) for `source_reps` 20, so prominent places keep
75
+ # their share of the short admin draws against the larger WOF draw.
76
+ # C. `train.max_steps` is 122000, so every source drawn in v8.10.0's run draws no fewer rows than it drew there.
77
+ # D. Every `required_corpus_receipts` entry on a `source_reps` source states `min_fraction_of_expected: 0.9`, because a
78
+ # reps source's draws per epoch move with `max_steps` while its run total stays fixed.
79
+ # E. `train.output_dir` and `train.trackio_run_name` name the run.
80
+ #
81
+ # The notes that follow are v8.10.0's.
82
+ #
83
+ # v8.10.0-base-c6-90k-v0822-s42 is v8.9.0-base-c6-90k-v0821-s42.yaml on corpus v0.8.22, drafted on 2026-11-20 before
84
+ # that corpus exists. Every key and value is that config's except these:
85
+ #
86
+ # 1. `data.corpus_dir` is corpus v0.8.22,
87
+ # /data/corpus/versioned/v0.8.22-retention-overlay/corpus-v0.8.22-retention-overlay, built on 2026-11-22 from the
88
+ # corpus fixes landed for this cycle:
89
+ # - `wof-admin` writes a dependent locality only beside its parent locality (#3156's label policy). On v0.8.21,
90
+ # 111,355 `wof-admin` train rows in 159 countries wrote one without a locality, 104,920 of them in short admin
91
+ # shapes of one to three spans (`dependent_locality|region|country` 27,370, `dependent_locality|region` 25,377,
92
+ # bare `dependent_locality` 18,098, `dependent_locality|country` 15,484). The fixed adapter writes none of them.
93
+ # - `rendered-prominent-places` (recipe `prominent-places`) writes each country's prominent places in their short
94
+ # query shapes at the row counts the prominent-places census sets against the v0.8.22 base build
95
+ # (`tools/dev-tools/corpus/prominent/places.run.ts places`, `scan --manifest <v0.8.22 base MANIFEST.json>`,
96
+ # `tuples --config <this file>`). The counts are set in this config's expected epoch draws (point 2). A
97
+ # sub-locality pair is written `locality | region` when the child is the postal place at its own location and the
98
+ # parent's name is also a first-level WOF region's (`Brooklyn, New York`, the board's key), and
99
+ # `dependent_locality | locality` otherwise (`Camden, London`). The rule moves 276 of the table's 127,698
100
+ # ranked pairs.
101
+ # - `rendered-former-divisions` (recipe `former-divisions`, #3200) writes a former administrative division beside a
102
+ # current WOF locality its containment evidence links it to, before the locality (Google's order,
103
+ # `Redland, Avon, Bristol`) or after it, tagged `subregion` at county level and `region` at the first level. Its
104
+ # tuples come from `packages/gazetteer/tools/former-divisions.run.ts --tuples`, capped at 1,500 rows a country
105
+ # and 300 a division. The table was rebuilt on 2026-11-21 after the forks restored the 628 ceased divisions the
106
+ # superseded rule keeps (#3205). GeoNames lists 49,122 historical divisions in 112 countries, and WOF 27,141
107
+ # ceased admin records. Containment evidence makes 685 links (GeoNames hierarchy 9, retired admin codes 53, WOF
108
+ # supersession 623), and 663 divisions in 37 countries are linked, every one with a tag: locality 523,
109
+ # region 105, subregion 34, country 1. The recipe writes the 139 tagged `region` or `subregion`, and 127 of them
110
+ # cover a current settlement. The tuples hold 16,024 rows in 31 countries: AT, DE, FR, GB, MA and NO 1,500
111
+ # each, IE 908, IT 900, CH 836, CI 600, PH 560, SI 328, BH 324, AM, AO, IQ, NA, PK and ZA 300 each, KE 260,
112
+ # IR 220, SD 100, GL 80, TD 64, LY 12, BS and UA 8, LA, MO, MR and PL 4. GB's 1,500 rows cover 15 divisions,
113
+ # Avon 100 of them. The census in #3200 gives the per-country counts.
114
+ # 2. `source_weights` gives `rendered-prominent-places` 3.5: 1.16% of the epoch, 11,649 of the 1,000,000 draws.
115
+ # The receipt's demand rule is measured in this config's expected epoch draws, and the census's `tuples` step sets
116
+ # the recipe's rows so those draws, spread over its rows alike, close each cell. The rows therefore follow from
117
+ # this weight: a lower weight takes more rows, and a weight whose draws fall at or below the cells' deficits takes
118
+ # no row count. Simulated from v0.8.21 (`/mnt/mw/audits/recipe-key-conflict/`), the deficits come to 5,714 draws,
119
+ # and the recipe writes 32,616 rows (18,298 presence rows and 14,318 demand rows, US 4,475 or 13.7%), each drawn 0.36
120
+ # times an epoch. A `wof-admin` row is drawn 0.018 times, so a prominent place's row takes about 20 times a
121
+ # `wof-admin` row's draws. At 15.0 the recipe wrote 19,115 rows drawn 2.48 times each, about 130 times.
122
+ # 3. `data.prominent_place_coverage` names the census's places table for candidate-global-2026-11-19, so the launch
123
+ # preflight runs the `prominent_place_coverage` receipt (#3156 rule (a)) and binds its `PLACES.json` into the
124
+ # receipt key. The receipt measures the demand share in this config's expected epoch draws: each row at its
125
+ # source's requested share over the source's admitted rows, times its country's admission chance. A place in a
126
+ # country `country_weights` leaves out isn't required. `country_weights` admits at 1.0, as it does every other
127
+ # country, the 35 countries v8.9.0 left out that hold selected places on the 2026-11-19 table (518 places, YE 124
128
+ # and BO 101 the largest): AQ, BO, CC, CM, CX, EH, FJ, GA, GQ, GS, GY, KI, KP, LY, MR, NF, NR, NU, PN, PS, PW, SJ,
129
+ # SL, SS, SY, TD, TF, TG, TL, TV, WS and YE. It doesn't list XK, XS or XX, the three of the 35 WOF records under
130
+ # a code outside ISO 3166-1: `weightedCountries` (`countriesDeclaredBy`) refuses such a key, so the validation
131
+ # quota and the launch refuse a config that lists one. The v0.8.22 recipe holds 66 rows of theirs (XK 24, XX 42),
132
+ # which the run draws none of. `prominent-places-exposure` floors the recipe's draws at 0.9 of expected.
133
+ # 4. `train.output_dir` and `train.trackio_run_name` name the run.
134
+ # 5. `source_reps` gives `rendered-former-divisions` 1.0, one pass over its rows across the run. By the exposure
135
+ # arithmetic of `exposure/shapes.ts` (`drawsPerAdmittedRow`, `countryAdmission`), with the 16,024 tuple rows in the
136
+ # `source_reps` derivation over v0.8.21's other rows, a row is drawn 0.087 times an epoch: 1,391 of the 1,000,000
137
+ # draws an epoch, and 16,024 over the run's 90,000 steps of 128 (11.52 epochs). Two passes over the earlier
138
+ # 1,888 rows drew 328 an epoch and 3,776 over the run. The rows hold 127 division names, about 126 rows each
139
+ # (median 100, from 4 to 300). On the table before the restore, two passes over 1,888 rows and 27 names drew about
140
+ # 140 rows a name over the run. One pass now reaches that exposure, so a second would repeat each row without
141
+ # widening what the model sees.
142
+ # `augment_exclude_sources` lists the source for the reason `rendered-prominent-places` is listed, and
143
+ # `former-divisions-exposure` floors its draws at 0.9 of expected.
144
+ # 6. `source_weights` gives `nz-charities-register` 0.0, so the run draws none of its rows, and the source leaves
145
+ # `source_reps` (0.2 in v8.9.0) and `required_corpus_receipts` (`nz-charities-register-exposure`). The model-release
146
+ # check of #3278 refuses its register row `nz-charity-nonprofit-1` (CC BY 3.0 NZ): clause 2.1 bars imposing terms
147
+ # on an Adaptation, and whether trained weights are one is unsettled. The corpus keeps the source's rows. The sampler
148
+ # refuses a train source that `source_weights` leaves out, so the source is listed at 0.0 rather than dropped.
149
+ #
150
+ # Every other receipt and floor is v8.9.0's and is re-derived on v0.8.22 before launch (HOLDOUT_AND_EVALUATION
151
+ # section 4.4 item 5). Before launch, on the admitted v0.8.22 manifest:
152
+ # - done 2026-11-23: the manifest is the third re-split of v0.8.22-prominent-overlay (MANIFEST.json sha256 aed71697…,
153
+ # v0.8.22-overlay with the re-sized recipe) under evaluation-groups.v0.8.23.json (sha256 cfaffa67…, 201,538 groups)
154
+ # and a validation quota of 15,300 groups (sha256 6e9ddd98…). It is MANIFEST.json sha256
155
+ # c01019fe088458f8e4950fc8245583083f7e230c3446b1bc4952947186f334fd: 1,104 files, train 889,226,116, val 23,330,
156
+ # test 381,056;
157
+ # - done 2026-11-23: `audits/label/support.run.ts` meets `required_validation_label_support` on that val draw, and
158
+ # `audits/validation/coverage.run.ts` finds all 21 `required_validation_coverage` floors met;
159
+ # - done 2026-11-23: the epoch-mixture audit (1,000,000 draws) meets all 71 receipts. `former-divisions-exposure`
160
+ # draws 1,441 against 1,240 (expected 1,378), and `prominent-places-exposure` 11,825 against 10,505 (expected 11,673);
161
+ # - done 2026-11-23: `places.run.ts tuples --config <this file>` against the scan of v0.8.22-overlay without the
162
+ # recipe, sized through the receipt's held-out reader: 32,378 rows for 16,421 places, every one in train after the
163
+ # re-split;
164
+ # - done 2026-11-23: `audits/prominent/coverage.run.ts` passes on this config re-rooted at /mnt/mw. Presence covers
165
+ # 20,910 of 20,910 required forms, 808 of 811 demand cells meet their targets and none fails (FJ and GD locality
166
+ # region and ID sub-locality parent are unwritable), and 0 short admin train rows write a dependent locality without
167
+ # a locality;
168
+ # - done: the places table `data.prominent_place_coverage` names is frozen on the host at
169
+ # /mnt/mw/audits/prominent-places/candidate-global-2026-11-19/ (`places.parquet` sha256 acfcd09a44b22622…, record
170
+ # version 3 with the `postal_pair` column). The version-2 table is kept beside it as `.v2-2026-11-20`. Only the
171
+ # host reads it: the preflight re-roots /data at MAILWOMAN_DATA_ROOT before the receipt and the receipt key read it,
172
+ # and of the volume's files the sandbox checks only the corpus MANIFEST. The volume copy keeps the mirror whole and starts no read. It is
173
+ # written from the host with the operator's launch go, as
174
+ # `modal volume put mailwoman-training /mnt/mw/audits/prominent-places/candidate-global-2026-11-19 audits/prominent-places/candidate-global-2026-11-19`.
175
+ # A mounted container doesn't see a `modal volume put` file, and none reads this one.
176
+ #
177
+ # Run shape: from scratch, as v8.9.0. Control: the v8.9.0 seed 42 run, the same recipe and seed on v0.8.21.
178
+ # Seed 42, as v8.9.0. The launch waits for the operator's go.
179
+
180
+ data:
181
+ corpus_dir: /data/corpus/versioned/v0.8.22-retention-overlay/corpus-v0.8.22-retention-overlay
182
+ tokenizer_dir: /data/models/tokenizer/v0.10.0-c6-isolated-punctuation
183
+ max_length: 128
184
+ # `NO` is quoted because YAML 1.1 reads a bare `NO` as false. A false key would match no Norwegian row.
185
+ country_weights:
186
+ {
187
+ AD: 1.0, AE: 1.0, AF: 1.0, AG: 1.0, AI: 1.0, AL: 1.0, AM: 1.0, AO: 1.0, AQ: 1.0, AR: 1.0, AS: 1.0, AT: 1.0,
188
+ AU: 1.0, AW: 1.0, AX: 1.0, AZ: 1.0, BA: 1.0, BB: 1.0, BD: 1.0, BE: 1.0, BF: 1.0, BG: 1.0, BH: 1.0, BI: 1.0,
189
+ BJ: 1.0, BL: 1.0, BM: 1.0, BN: 1.0, BO: 1.0, BQ: 1.0, BR: 1.0, BS: 1.0, BT: 1.0, BW: 1.0, BY: 1.0, BZ: 1.0,
190
+ CA: 1.0, CC: 1.0, CD: 1.0, CF: 1.0, CG: 1.0, CH: 1.0, CI: 1.0, CK: 1.0, CL: 1.0, CM: 1.0, CN: 1.0, CO: 1.0,
191
+ CR: 1.0, CU: 1.0, CV: 1.0, CW: 1.0, CX: 1.0, CY: 1.0, CZ: 1.0, DE: 1.0, DJ: 1.0, DK: 1.0, DM: 1.0, DO: 1.0,
192
+ DZ: 1.0, EC: 1.0, EE: 1.0, EG: 1.0, EH: 1.0, ER: 1.0, ES: 1.0, ET: 1.0, FI: 1.0, FJ: 1.0, FK: 1.0, FM: 1.0,
193
+ FO: 1.0, FR: 1.0, GA: 1.0, GB: 1.0, GD: 1.0, GE: 1.0, GF: 1.0, GG: 1.0, GH: 1.0, GI: 1.0, GL: 1.0, GM: 1.0,
194
+ GN: 1.0, GP: 1.0, GQ: 1.0, GR: 1.0, GS: 1.0, GT: 1.0, GU: 1.0, GW: 1.0, GY: 1.0, HK: 1.0, HN: 1.0, HR: 1.0,
195
+ HT: 1.0, HU: 1.0, ID: 1.0, IE: 1.0, IL: 1.0, IM: 1.0, IN: 1.0, IO: 1.0, IQ: 1.0, IR: 1.0, IS: 1.0, IT: 1.0,
196
+ JE: 1.0, JM: 1.0, JO: 1.0, JP: 1.0, KE: 1.0, KG: 1.0, KH: 1.0, KI: 1.0, KM: 1.0, KN: 1.0, KP: 1.0, KR: 1.0,
197
+ KW: 1.0, KY: 1.0, KZ: 1.0, LA: 1.0, LB: 1.0, LC: 1.0, LI: 1.0, LK: 1.0, LR: 1.0, LS: 1.0, LT: 1.0, LU: 1.0,
198
+ LV: 1.0, LY: 1.0, MA: 1.0, MC: 1.0, MD: 1.0, ME: 1.0, MF: 1.0, MG: 1.0, MH: 1.0, MK: 1.0, ML: 1.0, MM: 1.0,
199
+ MN: 1.0, MO: 1.0, MP: 1.0, MQ: 1.0, MR: 1.0, MS: 1.0, MT: 1.0, MU: 1.0, MV: 1.0, MW: 1.0, MX: 1.0, MY: 1.0,
200
+ MZ: 1.0, NA: 1.0, NC: 1.0, NE: 1.0, NF: 1.0, NG: 1.0, NI: 1.0, NL: 1.0, "NO": 1.0, NP: 1.0, NR: 1.0, NU: 1.0,
201
+ NZ: 1.0, OM: 1.0, PA: 1.0, PE: 1.0, PF: 1.0, PG: 1.0, PH: 1.0, PK: 1.0, PL: 1.0, PM: 1.0, PN: 1.0, PR: 1.0,
202
+ PS: 1.0, PT: 1.0, PW: 1.0, PY: 1.0, QA: 1.0, RE: 1.0, RO: 1.0, RS: 1.0, RU: 1.0, RW: 1.0, SA: 1.0, SB: 1.0,
203
+ SC: 1.0, SD: 1.0, SE: 1.0, SG: 1.0, SH: 1.0, SI: 1.0, SJ: 1.0, SK: 1.0, SL: 1.0, SM: 1.0, SN: 1.0, SO: 1.0,
204
+ SR: 1.0, SS: 1.0, ST: 1.0, SV: 1.0, SX: 1.0, SY: 1.0, SZ: 1.0, TC: 1.0, TD: 1.0, TF: 1.0, TG: 1.0, TH: 1.0,
205
+ TJ: 1.0, TK: 1.0, TL: 1.0, TM: 1.0, TN: 1.0, TO: 1.0, TR: 1.0, TT: 1.0, TV: 1.0, TW: 1.0, TZ: 1.0, UA: 1.0,
206
+ UG: 1.0, UM: 1.0, US: 1.0, UY: 1.0, UZ: 1.0, VA: 1.0, VC: 1.0, VE: 1.0, VG: 1.0, VI: 1.0, VN: 1.0, VU: 1.0,
207
+ WF: 1.0, WS: 1.0, YE: 1.0, YT: 1.0, ZA: 1.0, ZM: 1.0, ZW: 1.0,
208
+ XK: 1.0, XS: 1.0, UN: 1.0, XZ: 1.0, XN: 1.0,
209
+ }
210
+ # Stage 1 reads only `wof-admin`. The sampler refuses a train source that `source_weights` leaves out, so every
211
+ # other source is listed at 0.0.
212
+ source_weights:
213
+ wof-admin: 1.0
214
+ wof-postalcode: 0.0
215
+ adressur-fo: 0.0
216
+ ads: 0.0
217
+ au-acnc-register: 0.0
218
+ ban: 0.0
219
+ ban-bl: 0.0
220
+ ban-gf: 0.0
221
+ ban-gp: 0.0
222
+ ban-mf: 0.0
223
+ ban-mq: 0.0
224
+ ban-nc: 0.0
225
+ ban-pf: 0.0
226
+ ban-pm: 0.0
227
+ ban-re: 0.0
228
+ ban-yt: 0.0
229
+ bsp-gu: 0.0
230
+ codex-bare-postcode: 0.0
231
+ cordis: 0.0
232
+ deepseek-kryptonite: 0.0
233
+ es-sanidad-centros-ap: 0.0
234
+ fr-annuaire-education-overseas: 0.0
235
+ fr-finess-overseas: 0.0
236
+ fr-laposte-poincont: 0.0
237
+ fragment-assay: 0.0
238
+ fragment-fr: 0.0
239
+ fragment-fr-bare-street: 0.0
240
+ fragment-fr-bare-street-v22: 0.0
241
+ fragment-no: 0.0
242
+ gbpa-bs: 0.0
243
+ geonames-features: 0.0
244
+ gleif-lei: 0.0
245
+ gnaf: 0.0
246
+ ide-uy: 0.0
247
+ invented-anchor-absorption: 0.0
248
+ invented-house-venue: 0.0
249
+ invented-intersection: 0.0
250
+ invented-po-box-cedex: 0.0
251
+ invented-po-box-military: 0.0
252
+ invented-postal-guideline: 0.0
253
+ invented-postal-unit-guideline: 0.0
254
+ it-miur-scuole: 0.0
255
+ landregistry-im: 0.0
256
+ llv-li: 0.0
257
+ lv-varis: 0.0
258
+ nc-opt-agences: 0.0
259
+ nz-charities-register: 0.0
260
+ opendata-az: 0.0
261
+ osm: 0.0
262
+ osm-ae: 0.0
263
+ osm-al: 0.0
264
+ osm-am: 0.0
265
+ osm-ao: 0.0
266
+ osm-ar: 0.0
267
+ osm-aw: 0.0
268
+ osm-az: 0.0
269
+ osm-ba: 0.0
270
+ osm-bb: 0.0
271
+ osm-bd: 0.0
272
+ osm-bh: 0.0
273
+ osm-bm: 0.0
274
+ osm-bn: 0.0
275
+ osm-bs: 0.0
276
+ osm-bt: 0.0
277
+ osm-bw: 0.0
278
+ osm-by: 0.0
279
+ osm-bz: 0.0
280
+ osm-cd: 0.0
281
+ osm-ci: 0.0
282
+ osm-cl: 0.0
283
+ osm-cn: 0.0
284
+ osm-co: 0.0
285
+ osm-cr: 0.0
286
+ osm-cu: 0.0
287
+ osm-cw: 0.0
288
+ osm-do: 0.0
289
+ osm-dz: 0.0
290
+ osm-ec: 0.0
291
+ osm-eg: 0.0
292
+ osm-ge: 0.0
293
+ osm-gg: 0.0
294
+ osm-gh: 0.0
295
+ osm-gl: 0.0
296
+ osm-gt: 0.0
297
+ osm-hk: 0.0
298
+ osm-ht: 0.0
299
+ osm-id: 0.0
300
+ osm-in: 0.0
301
+ osm-iq: 0.0
302
+ osm-ir: 0.0
303
+ osm-je: 0.0
304
+ osm-jm: 0.0
305
+ osm-jo: 0.0
306
+ osm-ke: 0.0
307
+ osm-kg: 0.0
308
+ osm-kh: 0.0
309
+ osm-kw: 0.0
310
+ osm-kz: 0.0
311
+ osm-lb: 0.0
312
+ osm-lk: 0.0
313
+ osm-lr: 0.0
314
+ osm-ma: 0.0
315
+ osm-md: 0.0
316
+ osm-me: 0.0
317
+ osm-mg: 0.0
318
+ osm-mk: 0.0
319
+ osm-mm: 0.0
320
+ osm-mn: 0.0
321
+ osm-mo: 0.0
322
+ osm-mt: 0.0
323
+ osm-mv: 0.0
324
+ osm-my: 0.0
325
+ osm-mz: 0.0
326
+ osm-na: 0.0
327
+ osm-ng: 0.0
328
+ osm-np: 0.0
329
+ osm-om: 0.0
330
+ osm-pa: 0.0
331
+ osm-pe: 0.0
332
+ osm-pf: 0.0
333
+ osm-ph: 0.0
334
+ osm-pk: 0.0
335
+ osm-pr: 0.0
336
+ osm-py: 0.0
337
+ osm-qa: 0.0
338
+ osm-rs: 0.0
339
+ osm-ru: 0.0
340
+ osm-rw: 0.0
341
+ osm-sa: 0.0
342
+ osm-sm: 0.0
343
+ osm-sn: 0.0
344
+ osm-sr: 0.0
345
+ osm-sv: 0.0
346
+ osm-th: 0.0
347
+ osm-tj: 0.0
348
+ osm-tm: 0.0
349
+ osm-tn: 0.0
350
+ osm-tt: 0.0
351
+ osm-tz: 0.0
352
+ osm-ua: 0.0
353
+ osm-ug: 0.0
354
+ osm-uz: 0.0
355
+ osm-ve: 0.0
356
+ osm-vi: 0.0
357
+ osm-vn: 0.0
358
+ osm-zm: 0.0
359
+ osm-zw: 0.0
360
+ overture: 0.0
361
+ overture-latam: 0.0
362
+ rendered-bd-register: 0.0
363
+ rendered-ch: 0.0
364
+ rendered-cz-pcfirst-preposition: 0.0
365
+ rendered-cz-pcfirst-preposition-v21: 0.0
366
+ rendered-de: 0.0
367
+ rendered-former-divisions: 0.0
368
+ rendered-fr-admin-split: 0.0
369
+ rendered-fr-order: 0.0
370
+ rendered-gb-os-open: 0.0
371
+ rendered-hr: 0.0
372
+ rendered-lu: 0.0
373
+ rendered-nl-postcode: 0.0
374
+ rendered-no-street-led: 0.0
375
+ rendered-pk-register: 0.0
376
+ rendered-prominent-places: 0.0
377
+ rendered-pt: 0.0
378
+ rendered-sg-register: 0.0
379
+ rendered-si-bare-village: 0.0
380
+ rendered-sk: 0.0
381
+ rendered-us-city-county: 0.0
382
+ rendered-us-city-state: 0.0
383
+ rendered-us-county: 0.0
384
+ ro-retea-scolara: 0.0
385
+ ryhti-ax: 0.0
386
+ spliced-affix: 0.0
387
+ spliced-country: 0.0
388
+ spliced-sub-venue: 0.0
389
+ spliced-suffix-boundary: 0.0
390
+ spliced-trailing-region-ca-bare: 0.0
391
+ spliced-trailing-region-es-v28: 0.0
392
+ spliced-trailing-region-us: 0.0
393
+ spliced-unit: 0.0
394
+ spliced-unit-v30: 0.0
395
+ state-ia-contractors: 0.0
396
+ state-ny-notaries: 0.0
397
+ state-tx-notaries: 0.0
398
+ tiger: 0.0
399
+ usgov-hrsa-fqhc: 0.0
400
+ usgov-imls-pls: 0.0
401
+ usgov-nad: 0.0
402
+ usgov-nppes: 0.0
403
+ usgov-usgs-structures: 0.0
404
+ wikidata-vital-places: 0.0
405
+ # Half of each label's rows in the 21,596-row val draw of v0.8.22-retention-overlay, rounded down, measured
406
+ # 2026-11-22 by audits/label/support.run.ts on this config re-rooted at /mnt/mw. Measured counts: locality 18,957,
407
+ # street 16,518, postcode 15,134, house_number 15,102, region 5,152, venue 4,075, street_prefix 2,583, country
408
+ # 2,520, street_suffix 1,769, unit 363. dependent_locality 1,345, subregion 383 and po_box 47 take no floor, as
409
+ # the v0.8.2 floors set none for them.
410
+ required_validation_label_support:
411
+ - {label: postcode, split: val, min_rows: 7567}
412
+ - {label: locality, split: val, min_rows: 9478}
413
+ - {label: street, split: val, min_rows: 8259}
414
+ - {label: house_number, split: val, min_rows: 7551}
415
+ - {label: region, split: val, min_rows: 2576}
416
+ - {label: street_suffix, split: val, min_rows: 884}
417
+ - {label: street_prefix, split: val, min_rows: 1291}
418
+ - {label: venue, split: val, min_rows: 2037}
419
+ - {label: unit, split: val, min_rows: 181}
420
+ - {label: country, split: val, min_rows: 1260}
421
+ augment_exclude_sources:
422
+ - spliced-suffix-boundary
423
+ # This source teaches a postcode with no other token, such as `119 00`, so augmentation would add tokens the row
424
+ # mustn't contain.
425
+ - codex-bare-postcode
426
+ # On WOF rows the region and directional rewrites expand a word inside a place name (`AL MANĀMAH` to
427
+ # `Alabama MANĀMAH`) under the original label, and the build already renders a `drop-commas` variant.
428
+ - wof-admin
429
+ - wof-postalcode
430
+ # The recipe writes WOF names in the same short shapes, so the same rewrites would expand them.
431
+ - rendered-prominent-places
432
+ # This config's header, point 5.
433
+ - rendered-former-divisions
434
+ # The same rewrites would expand a word inside a landmark's name under the `venue` label.
435
+ - wikidata-vital-places
436
+ train_rows_per_epoch: null
437
+ # Stage 1 reads the train files in their stored order, each row once (#3531).
438
+ read_order: stored
439
+ # The validation draw is sized to hold the venue and country rows the label floors above require.
440
+ val_rows: 36864
441
+ coarse_filter: true
442
+ augment_directional_prob: 0.3
443
+ augment_region_prob: 0.3
444
+ augment_glue_prob: 0.25
445
+ augment_ordinal_prob: 0.3
446
+ augment_punct_drop_prob: 0.3
447
+ augment_postcode_move_prob: 0.0
448
+ anchor_lookup_path: /data/anchor/pilot-anchor-lookup-v2-2026-08-05.json
449
+ gazetteer_lexicon_path: /data/gazetteer/anchor-lexicon-v1.json
450
+ country_lexicon_path: /data/gazetteer/country-surface-lexicon-v1.json
451
+ gazetteer_choreography: true
452
+ affix_relabel_lexicon_path: /data/gazetteer/affix-relabel-lexicon-v2.json
453
+ anchor_paint_mode: postal
454
+ anchor_value_mode: posterior_latlon
455
+ street_type_lexicon_path: /data/gazetteer/street-type-lexicon-v3.json
456
+ locality_surface_lexicon_path: /data/gazetteer/locality-surface-lexicon-v7.json
457
+
458
+ model:
459
+ hidden_size: 384
460
+ use_span_boundary_head: true
461
+ span_boundary_loss_weight: 0.5
462
+ num_hidden_layers: 6
463
+ num_attention_heads: 6
464
+ intermediate_size: 1536
465
+ max_position_embeddings: 128
466
+ type_vocab_size: 1
467
+ hidden_dropout_prob: 0.1
468
+ attention_probs_dropout_prob: 0.1
469
+ use_crf: true
470
+ crf_loss_weight: 0.0
471
+ crf_normalization: per_sequence
472
+ label_smoothing: 0.1
473
+ use_locale_conditioning: true
474
+ locale_loss_weight: 0.3
475
+ use_address_system_head: true
476
+ address_system_loss_weight: 0.3
477
+ use_locale_hint: true
478
+ locale_hint_drop_prob: 0.5
479
+ locale_hint_noise_prob: 0.05
480
+ use_postcode_anchor: true
481
+ use_gazetteer_anchor: true
482
+ gazetteer_feature_dim: 5
483
+ use_country_anchor: true
484
+ country_feature_dim: 2
485
+ use_street_type_anchor: true
486
+ street_type_feature_dim: 1
487
+ use_locality_surface_anchor: true
488
+ locality_surface_feature_dim: 2
489
+ country_ambiguous_scale: 0.5
490
+ class_weights:
491
+ O: 0.5
492
+ B-country: 3.5
493
+ I-country: 3.5
494
+ B-region: 1.5
495
+ I-region: 1.5
496
+ B-locality: 2.0
497
+ I-locality: 2.0
498
+ B-dependent_locality: 1.0
499
+ I-dependent_locality: 1.0
500
+ B-postcode: 1.5
501
+ I-postcode: 1.5
502
+ # v8.8.0's header, point 3.
503
+ B-subregion: 1.0
504
+ I-subregion: 1.0
505
+ B-cedex: 1.0
506
+ I-cedex: 1.0
507
+ B-venue: 1.5
508
+ I-venue: 1.5
509
+ B-street: 2.0
510
+ I-street: 2.0
511
+ B-house_number: 1.5
512
+ I-house_number: 1.5
513
+ B-street_prefix: 1.5
514
+ I-street_prefix: 1.5
515
+ B-street_suffix: 1.5
516
+ I-street_suffix: 1.5
517
+ B-unit: 1.5
518
+ I-unit: 1.5
519
+ B-po_box: 1.5
520
+ I-po_box: 1.5
521
+ B-intersection_a: 1.0
522
+ I-intersection_a: 1.0
523
+ B-intersection_b: 1.0
524
+ I-intersection_b: 1.0
525
+ use_phrase_priors: true
526
+ phrase_feature_dim: 10
527
+
528
+ train:
529
+ output_dir: /data/output-v8170-stage1-gazetteer-v0822-s42/checkpoints
530
+ seed: 42
531
+ batch_size: 512
532
+ eval_batch_size: 128
533
+ grad_accum_steps: 1
534
+ learning_rate: 1.0e-3
535
+ weight_decay: 0.01
536
+ warmup_steps: 250
537
+ grad_clip_norm: 1.0
538
+ max_steps: 5431
539
+ eval_every_steps: 500
540
+ save_every_steps: 1250
541
+ log_every_steps: 25
542
+ precision: bf16
543
+ num_workers: 0
544
+ csv_log_path: "{output_dir}/../train_log.csv"
545
+ lr_schedule: cosine
546
+ gazetteer_curriculum: true
547
+ evidence_curriculum: true
548
+ evidence_noise_prob: 0.15
549
+ fisher_capture: false
550
+ fisher_capture_last_n_steps: 500
551
+ cuda_graph: false
552
+ trackio_project: mailwoman
553
+ trackio_run_name: v8170-stage1-gazetteer-v0822-s42
554
+
555
+ eval:
556
+ golden_dir: /data/eval/golden/v0.1.3
557
+ val_jsonl: ""