@mailwoman/corpus 8.6.0 → 9.0.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.
- package/README.md +1 -1
- package/out/src/adapter.d.ts +41 -0
- package/out/src/adapter.d.ts.map +1 -1
- package/out/src/adapter.js +46 -1
- package/out/src/adapter.js.map +1 -1
- package/out/src/adapters/ban/adapter.d.ts +4 -3
- package/out/src/adapters/ban/adapter.d.ts.map +1 -1
- package/out/src/adapters/ban/adapter.js +60 -67
- package/out/src/adapters/ban/adapter.js.map +1 -1
- package/out/src/adapters/ban/street-decompose.d.ts.map +1 -1
- package/out/src/adapters/ban/street-decompose.js +18 -25
- package/out/src/adapters/ban/street-decompose.js.map +1 -1
- package/out/src/adapters/fcc-bdc/adapter.d.ts +0 -6
- package/out/src/adapters/fcc-bdc/adapter.d.ts.map +1 -1
- package/out/src/adapters/fcc-bdc/adapter.js +2 -24
- package/out/src/adapters/fcc-bdc/adapter.js.map +1 -1
- package/out/src/adapters/geonames/adapter.d.ts.map +1 -1
- package/out/src/adapters/geonames/adapter.js +70 -76
- package/out/src/adapters/geonames/adapter.js.map +1 -1
- package/out/src/adapters/geonames-postal/adapter.d.ts.map +1 -1
- package/out/src/adapters/geonames-postal/adapter.js +44 -49
- package/out/src/adapters/geonames-postal/adapter.js.map +1 -1
- package/out/src/adapters/gnaf/adapter.d.ts.map +1 -1
- package/out/src/adapters/gnaf/adapter.js +4 -7
- package/out/src/adapters/gnaf/adapter.js.map +1 -1
- package/out/src/adapters/gnaf/assemble.d.ts.map +1 -1
- package/out/src/adapters/gnaf/assemble.js +6 -11
- package/out/src/adapters/gnaf/assemble.js.map +1 -1
- package/out/src/adapters/openaddresses/adapter.d.ts.map +1 -1
- package/out/src/adapters/openaddresses/adapter.js +2 -7
- package/out/src/adapters/openaddresses/adapter.js.map +1 -1
- package/out/src/adapters/overture/adapter.d.ts.map +1 -1
- package/out/src/adapters/overture/adapter.js +3 -7
- package/out/src/adapters/overture/adapter.js.map +1 -1
- package/out/src/adapters/state-hi-schools/adapter.d.ts.map +1 -1
- package/out/src/adapters/state-hi-schools/adapter.js +55 -73
- package/out/src/adapters/state-hi-schools/adapter.js.map +1 -1
- package/out/src/adapters/state-ia-contractors/adapter.d.ts.map +1 -1
- package/out/src/adapters/state-ia-contractors/adapter.js +58 -76
- package/out/src/adapters/state-ia-contractors/adapter.js.map +1 -1
- package/out/src/adapters/state-ny-notaries/adapter.d.ts.map +1 -1
- package/out/src/adapters/state-ny-notaries/adapter.js +67 -85
- package/out/src/adapters/state-ny-notaries/adapter.js.map +1 -1
- package/out/src/adapters/state-tx-notaries/adapter.d.ts.map +1 -1
- package/out/src/adapters/state-tx-notaries/adapter.js +69 -87
- package/out/src/adapters/state-tx-notaries/adapter.js.map +1 -1
- package/out/src/adapters/synth-po-box/adapter.d.ts.map +1 -1
- package/out/src/adapters/synth-po-box/adapter.js +7 -15
- package/out/src/adapters/synth-po-box/adapter.js.map +1 -1
- package/out/src/adapters/tiger/street-decompose.d.ts.map +1 -1
- package/out/src/adapters/tiger/street-decompose.js +18 -27
- package/out/src/adapters/tiger/street-decompose.js.map +1 -1
- package/out/src/adapters/usgov-hrsa-fqhc/adapter.d.ts +3 -3
- package/out/src/adapters/usgov-hrsa-fqhc/adapter.d.ts.map +1 -1
- package/out/src/adapters/usgov-hrsa-fqhc/adapter.js +62 -80
- package/out/src/adapters/usgov-hrsa-fqhc/adapter.js.map +1 -1
- package/out/src/adapters/usgov-imls-pls/adapter.d.ts.map +1 -1
- package/out/src/adapters/usgov-imls-pls/adapter.js +60 -82
- package/out/src/adapters/usgov-imls-pls/adapter.js.map +1 -1
- package/out/src/adapters/usgov-irs-bmf/adapter.d.ts.map +1 -1
- package/out/src/adapters/usgov-irs-bmf/adapter.js +58 -65
- package/out/src/adapters/usgov-irs-bmf/adapter.js.map +1 -1
- package/out/src/adapters/usgov-nad/adapter.d.ts.map +1 -1
- package/out/src/adapters/usgov-nad/adapter.js +5 -8
- package/out/src/adapters/usgov-nad/adapter.js.map +1 -1
- package/out/src/adapters/usgov-nppes/adapter.d.ts.map +1 -1
- package/out/src/adapters/usgov-nppes/adapter.js +58 -76
- package/out/src/adapters/usgov-nppes/adapter.js.map +1 -1
- package/out/src/adapters/usgov-samhsa-treatment-locator/adapter.d.ts.map +1 -1
- package/out/src/adapters/usgov-samhsa-treatment-locator/adapter.js +51 -71
- package/out/src/adapters/usgov-samhsa-treatment-locator/adapter.js.map +1 -1
- package/out/src/adapters/wof-admin-jp/adapter.d.ts.map +1 -1
- package/out/src/adapters/wof-admin-jp/adapter.js +24 -6
- package/out/src/adapters/wof-admin-jp/adapter.js.map +1 -1
- package/out/src/build.d.ts.map +1 -1
- package/out/src/build.js +2 -1
- package/out/src/build.js.map +1 -1
- package/out/src/golden.d.ts +5 -0
- package/out/src/golden.d.ts.map +1 -1
- package/out/src/golden.js +23 -9
- package/out/src/golden.js.map +1 -1
- package/out/src/parquet-wrapper/reader.d.ts +8 -0
- package/out/src/parquet-wrapper/reader.d.ts.map +1 -1
- package/out/src/parquet-wrapper/reader.js +16 -0
- package/out/src/parquet-wrapper/reader.js.map +1 -1
- package/out/src/parquet-wrapper/schema.d.ts +4 -0
- package/out/src/parquet-wrapper/schema.d.ts.map +1 -1
- package/out/src/parquet-wrapper/schema.js.map +1 -1
- package/out/src/parquet.d.ts.map +1 -1
- package/out/src/parquet.js +2 -13
- package/out/src/parquet.js.map +1 -1
- package/out/src/shard-recipes/anchor-absorption.d.ts.map +1 -1
- package/out/src/shard-recipes/anchor-absorption.js +2 -1
- package/out/src/shard-recipes/anchor-absorption.js.map +1 -1
- package/out/src/shard-recipes/country-balanced.d.ts.map +1 -1
- package/out/src/shard-recipes/country-balanced.js +68 -60
- package/out/src/shard-recipes/country-balanced.js.map +1 -1
- package/out/src/shard-recipes/fr-fragment.d.ts.map +1 -1
- package/out/src/shard-recipes/fr-fragment.js +8 -5
- package/out/src/shard-recipes/fr-fragment.js.map +1 -1
- package/out/src/shard-recipes/fr-order.d.ts.map +1 -1
- package/out/src/shard-recipes/fr-order.js +14 -58
- package/out/src/shard-recipes/fr-order.js.map +1 -1
- package/out/src/shard-recipes/german.d.ts.map +1 -1
- package/out/src/shard-recipes/german.js +11 -58
- package/out/src/shard-recipes/german.js.map +1 -1
- package/out/src/shard-recipes/index.d.ts.map +1 -1
- package/out/src/shard-recipes/index.js +2 -0
- package/out/src/shard-recipes/index.js.map +1 -1
- package/out/src/shard-recipes/intersection.d.ts +2 -2
- package/out/src/shard-recipes/intersection.d.ts.map +1 -1
- package/out/src/shard-recipes/intersection.js +24 -62
- package/out/src/shard-recipes/intersection.js.map +1 -1
- package/out/src/shard-recipes/locale.d.ts.map +1 -1
- package/out/src/shard-recipes/locale.js +14 -16
- package/out/src/shard-recipes/locale.js.map +1 -1
- package/out/src/shard-recipes/no-fragment.d.ts.map +1 -1
- package/out/src/shard-recipes/no-fragment.js +8 -5
- package/out/src/shard-recipes/no-fragment.js.map +1 -1
- package/out/src/shard-recipes/no-street-led.d.ts.map +1 -1
- package/out/src/shard-recipes/no-street-led.js +8 -5
- package/out/src/shard-recipes/no-street-led.js.map +1 -1
- package/out/src/shard-recipes/po-box-cedex.d.ts +3 -3
- package/out/src/shard-recipes/po-box-cedex.d.ts.map +1 -1
- package/out/src/shard-recipes/po-box-cedex.js +51 -94
- package/out/src/shard-recipes/po-box-cedex.js.map +1 -1
- package/out/src/shard-recipes/scaffold.d.ts +59 -9
- package/out/src/shard-recipes/scaffold.d.ts.map +1 -1
- package/out/src/shard-recipes/scaffold.js +51 -30
- package/out/src/shard-recipes/scaffold.js.map +1 -1
- package/out/src/shard-recipes/street-affix.d.ts.map +1 -1
- package/out/src/shard-recipes/street-affix.js +56 -82
- package/out/src/shard-recipes/street-affix.js.map +1 -1
- package/out/src/shard-recipes/sub-venue-sources.d.ts +231 -0
- package/out/src/shard-recipes/sub-venue-sources.d.ts.map +1 -0
- package/out/src/shard-recipes/sub-venue-sources.js +669 -0
- package/out/src/shard-recipes/sub-venue-sources.js.map +1 -0
- package/out/src/shard-recipes/sub-venue.d.ts +269 -0
- package/out/src/shard-recipes/sub-venue.d.ts.map +1 -0
- package/out/src/shard-recipes/sub-venue.js +709 -0
- package/out/src/shard-recipes/sub-venue.js.map +1 -0
- package/out/src/shard-recipes/unit.d.ts +1 -1
- package/out/src/shard-recipes/unit.d.ts.map +1 -1
- package/out/src/shard-recipes/unit.js +22 -64
- package/out/src/shard-recipes/unit.js.map +1 -1
- package/out/src/split.d.ts +7 -0
- package/out/src/split.d.ts.map +1 -1
- package/out/src/split.js +7 -0
- package/out/src/split.js.map +1 -1
- package/out/src/synthesize.d.ts.map +1 -1
- package/out/src/synthesize.js +1 -12
- package/out/src/synthesize.js.map +1 -1
- package/out/src/tools/align-shard.d.ts.map +1 -1
- package/out/src/tools/align-shard.js +3 -7
- package/out/src/tools/align-shard.js.map +1 -1
- package/out/src/tools/audit.d.ts.map +1 -1
- package/out/src/tools/audit.js +4 -4
- package/out/src/tools/audit.js.map +1 -1
- package/out/src/tools/corpus-stats.d.ts +2 -2
- package/out/src/tools/corpus-stats.d.ts.map +1 -1
- package/out/src/tools/corpus-stats.js +18 -31
- package/out/src/tools/corpus-stats.js.map +1 -1
- package/out/src/tools/fetch/download.d.ts.map +1 -1
- package/out/src/tools/fetch/download.js +5 -6
- package/out/src/tools/fetch/download.js.map +1 -1
- package/out/src/tools/fetch/imls-pls.d.ts.map +1 -1
- package/out/src/tools/fetch/imls-pls.js +2 -2
- package/out/src/tools/fetch/imls-pls.js.map +1 -1
- package/out/src/tools/fetch/index.d.ts +14 -1
- package/out/src/tools/fetch/index.d.ts.map +1 -1
- package/out/src/tools/fetch/index.js +14 -1
- package/out/src/tools/fetch/index.js.map +1 -1
- package/out/src/tools/fetch/nad.d.ts +1 -1
- package/out/src/tools/fetch/nad.js +1 -1
- package/out/src/tools/fetch/nppes.d.ts.map +1 -1
- package/out/src/tools/fetch/nppes.js +2 -1
- package/out/src/tools/fetch/nppes.js.map +1 -1
- package/out/src/tools/fetch/openaddresses.d.ts +1 -1
- package/out/src/tools/fetch/openaddresses.js +1 -1
- package/out/src/tools/fetch/ourairports.d.ts +45 -0
- package/out/src/tools/fetch/ourairports.d.ts.map +1 -0
- package/out/src/tools/fetch/ourairports.js +123 -0
- package/out/src/tools/fetch/ourairports.js.map +1 -0
- package/out/src/tools/fetch/wikidata-subvenue.d.ts +171 -0
- package/out/src/tools/fetch/wikidata-subvenue.d.ts.map +1 -0
- package/out/src/tools/fetch/wikidata-subvenue.js +275 -0
- package/out/src/tools/fetch/wikidata-subvenue.js.map +1 -0
- package/out/src/tools/golden-expand.d.ts.map +1 -1
- package/out/src/tools/golden-expand.js +18 -16
- package/out/src/tools/golden-expand.js.map +1 -1
- package/out/src/tools/golden-promote.d.ts.map +1 -1
- package/out/src/tools/golden-promote.js +12 -6
- package/out/src/tools/golden-promote.js.map +1 -1
- package/out/src/tools/golden-relabel-street.d.ts +196 -0
- package/out/src/tools/golden-relabel-street.d.ts.map +1 -0
- package/out/src/tools/golden-relabel-street.js +513 -0
- package/out/src/tools/golden-relabel-street.js.map +1 -0
- package/out/src/tools/index.d.ts +4 -0
- package/out/src/tools/index.d.ts.map +1 -1
- package/out/src/tools/index.js +4 -0
- package/out/src/tools/index.js.map +1 -1
- package/out/src/tools/jsonl-to-parquet.d.ts.map +1 -1
- package/out/src/tools/jsonl-to-parquet.js +3 -2
- package/out/src/tools/jsonl-to-parquet.js.map +1 -1
- package/out/src/tools/lint-shard-vocab.d.ts.map +1 -1
- package/out/src/tools/lint-shard-vocab.js +3 -2
- package/out/src/tools/lint-shard-vocab.js.map +1 -1
- package/out/src/tools/lint-shard.d.ts +3 -3
- package/out/src/tools/lint-shard.d.ts.map +1 -1
- package/out/src/tools/lint-shard.js +23 -32
- package/out/src/tools/lint-shard.js.map +1 -1
- package/out/src/tools/overlay-manifest.d.ts.map +1 -1
- package/out/src/tools/overlay-manifest.js +2 -1
- package/out/src/tools/overlay-manifest.js.map +1 -1
- package/out/src/tools/overture-subvenue.d.ts +112 -0
- package/out/src/tools/overture-subvenue.d.ts.map +1 -0
- package/out/src/tools/overture-subvenue.js +144 -0
- package/out/src/tools/overture-subvenue.js.map +1 -0
- package/out/src/tools/shard-kryptonite.d.ts +1 -1
- package/out/src/tools/shard-kryptonite.d.ts.map +1 -1
- package/out/src/tools/shard-kryptonite.js +5 -4
- package/out/src/tools/shard-kryptonite.js.map +1 -1
- package/out/src/tools/shard-translit.d.ts +6 -3
- package/out/src/tools/shard-translit.d.ts.map +1 -1
- package/out/src/tools/shard-translit.js +8 -6
- package/out/src/tools/shard-translit.js.map +1 -1
- package/out/src/tools/sub-venue-lexicon.d.ts +507 -0
- package/out/src/tools/sub-venue-lexicon.d.ts.map +1 -0
- package/out/src/tools/sub-venue-lexicon.js +817 -0
- package/out/src/tools/sub-venue-lexicon.js.map +1 -0
- package/out/src/tools/sub-venue-promotions.d.ts +94 -0
- package/out/src/tools/sub-venue-promotions.d.ts.map +1 -0
- package/out/src/tools/sub-venue-promotions.js +266 -0
- package/out/src/tools/sub-venue-promotions.js.map +1 -0
- package/out/src/wof-json.d.ts +2 -2
- package/out/src/wof-json.d.ts.map +1 -1
- package/out/src/wof-json.js +5 -8
- package/out/src/wof-json.js.map +1 -1
- package/package.json +8 -8
- package/src/adapter.ts +58 -1
- package/src/adapters/ban/adapter.ts +55 -65
- package/src/adapters/ban/street-decompose.ts +17 -25
- package/src/adapters/fcc-bdc/adapter.ts +2 -33
- package/src/adapters/geonames/adapter.ts +64 -72
- package/src/adapters/geonames-postal/adapter.ts +42 -50
- package/src/adapters/gnaf/adapter.ts +4 -7
- package/src/adapters/gnaf/assemble.ts +6 -10
- package/src/adapters/openaddresses/adapter.ts +2 -7
- package/src/adapters/overture/adapter.ts +3 -6
- package/src/adapters/state-hi-schools/adapter.ts +50 -73
- package/src/adapters/state-ia-contractors/adapter.ts +52 -76
- package/src/adapters/state-ny-notaries/adapter.ts +61 -85
- package/src/adapters/state-tx-notaries/adapter.ts +60 -84
- package/src/adapters/synth-po-box/adapter.ts +7 -17
- package/src/adapters/tiger/street-decompose.ts +21 -31
- package/src/adapters/usgov-hrsa-fqhc/adapter.ts +61 -84
- package/src/adapters/usgov-imls-pls/adapter.ts +54 -82
- package/src/adapters/usgov-irs-bmf/adapter.ts +53 -63
- package/src/adapters/usgov-nad/adapter.ts +5 -8
- package/src/adapters/usgov-nppes/adapter.ts +51 -75
- package/src/adapters/usgov-samhsa-treatment-locator/adapter.ts +45 -71
- package/src/adapters/wof-admin-jp/adapter.ts +34 -8
- package/src/build.ts +2 -1
- package/src/golden.ts +24 -9
- package/src/parquet-wrapper/reader.ts +19 -0
- package/src/parquet-wrapper/schema.ts +4 -0
- package/src/parquet.ts +3 -16
- package/src/shard-recipes/anchor-absorption.ts +2 -1
- package/src/shard-recipes/country-balanced.ts +69 -70
- package/src/shard-recipes/fr-fragment.ts +10 -7
- package/src/shard-recipes/fr-order.ts +13 -63
- package/src/shard-recipes/german.ts +12 -65
- package/src/shard-recipes/index.ts +2 -0
- package/src/shard-recipes/intersection.ts +32 -60
- package/src/shard-recipes/locale.ts +14 -16
- package/src/shard-recipes/no-fragment.ts +10 -7
- package/src/shard-recipes/no-street-led.ts +10 -7
- package/src/shard-recipes/po-box-cedex.ts +68 -119
- package/src/shard-recipes/scaffold.ts +82 -28
- package/src/shard-recipes/street-affix.ts +58 -95
- package/src/shard-recipes/sub-venue-sources.ts +895 -0
- package/src/shard-recipes/sub-venue.ts +982 -0
- package/src/shard-recipes/unit.ts +22 -70
- package/src/split.ts +7 -0
- package/src/synthesize.ts +1 -15
- package/src/tools/align-shard.ts +3 -6
- package/src/tools/audit.ts +6 -5
- package/src/tools/corpus-stats.ts +25 -33
- package/src/tools/fetch/download.ts +7 -5
- package/src/tools/fetch/imls-pls.ts +2 -2
- package/src/tools/fetch/index.ts +14 -1
- package/src/tools/fetch/nad.ts +1 -1
- package/src/tools/fetch/nppes.ts +2 -1
- package/src/tools/fetch/openaddresses.ts +1 -1
- package/src/tools/fetch/ourairports.ts +166 -0
- package/src/tools/fetch/wikidata-subvenue.ts +386 -0
- package/src/tools/golden-expand.ts +18 -13
- package/src/tools/golden-promote.ts +15 -6
- package/src/tools/golden-relabel-street.ts +748 -0
- package/src/tools/index.ts +4 -0
- package/src/tools/jsonl-to-parquet.ts +3 -2
- package/src/tools/lint-shard-vocab.ts +3 -2
- package/src/tools/lint-shard.ts +33 -36
- package/src/tools/overlay-manifest.ts +2 -1
- package/src/tools/overture-subvenue.ts +215 -0
- package/src/tools/shard-kryptonite.ts +5 -4
- package/src/tools/shard-translit.ts +12 -7
- package/src/tools/sub-venue-lexicon.ts +1250 -0
- package/src/tools/sub-venue-promotions.ts +330 -0
- package/src/wof-json.ts +5 -8
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sub-venue-sources.js","sourceRoot":"","sources":["../../../src/shard-recipes/sub-venue-sources.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAC3C,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE1C,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAGpD,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAA6B,MAAM,+BAA+B,CAAA;AAChH,OAAO,EAAE,mBAAmB,EAA0B,MAAM,kCAAkC,CAAA;AAC9F,OAAO,EAAE,UAAU,IAAI,gBAAgB,EAAmB,MAAM,aAAa,CAAA;AAC7E,OAAO,EAAE,cAAc,EAAE,UAAU,IAAI,eAAe,EAAE,MAAM,eAAe,CAAA;AAE7E,iBAAiB;AAE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sub-venue` shard recipe (#35 step 4) — teach the `unit` tag the venue-INTERIOR shapes it was
|
|
7
|
+
* never taught, so the modifier+designator class wins at the shipped `venueStructureBiasScale` of
|
|
8
|
+
* 6.0 instead of needing ~11 nats. `docs/engineering/sub-venue-corpus-task.mdx` is the spec; the
|
|
9
|
+
* vocabulary is `corpus/data/sub-venue-lexicon.json` (v0.2.0) and the curation ledger is
|
|
10
|
+
* `corpus/src/tools/sub-venue-promotions.ts`. The READ half — promotions, identifier
|
|
11
|
+
* distributions, name pools — is `sub-venue-sources.ts`; this file renders lines and emits rows.
|
|
12
|
+
*
|
|
13
|
+
* ── WHY THIS SYNTHESIZES RATHER THAN HARVESTS ────────────────────────────────────────────────────
|
|
14
|
+
* Wave 1's lesson, and the reason the spec's "get real data first" instruction is honoured in a
|
|
15
|
+
* shape it did not anticipate: the attested SURFACE STRINGS are thin. 87 GB features attest
|
|
16
|
+
* `terminal`, 29 attest `wing`, 4 attest `concourse` (3 of which are a street called CONCOURSE WAY).
|
|
17
|
+
* You cannot train a tag on 29 strings. What the five extracts DO carry at volume is the three
|
|
18
|
+
* things a generator needs — 45,000+ real venue names across four countries, a per-region
|
|
19
|
+
* identifier DISTRIBUTION measured over 2,868 gate/terminal/campus refs, and the confound
|
|
20
|
+
* population that becomes the negatives. So the bulk is `designator × per-region-identifier ×
|
|
21
|
+
* modifier` sampled per locale, and the attested strings ride along as seasoning
|
|
22
|
+
* ({@link ATTESTED_FRACTION}) rather than as the corpus.
|
|
23
|
+
*
|
|
24
|
+
* ── THE PER-REGION IDENTIFIER RULE, AND WHY IT IS NOT COSMETIC ───────────────────────────────────
|
|
25
|
+
* `Gate A12` is a rendering, not a string anyone wrote down: all but 13 of Great Britain's 658
|
|
26
|
+
* `aeroway=gate` features are unnamed and carry only a `ref`. The lexicon therefore ships a
|
|
27
|
+
* distribution, and it differs by country far more than the shared English vocabulary suggests —
|
|
28
|
+
* GB gates are 71% bare digits and JP 89%, FR and DE are ~60% letter-digit (`A37`, `B05`), and ES
|
|
29
|
+
* gives a THIRD of its gates a range (`B18-B20`), which no other country does at that rate. A
|
|
30
|
+
* generator that samples Great Britain's shape into a Spanish line produces a plausible string that
|
|
31
|
+
* is wrong about Spain, so every leg samples its own region.
|
|
32
|
+
*
|
|
33
|
+
* ── ONLY PROMOTED (designator, locale) PAIRS PRODUCE POSITIVES ───────────────────────────────────
|
|
34
|
+
* A promotion names a designator, a phrase AND a locale, because the same token is a designator in
|
|
35
|
+
* one language and a disaster in another: `hall` is 0-of-3,273 in Great Britain and 35-of-40 in
|
|
36
|
+
* France; `wing` is 23-of-29 in Great Britain and 4-of-3,358 in the United States. A REJECTED pair
|
|
37
|
+
* generates NEGATIVES in that locale instead — en-US `wing` rows are Red Wing, not units.
|
|
38
|
+
*
|
|
39
|
+
* `shape: "identifier-required"` is honoured as the ledger's docstring demands: de-DE `halle` is
|
|
40
|
+
* emitted only as `Halle <identifier>`, never bare and never after a modifier, because its 168-hit
|
|
41
|
+
* confound includes the CITY Halle (Saale) and only the identifier-bearing shape separates them.
|
|
42
|
+
* {@link buildSubVenueForm} enforces it and `sub-venue.test.ts` pins it.
|
|
43
|
+
*
|
|
44
|
+
* ── LABELS ───────────────────────────────────────────────────────────────────────────────────────
|
|
45
|
+
* Sub-venue is `unit`; the container is `venue`. That is the spec's wording and it invents nothing:
|
|
46
|
+
* `block` / `sub_block` exist in the `ComponentTag` union but are JP-char-model-only and outside
|
|
47
|
+
* `ACTIVE_TAGS` (STAGE3), so they are not reachable from a Latin shard.
|
|
48
|
+
*
|
|
49
|
+
* ── WHAT IS DELIBERATELY NOT HERE ────────────────────────────────────────────────────────────────
|
|
50
|
+
* 1. **A modifier+designator form outside English.** `VENUE_STRUCTURE_MODIFIERS` is an English
|
|
51
|
+
* list, and the extracts say the localized modifier surfaces do not exist to copy: `aile` in
|
|
52
|
+
* France is 0 hits, `ala` in Spain 0, `flügel` in Germany 0. Generating `Terminal Sud` would
|
|
53
|
+
* be inventing a vocabulary with no confound board behind it, which is the exact failure the
|
|
54
|
+
* promotion ledger exists to prevent. Non-English legs get designator+identifier only.
|
|
55
|
+
* 2. **A ja-JP leg.** `ターミナル` is promoted (1,213 real of 1,215) and it is the one non-Latin
|
|
56
|
+
* surface the task named, but Japanese addresses train through `build_jp_shard.py` against the
|
|
57
|
+
* `stage3-jp` 47-label head, where the interior tags are `block`/`sub_block`/`building_number`
|
|
58
|
+
* — a different model, a different label set, and a different builder. A katakana `unit` row
|
|
59
|
+
* in this (Latin) feed would in any case be dropped by `country_weights`, which carries no
|
|
60
|
+
* `JP` key. The JP extract is harvested and ready; the leg belongs to the JP shard.
|
|
61
|
+
*/
|
|
62
|
+
import type { ComponentTag } from "@mailwoman/core/types";
|
|
63
|
+
import type { LocaleBaseTuple } from "../synthesize-german.ts";
|
|
64
|
+
import { type ShardRecipe } from "./scaffold.ts";
|
|
65
|
+
import { type IdentifierModel, type PromotedSurface } from "./sub-venue-sources.ts";
|
|
66
|
+
export * from "./sub-venue-sources.ts";
|
|
67
|
+
/**
|
|
68
|
+
* One locale's leg of the shard.
|
|
69
|
+
*
|
|
70
|
+
* `positiveShare` / `negativeShare` are relative weights, normalized at run time — they do not have to sum to 1.
|
|
71
|
+
*/
|
|
72
|
+
export interface SubVenueLeg {
|
|
73
|
+
locale: string;
|
|
74
|
+
country: string;
|
|
75
|
+
/**
|
|
76
|
+
* ISO 3166-1 alpha-2 key into the lexicon's `identifierShapes` AND the extract filename. The two axes are the same
|
|
77
|
+
* axis: a distribution is measured in a region's own extract.
|
|
78
|
+
*/
|
|
79
|
+
region: string;
|
|
80
|
+
/**
|
|
81
|
+
* Extract filename under `--extracts-dir`. Absent = no OSM extract for this leg (en-US), which then draws its venue
|
|
82
|
+
* and confound pools from `poi.db` instead.
|
|
83
|
+
*/
|
|
84
|
+
extract?: string;
|
|
85
|
+
/**
|
|
86
|
+
* May this leg use the English `<modifier> <designator>` grammar? See the module docstring's exclusion 1.
|
|
87
|
+
*/
|
|
88
|
+
english: boolean;
|
|
89
|
+
positiveShare: number;
|
|
90
|
+
negativeShare: number;
|
|
91
|
+
/**
|
|
92
|
+
* Ca-ES only — keep context tuples whose postcode starts with one of these. Catalan-language territories by postal
|
|
93
|
+
* prefix (07 Illes Balears, 08 Barcelona, 17 Girona, 25 Lleida, 43 Tarragona) rather than by a REGION string, whose
|
|
94
|
+
* spelling in the OA export is not something to guess at.
|
|
95
|
+
*/
|
|
96
|
+
postcodePrefixes?: readonly string[];
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* The legs, and the numbers behind the shares.
|
|
100
|
+
*
|
|
101
|
+
* En-GB and en-US carry the most because they are where the eval board lives (28 of the 30 confound rows are GB or US
|
|
102
|
+
* addresses) and because the English shipped vocabulary is the only one with a modifier grammar — the target class.
|
|
103
|
+
* fr-FR, de-DE and es-ES exist because the ledger promoted surfaces there (169, 19+32 and 190 real hits respectively)
|
|
104
|
+
* and a shard that skipped them would leave every non-English promotion untrained. ca-ES is small on purpose: its
|
|
105
|
+
* promotion is 15 hits and its line differs from es-ES only in the Catalan street vocabulary the postal-prefix filter
|
|
106
|
+
* selects for.
|
|
107
|
+
*
|
|
108
|
+
* The negative shares invert that ordering where the confound mass does. en-US carries the largest negative share
|
|
109
|
+
* because its confound population is the largest measured anywhere in the ledger — 3,354 `wing` (Red Wing boots 676,
|
|
110
|
+
* chicken wings 759), 2,330 `pier` (Pier 1 Imports, which IS the designator+identifier shape), 27,081 `hall`.
|
|
111
|
+
*/
|
|
112
|
+
export declare const SUBVENUE_LEGS: readonly SubVenueLeg[];
|
|
113
|
+
/**
|
|
114
|
+
* En-US has no OSM extract, so its identifier distribution has to be borrowed. GB is the borrow, and the leg's `region`
|
|
115
|
+
* says so literally rather than in a comment: the two English-speaking aviation systems number their gates the same way
|
|
116
|
+
* (GB 71% bare digit) and poi.db — the only US source in reach — carries names, not refs, so it cannot supply a
|
|
117
|
+
* distribution of its own. Recorded here because it is the one place a leg's `region` is not its own country.
|
|
118
|
+
*/
|
|
119
|
+
export declare const US_IDENTIFIER_REGION_BORROWED_FROM = "GB";
|
|
120
|
+
/**
|
|
121
|
+
* The row count this shard is built at, and the arithmetic behind it. `--count` overrides; this is the number to use
|
|
122
|
+
* absent a reason.
|
|
123
|
+
*
|
|
124
|
+
* The training sampler (`corpus-python/src/mailwoman_train/data_loader.py`, `_raw_row_stream`) draws SOURCES from a
|
|
125
|
+
* multinomial over `source_weights` and yields the next row from that source's iterator. Two consequences set the
|
|
126
|
+
* size:
|
|
127
|
+
*
|
|
128
|
+
* 1. A source's share of an epoch is `weight / Σweights`, independent of how many rows it has.
|
|
129
|
+
* 2. **A source that exhausts is DELETED from the multinomial** — there is no cycling. Under-size the shard and its
|
|
130
|
+
* nominal dose is fiction for the rest of the epoch.
|
|
131
|
+
*
|
|
132
|
+
* Measured against the shipped `v4.1.0-gb-venue-l1e4-2k` weight table: 33 sources summing to 144.5. At the dose the B11
|
|
133
|
+
* GB-venue exercise settled on for a hard rare class — 12.0, the value `synth-fr-bare-street`, `synth-si-bare-village`,
|
|
134
|
+
* `synth-cz-pcfirst-preposition`, `synth-fr-fragment` and `synth-no-fragment` all carry — the share is `12 / 156.5 =
|
|
135
|
+
* 7.67%`, and `train_rows_per_epoch` is 1,000,000. So the epoch draws **76,677 rows** from this shard, and anything
|
|
136
|
+
* smaller runs dry mid-epoch. 120,000 clears that with room for a config that drops a source or raises the dose. (For
|
|
137
|
+
* contrast: `synth-fr-bare-street` is 10,803 rows at dose 12.0, so it exhausts 14% into its own nominal share every
|
|
138
|
+
* epoch — a precedent for the dose, not for the size.)
|
|
139
|
+
*/
|
|
140
|
+
export declare const RECOMMENDED_ROW_COUNT = 120000;
|
|
141
|
+
/**
|
|
142
|
+
* Surfaces reserved by `mailwoman/eval-harness/fixtures/venue-structure-confounds.jsonl` — the 30-row board this shard
|
|
143
|
+
* has to hold. A row containing any of these is DROPPED and counted in `contaminated`.
|
|
144
|
+
*
|
|
145
|
+
* The `--exclude-surfaces` precedent from `fr-fragment` / `no-fragment`, applied by hand rather than by file because
|
|
146
|
+
* the board lives in `mailwoman/` and `@mailwoman/corpus` cannot reach across that workspace boundary at run time. Keep
|
|
147
|
+
* it in sync when the board grows; a shard that trains on its own eval set measures memorization.
|
|
148
|
+
*
|
|
149
|
+
* Note what this costs and why it is still right: reserving `east gate` / `west gate` removes the two GB surfaces the
|
|
150
|
+
* board uses for its `modifier-designator-street` class, so the shard teaches that class from the OTHER real ones its
|
|
151
|
+
* sources carry (`North Gate`, `South Gate`, `East Hall`, `West Hall`, `Lower Hall`, `East Campus`, …). The class is
|
|
152
|
+
* taught; the board's own strings are not.
|
|
153
|
+
*/
|
|
154
|
+
export declare const BOARD_RESERVED_SURFACES: readonly string[];
|
|
155
|
+
/**
|
|
156
|
+
* Does this row's text collide with a board-reserved surface?
|
|
157
|
+
*/
|
|
158
|
+
export declare function isBoardReserved(raw: string): boolean;
|
|
159
|
+
/**
|
|
160
|
+
* One labelled piece of the line. Pieces inside a group are space-joined; groups are joined by the register's
|
|
161
|
+
* separator.
|
|
162
|
+
*/
|
|
163
|
+
interface Piece {
|
|
164
|
+
text: string;
|
|
165
|
+
tag?: ComponentTag;
|
|
166
|
+
}
|
|
167
|
+
type Group = Piece[];
|
|
168
|
+
/**
|
|
169
|
+
* Surface register. Every eval in this repo gets a lowercase leg because lowercase is the register users type — Google
|
|
170
|
+
* Maps taught them — so every shard has to carry one.
|
|
171
|
+
*/
|
|
172
|
+
declare const Register: {
|
|
173
|
+
readonly Canonical: "canonical";
|
|
174
|
+
readonly CommaFree: "comma-free";
|
|
175
|
+
readonly Lower: "lower";
|
|
176
|
+
readonly Upper: "upper";
|
|
177
|
+
};
|
|
178
|
+
type Register = (typeof Register)[keyof typeof Register];
|
|
179
|
+
/**
|
|
180
|
+
* Join groups into `raw` + `components`, applying the register to BOTH so alignment still finds every value.
|
|
181
|
+
*/
|
|
182
|
+
export declare function renderGroups(groups: Group[], register: Register): {
|
|
183
|
+
raw: string;
|
|
184
|
+
components: Partial<Record<ComponentTag, string>>;
|
|
185
|
+
};
|
|
186
|
+
/**
|
|
187
|
+
* The street + tail groups for a country, in that country's own order.
|
|
188
|
+
*
|
|
189
|
+
* DE/ES/FR put the postcode before the locality and DE/ES put the house number after the street; GB and US keep the
|
|
190
|
+
* anglophone order and US carries a region. These are the same orders `synthesize-german.ts` renders, restated here
|
|
191
|
+
* because this recipe assembles its groups piece-by-piece (it has to, to place a sub-venue group in front of them).
|
|
192
|
+
*/
|
|
193
|
+
export declare function addressGroups(country: string, tuple: LocaleBaseTuple, withStreet: boolean): Group[];
|
|
194
|
+
/**
|
|
195
|
+
* A sub-venue string plus how it was made, for the composition report.
|
|
196
|
+
*/
|
|
197
|
+
export interface SubVenueForm {
|
|
198
|
+
text: string;
|
|
199
|
+
form: "designator-identifier" | "modifier-designator" | "attested";
|
|
200
|
+
designatorID: string;
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* Build one sub-venue string for a leg.
|
|
204
|
+
*
|
|
205
|
+
* The `identifier-required` guard is here and not at the call site on purpose: it is the one rule in this file that a
|
|
206
|
+
* refactor must not be able to route around. A promotion carrying `shape: "identifier-required"` can only ever leave
|
|
207
|
+
* this function as `<Phrase> <identifier>`, and returns `null` rather than a bare or modified form.
|
|
208
|
+
*/
|
|
209
|
+
export declare function buildSubVenueForm(leg: SubVenueLeg, promoted: readonly PromotedSurface[], model: IdentifierModel, modifiers: readonly string[], attested: readonly string[], random: () => number): SubVenueForm | null;
|
|
210
|
+
/**
|
|
211
|
+
* Alias kept for readers of the arc's earlier drafts.
|
|
212
|
+
*
|
|
213
|
+
* @deprecated Use {@link buildSubVenueForm}.
|
|
214
|
+
*/
|
|
215
|
+
export declare const buildPositiveForms: typeof buildSubVenueForm;
|
|
216
|
+
/**
|
|
217
|
+
* Negative classes, named so the composition report can count them and a failure can be attributed.
|
|
218
|
+
*/
|
|
219
|
+
export declare const NegativeClass: {
|
|
220
|
+
/**
|
|
221
|
+
* A locale-REJECTED surface in the venue slot: Red Wing Shoes, Village Hall, Porte de Champerret.
|
|
222
|
+
*/
|
|
223
|
+
readonly RejectedVenue: "rejected-venue";
|
|
224
|
+
/**
|
|
225
|
+
* The designator inside a longer proper name, whole string tagged `venue`: Lochaline Ferry Terminal.
|
|
226
|
+
*/
|
|
227
|
+
readonly LongerName: "longer-name";
|
|
228
|
+
/**
|
|
229
|
+
* A real street whose name carries a designator token: Pier Road, Egg Hall, Orchard Gate.
|
|
230
|
+
*/
|
|
231
|
+
readonly DesignatorStreet: "designator-street";
|
|
232
|
+
/**
|
|
233
|
+
* A real street of the `<modifier> <designator>` shape — the class that would otherwise be read as a sub-venue.
|
|
234
|
+
*/
|
|
235
|
+
readonly ModifierDesignatorStreet: "modifier-designator-street";
|
|
236
|
+
/**
|
|
237
|
+
* A GB single-token `-gate` street: Eastgate, Southgate, Moorgate, Stonegate.
|
|
238
|
+
*/
|
|
239
|
+
readonly GateSuffixStreet: "gate-suffix-street";
|
|
240
|
+
/**
|
|
241
|
+
* A PROMOTED phrase outside the shape its promotion covers — `Halle Rosengarten`, `PHOENIX Halle`. The other half of
|
|
242
|
+
* an `identifier-required` ruling; see `LegPools.unpromotedShapes`.
|
|
243
|
+
*/
|
|
244
|
+
readonly UnpromotedShape: "unpromoted-shape";
|
|
245
|
+
};
|
|
246
|
+
export type NegativeClass = (typeof NegativeClass)[keyof typeof NegativeClass];
|
|
247
|
+
/**
|
|
248
|
+
* Per-leg composition tallies the build prints and the report quotes.
|
|
249
|
+
*/
|
|
250
|
+
export interface SubVenueLegStats {
|
|
251
|
+
locale: string;
|
|
252
|
+
positives: number;
|
|
253
|
+
negatives: number;
|
|
254
|
+
byForm: Record<string, number>;
|
|
255
|
+
byDesignator: Record<string, number>;
|
|
256
|
+
byNegativeClass: Record<string, number>;
|
|
257
|
+
byRegister: Record<string, number>;
|
|
258
|
+
poolSizes: Record<string, number>;
|
|
259
|
+
}
|
|
260
|
+
/**
|
|
261
|
+
* Split `total` across `shares` (which need not sum to 1), largest-remainder so the parts sum exactly.
|
|
262
|
+
*/
|
|
263
|
+
export declare function allocate(total: number, shares: readonly number[]): number[];
|
|
264
|
+
/**
|
|
265
|
+
* Shard recipe registered with the corpus builder — see the file header for the parse behaviour it exists to exercise,
|
|
266
|
+
* and `description` below for the surface form it generates.
|
|
267
|
+
*/
|
|
268
|
+
export declare const subVenueRecipe: ShardRecipe;
|
|
269
|
+
//# sourceMappingURL=sub-venue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sub-venue.d.ts","sourceRoot":"","sources":["../../../src/shard-recipes/sub-venue.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4DG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAIzD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AAE9D,OAAO,EAAiC,KAAK,WAAW,EAAE,MAAM,eAAe,CAAA;AAC/E,OAAO,EAKN,KAAK,eAAe,EAKpB,KAAK,eAAe,EASpB,MAAM,wBAAwB,CAAA;AAE/B,cAAc,wBAAwB,CAAA;AAStC;;;;GAIG;AACH,MAAM,WAAW,WAAW;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,CAAA;IACf;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAA;IACd;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAA;IAChB,aAAa,EAAE,MAAM,CAAA;IACrB,aAAa,EAAE,MAAM,CAAA;IACrB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;CACpC;AAED;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,aAAa,EAAE,SAAS,WAAW,EAgD/C,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,kC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