@mailwoman/neural-weights-en-us 6.0.0 → 6.2.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.
@@ -0,0 +1,326 @@
1
+ {
2
+ "version": 1,
3
+ "generated_by": "codex/tools/build-country-surface-lexicon.ts (source: @mailwoman/codex COUNTRY_SURFACE_FORMS + ISO2_TO_NAME)",
4
+ "feature_dim": 2,
5
+ "slots": ["country_surface", "country_ambiguous"],
6
+ "bits": {
7
+ "country_surface": 1,
8
+ "country_ambiguous": 2
9
+ },
10
+ "max_ngram": 7,
11
+ "rules": {
12
+ "word_norm": "per whitespace-word: strip leading/trailing chars that are not Unicode letters/digits (keep internal: 'timor-leste', 'u.s.a'); rejoin single-spaced. Applied to BOTH entry keys and scanned tokens.",
13
+ "entries": "case-insensitive; key = word_norm lowercased. country_surface always set; country_ambiguous set for single-token homographs (US region) or curated common-word names.",
14
+ "code_entries": "case-SENSITIVE exact: word_norm(token) == key (keys uppercase; 'in' the word ≠ 'IN' India). n-gram length 1. country_ambiguous set when the code is also a US-state abbreviation.",
15
+ "scan": "longest-first n-gram over whitespace words, left to right, non-overlapping (shared with the gazetteer matcher)",
16
+ "feature": "emitted per-piece row = [country_surface, country_ambiguous] (the raw bits); confidence = 1.0 where country_surface fires."
17
+ },
18
+ "entries": {
19
+ "afghanistan": 1,
20
+ "åland islands": 1,
21
+ "albania": 1,
22
+ "algeria": 1,
23
+ "america": 3,
24
+ "american samoa": 1,
25
+ "andorra": 1,
26
+ "angola": 1,
27
+ "anguilla": 1,
28
+ "antarctica": 1,
29
+ "antigua and barbuda": 1,
30
+ "argentina": 1,
31
+ "armenia": 1,
32
+ "aruba": 1,
33
+ "australia": 1,
34
+ "austria": 1,
35
+ "azerbaijan": 1,
36
+ "bahamas": 1,
37
+ "bahrain": 1,
38
+ "bangladesh": 1,
39
+ "barbados": 1,
40
+ "belarus": 1,
41
+ "belgië": 1,
42
+ "belgique": 1,
43
+ "belgium": 1,
44
+ "belize": 1,
45
+ "benin": 1,
46
+ "bermuda": 1,
47
+ "bhutan": 1,
48
+ "bolivia": 1,
49
+ "bonaire sint eustatius and saba": 1,
50
+ "bosnia and herzegovina": 1,
51
+ "botswana": 1,
52
+ "bouvet island": 1,
53
+ "brazil": 1,
54
+ "britain": 3,
55
+ "british indian ocean territory": 1,
56
+ "brunei darussalam": 1,
57
+ "bulgaria": 1,
58
+ "burkina faso": 1,
59
+ "burundi": 1,
60
+ "cambodia": 1,
61
+ "cameroon": 1,
62
+ "canada": 1,
63
+ "cape verde": 1,
64
+ "cayman islands": 1,
65
+ "central african republic": 1,
66
+ "chad": 3,
67
+ "chile": 1,
68
+ "china": 1,
69
+ "christmas island": 1,
70
+ "cocos keeling islands": 1,
71
+ "colombia": 1,
72
+ "comoros": 1,
73
+ "congo": 1,
74
+ "congo the democratic republic of the": 1,
75
+ "cook islands": 1,
76
+ "costa rica": 1,
77
+ "cote divoire": 1,
78
+ "croatia": 1,
79
+ "cuba": 1,
80
+ "curaçao": 1,
81
+ "cyprus": 1,
82
+ "czech republic": 1,
83
+ "denmark": 1,
84
+ "deutschland": 1,
85
+ "djibouti": 1,
86
+ "dominica": 1,
87
+ "dominican republic": 1,
88
+ "ecuador": 1,
89
+ "egypt": 1,
90
+ "éire": 1,
91
+ "el salvador": 1,
92
+ "england": 3,
93
+ "equatorial guinea": 1,
94
+ "eritrea": 1,
95
+ "espana": 1,
96
+ "españa": 1,
97
+ "estonia": 1,
98
+ "ethiopia": 1,
99
+ "falkland islands malvinas": 1,
100
+ "faroe islands": 1,
101
+ "federal republic of germany": 1,
102
+ "fiji": 1,
103
+ "finland": 1,
104
+ "france": 1,
105
+ "french guiana": 1,
106
+ "french polynesia": 1,
107
+ "french republic": 1,
108
+ "french southern territories": 1,
109
+ "gabon": 1,
110
+ "gambia": 1,
111
+ "georgia": 3,
112
+ "germany": 1,
113
+ "ghana": 1,
114
+ "gibraltar": 1,
115
+ "great britain": 1,
116
+ "greece": 1,
117
+ "greenland": 1,
118
+ "grenada": 1,
119
+ "guadeloupe": 1,
120
+ "guam": 3,
121
+ "guatemala": 1,
122
+ "guernsey": 1,
123
+ "guinea": 3,
124
+ "guinea-bissau": 1,
125
+ "guyana": 1,
126
+ "haiti": 1,
127
+ "heard island and mcdonald islands": 1,
128
+ "holland": 1,
129
+ "holy see vatican city state": 1,
130
+ "honduras": 1,
131
+ "hong kong": 1,
132
+ "hungary": 1,
133
+ "iceland": 1,
134
+ "india": 1,
135
+ "indonesia": 1,
136
+ "iran islamic republic of": 1,
137
+ "iraq": 1,
138
+ "ireland": 1,
139
+ "isle of man": 1,
140
+ "israel": 1,
141
+ "italia": 1,
142
+ "italy": 1,
143
+ "jamaica": 1,
144
+ "japan": 1,
145
+ "jersey": 3,
146
+ "jordan": 3,
147
+ "kazakhstan": 1,
148
+ "kenya": 1,
149
+ "kiribati": 1,
150
+ "korea democratic people's republic of": 1,
151
+ "korea republic of": 1,
152
+ "kuwait": 1,
153
+ "kyrgyzstan": 1,
154
+ "lao people's democratic republic": 1,
155
+ "latvia": 1,
156
+ "lebanon": 1,
157
+ "lesotho": 1,
158
+ "liberia": 1,
159
+ "libya": 1,
160
+ "liechtenstein": 1,
161
+ "lithuania": 1,
162
+ "luxembourg": 1,
163
+ "macao": 1,
164
+ "macedonia the former yugoslav republic of": 1,
165
+ "madagascar": 1,
166
+ "malawi": 1,
167
+ "malaysia": 1,
168
+ "maldives": 1,
169
+ "mali": 1,
170
+ "malta": 1,
171
+ "marshall islands": 1,
172
+ "martinique": 1,
173
+ "mauritania": 1,
174
+ "mauritius": 1,
175
+ "mayotte": 1,
176
+ "mexico": 1,
177
+ "méxico": 1,
178
+ "micronesia federated states of": 1,
179
+ "moldova republic of": 1,
180
+ "monaco": 1,
181
+ "mongolia": 1,
182
+ "montenegro": 1,
183
+ "montserrat": 1,
184
+ "morocco": 1,
185
+ "mozambique": 1,
186
+ "myanmar": 1,
187
+ "namibia": 1,
188
+ "nauru": 1,
189
+ "nederland": 1,
190
+ "nepal": 1,
191
+ "netherlands": 1,
192
+ "new caledonia": 1,
193
+ "new zealand": 1,
194
+ "nicaragua": 1,
195
+ "niger": 1,
196
+ "nigeria": 1,
197
+ "nippon": 1,
198
+ "niue": 1,
199
+ "norfolk island": 1,
200
+ "northern mariana islands": 1,
201
+ "norway": 1,
202
+ "oman": 1,
203
+ "osterreich": 1,
204
+ "österreich": 1,
205
+ "pakistan": 1,
206
+ "palau": 1,
207
+ "palestine state of": 1,
208
+ "panama": 1,
209
+ "papua new guinea": 1,
210
+ "paraguay": 1,
211
+ "peru": 1,
212
+ "philippines": 1,
213
+ "pitcairn": 1,
214
+ "poland": 1,
215
+ "portugal": 1,
216
+ "puerto rico": 1,
217
+ "qatar": 1,
218
+ "reunion": 1,
219
+ "romania": 1,
220
+ "russian federation": 1,
221
+ "rwanda": 1,
222
+ "saint barthélemy": 1,
223
+ "saint helena ascension and tristan da cunha": 1,
224
+ "saint kitts and nevis": 1,
225
+ "saint lucia": 1,
226
+ "saint martin french part": 1,
227
+ "saint pierre and miquelon": 1,
228
+ "saint vincent and the grenadines": 1,
229
+ "samoa": 1,
230
+ "san marino": 1,
231
+ "sao tome and principe": 1,
232
+ "saudi arabia": 1,
233
+ "schweiz": 1,
234
+ "senegal": 1,
235
+ "serbia": 1,
236
+ "seychelles": 1,
237
+ "sierra leone": 1,
238
+ "singapore": 1,
239
+ "sint maarten dutch part": 1,
240
+ "slovakia": 1,
241
+ "slovenia": 1,
242
+ "solomon islands": 1,
243
+ "somalia": 1,
244
+ "south africa": 1,
245
+ "south georgia and the south sandwich islands": 1,
246
+ "south sudan": 1,
247
+ "spain": 1,
248
+ "sri lanka": 1,
249
+ "sudan": 1,
250
+ "suisse": 1,
251
+ "suriname": 1,
252
+ "svalbard and jan mayen": 1,
253
+ "svizzera": 1,
254
+ "swaziland": 1,
255
+ "sweden": 1,
256
+ "switzerland": 1,
257
+ "syrian arab republic": 1,
258
+ "taiwan province of china": 1,
259
+ "tajikistan": 1,
260
+ "tanzania united republic of": 1,
261
+ "thailand": 1,
262
+ "the netherlands": 1,
263
+ "timor-leste": 1,
264
+ "togo": 1,
265
+ "tokelau": 1,
266
+ "tonga": 1,
267
+ "trinidad and tobago": 1,
268
+ "tunisia": 1,
269
+ "turkey": 3,
270
+ "turkmenistan": 1,
271
+ "turks and caicos islands": 1,
272
+ "tuvalu": 1,
273
+ "uganda": 1,
274
+ "ukraine": 1,
275
+ "united arab emirates": 1,
276
+ "united kingdom": 1,
277
+ "united states": 1,
278
+ "united states minor outlying islands": 1,
279
+ "united states of america": 1,
280
+ "uruguay": 1,
281
+ "uzbekistan": 1,
282
+ "vanuatu": 1,
283
+ "venezuela": 1,
284
+ "viet nam": 1,
285
+ "virgin islands british": 1,
286
+ "virgin islands u.s": 1,
287
+ "wallis and futuna": 1,
288
+ "western sahara": 1,
289
+ "yemen": 1,
290
+ "zambia": 1,
291
+ "zimbabwe": 1
292
+ },
293
+ "code_entries": {
294
+ "AT": 1,
295
+ "AU": 1,
296
+ "AUS": 1,
297
+ "BE": 1,
298
+ "CA": 3,
299
+ "CAN": 1,
300
+ "CH": 1,
301
+ "DE": 3,
302
+ "ES": 1,
303
+ "ESP": 1,
304
+ "FR": 1,
305
+ "FRA": 1,
306
+ "GB": 1,
307
+ "GER": 1,
308
+ "IE": 1,
309
+ "IRL": 1,
310
+ "IT": 1,
311
+ "ITA": 1,
312
+ "JP": 1,
313
+ "JPN": 1,
314
+ "MEX": 1,
315
+ "MX": 1,
316
+ "NL": 1,
317
+ "NLD": 1,
318
+ "U.K": 1,
319
+ "U.S": 1,
320
+ "U.S.A": 1,
321
+ "UK": 1,
322
+ "US": 1,
323
+ "USA": 1,
324
+ "日本": 1
325
+ }
326
+ }
package/model-card.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "neural-weights-en-us",
3
- "version": "5.9.0",
4
- "model_lineage": "v2.4.1-fr-nsplice-ft — the PRINCIPLED FR-diacritic fix (#444): an init_from FINE-TUNE that gives the merged FR diacritic pieces GRADIENT STEPS, the retrain the #1047 falsification specified. #1047 proved the TRAINING-FREE vocab-splice (the v240 mean-init candidate) net-REGRESSES FR streets (mangle 23.5%->26.4%): FVT mean-init of a merged FR piece — E(▸René) = mean(E[▸Ren], E[é]) — inherits é's strong, well-trained O-signal (the en-US line trained FROM SCRATCH on v0.7.1 with abundant FR é->O), so the whole ▸René token tags O and the word drops entirely. Mean-init alone can't teach the merged pieces; that needs training. THE RECIPE = v2.3.0-nl-postcode-full (shipped v5.4.0 lineage / v230) VERBATIM, four deltas: (1) tokenizer_dir -> v0.8.0-fr-nsplice (v0.7.1's 63913 + 2406 FR diacritic pieces; md5 04995524, #900 gate PASS, US byte-identical by construction); (2) init_from -> /data/models/fr-nsplice-expanded = the v230 (v5.4.0) step-005000 checkpoint's token_embeddings FVT mean-init-expanded 63913->66319 (mean_init_fr_nsplice, the pytorch-checkpoint twin of the onnx-mean-init that produced the staged v240 candidate — same FVT math, so the init IS numerically the v240 mean-init candidate as a trainable checkpoint); (3) SCHEDULE -> the vocab-splice fine-tune schedule (v1.9.7/v1.9.8/v1.9.9/v2.1.0 idiom): constant lr 5.0e-5, warmup 200, 12000 steps, eval/save every 2000 (5x v230's same-vocab 1e-5 so the new FR rows MOVE off the inherited O-signal); (4) fresh v241 output dir. Corpus (v0.10.1-nl-postcode, 699 shards, raw-text RE-TOKENIZED through the spliced tokenizer at load so the FR pieces fire and get gradient), all source/country weights, model config (crf_loss_weight 0.0; conventions loss-mask OFF), anchor/gaz knobs, class_weights, seed 42, batch 128, bf16 — v230-VERBATIM. The spliced vocab + its gradient steps are the only variable. Final step 12000: train_loss 0.647, val_loss 0.868, val_macro_f1 0.7579, zero NaN. A100-SXM4-40GB, ~31 min. PRIOR LINEAGE (v230 / shipped v5.4.0 and back): v2.3.0-nl-postcode — init_from FINE-TUNE of v5.3.0 (v2.2.0-full-family) step-100000 + synth-nl-postcode@6.0, the four leading-name-boundary family shards pinned @12.0 (fr-bare-street/si-village/no-street-led/cz-pcfirst). LR 1e-5, warmup 1000, 5000 steps (~0.7 A100-h fine-tune vs a 3.6h from-scratch — the DeepSeek-signed recipe: the 'any fine-tune tips the #901 family' lore is surgery-lineage-specific, and v5.3.0 is from-scratch so it took the pinned fine-tune WITHOUT tipping the sentinels). THE FIX (#924): the model read the digits-first Dutch postcode '1012 LG' as house_number(1012)+street(LG), pulling the locality into the US situs tier ('1012 LG Amsterdam' -> Amsterdam, NY). Now parses postcode '1012 LG' natively (NL failing-shapes 27->29/31; postcode-tag F1 1.000). Gains beyond NL: US inverse-risk (4-digit house# NOT misread as postcode) 9->10/10 — the fine-tune even fixed a pre-existing leak; FR bare-street chevaleret PARSE fixed (locality=Paris, street='Rue du Chevaleret' vs v5.3.0's fragmentation) — the chevaleret metamorphic gauntlet rows reclassified #829 (resolver case-norm exposed by the better parse, not a regression). GATE: 17/17 per-tag floors PASS (us.postcode 96.2, homograph 85.1, micro 86.8, street 82.1, fr.postcode 99.3), fr.bare_street_intact 85% (#949 leg), mask-regression PASS, arena 79, gauntlet PASS (5 #901 sentinels HELD). macro_f1 0.7613->0.7558 (noise). CARRIED int8-homograph exception: int8<->fp32 delta 2.4 vs the 1.5 cap (fp32 passes every floor; int8 homograph 85.1 clears its 83.3 floor) — the same per-artifact exception v5.3.0 shipped with; cap unchanged for the next candidate. CALIBRATION: v5.3.0's isotonic tables carried (opt-in; the fine-tune's confidence shift is small; re-fit is a follow-up). PRIOR LINEAGE: v2.2.0-full-family / step 100000 — the FIRST ground-up from-scratch train on the spliced vocab (v0.8-era schedule: lr 1.5e-4, warmup 1000, batch 128; corpus v0.10.0 = 698 shards incl. the four-orthography leading-name-boundary family @6.0: fr-bare-street #831 / si-bare-village / no-street-led / cz-pcfirst-preposition; tokenizer v0.7.1-nsplice UNCHANGED — model-only bump). Archived NO-PROMOTE 2026-07-03 under the pre-#942 calculus (SI sentinels model-level fail); PROMOTED 2026-07-04 after the same-stack re-gate under the #942 floor (operator fork on #901). THE HEADLINE: fixes #949 — the shipped v5.2.0 pair fragmented FR streets bare AND anchored (16/40, 13/40 on the standing 40-row harness; 'Allée'→'e' at the é piece boundary; ungated because no fr.street floor existed) — v2.2.0 reads 34/40 bare / 37/40 anchored. Re-gate: US-2k ni PASS (p50 3.27 IDENTICAL), FR-3k ni PASS deconfounded (1.30km both), CZ wrong-city 13.7→6.6%, SK 13.3→6.6%, PL 7.1→6.2%; SE +4.6pp resolve (90.2→94.8), Åbo 0.12km vs 859km. TRADES (operator-approved, stated): SI wrong-city 8.7→11.4% (+2.7pp) / resolve −1.5pp — the composition-insensitive no-street class, floored model-independently by postalCompoundRecovery (#942 default-ON: candidate+floor recovered ALL 55 composition-lost rows, SI 92.2→100% resolve on the insurance leg); fr.postcode 99.2 (floor revised 99.3→99.2, scripts/eval/gates/v5.3.0-family.json, stated reason); int8 homograph quantization delta 2.4 vs the 1.5 cap (fp32 passes every floor; int8 homograph 85.1 clears its 83.3 floor) — per-artifact exception, cap unchanged. PRIOR LINEAGE (the v5.2.0 base this replaces): v5.1.0 bsplice-expanded (UNCHANGED encoder — see below) + the #912-lever-4 NORDIC vocab-splice with FVT mean-init embeddings (the same training-free #884 mechanism, second application): +5,331 Nordic diacritic pieces from OA fi/se/no/dk/is STREET/CITY text + the gazetteer ALIAS names (the exonym feed — 'Åbo' is Swedish for Turku and appears in no native OA text; without alias mass the piece is never minted and the decode drop survives, measured as the 134km v1 residual). Tokenizer v0.7.1-nsplice = v0.6.0-bsplice + the Nordic pieces; English tokenization byte-identical; US resolution byte-identical 2000/2000. Gate: 14/14 per-locale ni PASS (incl. the five #900-accepted acute-vowel overlap locales CZ/ES/PL/SI/SK), SE resolve 83.8→90.2% (p90res 113→12.7km), NO 92.7→98.1%, DK 91.4→95.2%, Åbo→Turku 0.12km. PRIOR LINEAGE: v1.9.3a3-anchor-absorption encoder (UNCHANGED, step 80000 — see the v4.15.0 lineage below) + the #884 UNIGRAM vocab-splice with FVT mean-init embeddings — the training-free CZ/PL/SK/SI diacritic fix. The 48k SentencePiece vocab carried the diacritic CHARACTERS but no multi-char subwords containing them, so every diacritic isolated its own piece (Vysoká → [▁V, ys, ok, á], ~3.3× English fertility) and the fragmented span resolved to the WRONG CITY. A shard retrain (v196) was falsified (held US, regressed CZ wrong-city 44→58% at convergence). The fix: train a CZ/PL SP unigram, splice ONLY its diacritic-bearing pieces into the vocab (48,000 → 58,582; a diacritic piece can never match an ASCII span, so English tokenizes byte-identically BY CONSTRUCTION — asserted 0/2000), and FVT mean-init the 10,582 new embedding rows from their old-tokenizer constituents. The encoder is byte-for-byte v1.9.3a3; a 2k fine-tune was ablated and retired as slightly harmful. Slovak + Slovenian ride the same pieces for free (shared codepoints + morphology). PRIOR LINEAGE: v1.9.3a3-anchor-absorption / step 80000 — the #220/#723 postcode-anchor-pollution fix on top of v1.9.2-multilocale-au (shipped v4.14.0). Pre-seeded from the v1.9.2 step-040000 checkpoint, continued to 80k on A100. TWO coordinated levers: (1) anchor_paint_mode=shaped — the postcode anchor is painted at TRAIN time on the same postcode-SHAPED spans inference fires on (neural/postcode-anchor.ts collectMatches), closing the #723 WHERE gap (training only ever saw the anchor on GOLD postcode spans, so the model never learned to OVERRIDE a present anchor when a leading 5-digit token is a house number that looks like a ZIP); (2) the synth-anchor-absorption counter-shard (source-weight 6.0) carrying the locality discriminator — leading-5-digit + trailing-postcode → house_number, + locality → house_number, + NO locality + state → postcode (the VT E911 format). RESULT: SLICE-H anchor-ON 20→100 (the #723 leading-5-digit house# bug fixed) at ZERO coordinate cost, confirmed by the non-circular oa-resolver-eval (2000 real OA-US points, full ship-config, v192 vs v1.9.3a3): whole-US locality-match 97.7→97.8 (+0.1), region 99.9 flat, coord p50 3.4 flat, p90 10.7 flat, p99 275.3→259.1; VT — the E911 leading-postcode state where the entire trade lives — FLAT at the coordinate (loc 92.6=92.6), SD +1.0. Trades us.postcode LABEL-F1 −2 (95.0) + fr.postcode −0.2 (99.3), both coordinate-invisible; gate revised (scripts/eval/gates/v4.15.0-boundary.json) with a stated reason, operator-approved. mask-regression gate (#718) PASS; int8↔fp32 delta 0. Ship-config (requires) UNCHANGED from v1.9.2.",
5
- "phase": "CANDIDATE (gate pending; operator decides promotion) — #444 FR diacritic vocab-splice init_from FINE-TUNE (run v2.4.1-fr-nsplice-ft-s42, checkpoint step-012000). Trained on the v0.8.0-fr-nsplice tokenizer (v0.7.1-nsplice + 2406 FR diacritic pieces), init_from the v240 mean-init-expanded checkpoint (v230 step-005000 embeddings FVT mean-init-expanded to 66319 rows). The merged FR pieces now receive gradient instead of inheriting é's O-signal. US byte-identical tokenizer (by construction); non-FR locales share only the 0.596% é/ê/ô-neighbor pieces.",
3
+ "version": "6.2.0",
4
+ "model_lineage": "v2.6.3-country-channel (v263, #1104) — init_from v261 (v2.6.1-span-boundary-full) + the dedicated country soft-feed channel ON, 8k steps, gentle schedule (lr 1e-5, warmup 500). Tokenizer v0.9.0-multisplice (73,143). The country channel is a 2-dim [country_surface, country_ambiguous] additive feature with its OWN projection + confidence (immune to suppress_gazetteer_near_postcode, unlike the shared gazetteer country slot — the #1104 signal-salience fix); it is the atlas analogue of Pelias's WhosOnFirstClassifier. This is the REAL fix that replaces v261's cosmetic country exception: golden country recall 84.8→89.3% (clears the 88.6% v241 bar), real-postal country recall+hallucination IDENTICAL to v261 (falsifier 3/4, 1%), held-out coordinate PASS both locales (US z −0.16 / FR z −0.17), gauntlet regression+metamorphic PASS. It carries a coordinate-INVISIBLE golden region per-tag trade (+24 fails, concentrated on trailing-country tails like 'VT 05161, US' where the country channel out-competes the adjacent region abbrev) — operator-approved, documented in docs/articles/evals/2026-07-14-v263-country-channel-result.md.",
5
+ "phase": "PROMOTED (6.2.0) — v263 country-channel (#1104): init_from v261 + the dedicated country soft-feed channel. requires.country is now a fed channel; createScorer/loadFromWeights feed the country-surface lexicon and fail closed if it is missing.",
6
6
  "license": "AGPL-3.0-only OR LicenseRef-Commercial",
7
7
  "locale": "en-us",
8
8
  "training": {
9
- "corpus_version": "corpus-v0.10.1-nl-postcode = 699 shards; the v0.10.0 boundary-family base + synth-nl-postcode (#924). Raw text + char-offset spans RE-TOKENIZED through v0.8.0-fr-nsplice at load.",
10
- "tokenizer_version": "0.8.0-fr-nsplice",
11
- "steps": 12000,
12
- "best_step": 12000,
9
+ "corpus_version": "v257 fragment-campaign corpus (shard-v5) — UNCHANGED from v261; the country channel paints features on existing rows from the country-surface lexicon at encode time (no new shard).",
10
+ "tokenizer_version": "0.9.0-multisplice",
11
+ "steps": 8000,
12
+ "best_step": 8000,
13
13
  "hardware": "NVIDIA A100-SXM4-40GB (Modal cloud)",
14
- "recipe": "v2.4.1-fr-nsplice-ft: init_from FINE-TUNE (fresh optimizer over the mean-init-expanded checkpoint; --resume auto on a fresh output_dir resolves to no checkpoint -> honors init_from, model weights only). init_from /data/models/fr-nsplice-expanded. Constant lr 5.0e-5, warmup 200, batch 128, bf16, seed 42, 12000 steps (~31 min A100, loss 0.647, val macro_f1 0.7579, zero NaN). anchor_paint_mode=shaped + gazetteer choreography carried; conventions loss-mask OFF; CE-only (crf_loss_weight 0.0). Config corpus-python/src/mailwoman_train/configs/v2.4.1-fr-nsplice-ft.yaml (PR #1048).",
14
+ "recipe": "v2.6.3-country-channel: init_from FINE-TUNE off v261 step-008000, use_country_anchor=true (country_feature_dim=2, lexicon country-surface-lexicon-v1.json), use_span_boundary_head=true (0.5), lr 1e-5, warmup 500, 8k on A100.",
15
15
  "tokenizer_splice": "tokenizer_splice.py build-tokenizer --locales fr --per-file-cap 2000000 over OA fr/countrywide.csv (seed 42, 350k-line corpus, unigram vocab 24000) -> splice 2406 non-ASCII FR pieces into v0.7.1-nsplice (English byte-identity asserted). UNCHANGED from v240 (md5 04995524). The v241 delta over v240 is that the new embedding rows now receive GRADIENT via the init_from fine-tune, not just FVT mean-init.",
16
16
  "data_attribution": [
17
17
  "OpenAddresses CZ — ČÚZK RÚIAN (CC-BY 4.0): tokenizer-splice training text + the oa-cz coord eval sets",
@@ -27,21 +27,24 @@
27
27
  "num_attention_heads": 6,
28
28
  "intermediate_size": 1536,
29
29
  "max_position_embeddings": 128,
30
- "vocab_size": 66319,
30
+ "vocab_size": 73143,
31
31
  "num_labels": 33,
32
- "params": "33.9M (6-layer/384-hidden encoder + the 66319-piece nsplice embedding; init_from the v230-lineage encoder, fine-tuned 12k steps on the v0.8.0-fr-nsplice vocab)",
32
+ "params": "~29M (6-layer/384-hidden encoder + 73,143-piece multisplice embedding; init_from v257, 8k fine-tune w/ a non-exported span-boundary aux head)",
33
33
  "crf_at_training": false,
34
34
  "crf_at_inference": true,
35
35
  "phrase_priors": true
36
36
  },
37
37
  "requires": {
38
- "$comment": "The SHIP-CONFIG this model was TRAINED against (#718) — UNCHANGED from v1.5.0 (v1.8.0 cloned the v1.5.0-fr-order ship config; the single training variable was the fr-admin-split shard). The canonical ProductionScorer (@mailwoman/neural's createScorer) reads this and FAILS CLOSED if a required channel isn't actually fed — closing the #566/#685 trap where a channel-trained model scored channel-OFF silently goes OOD. Read off the gate it shipped against (scripts/eval/gates/v0.5.0-bridge.json: requires_gazetteer_lexicon=true, requires_conventions=auto, requires_bridge=false) plus anchor (the model exports anchor_features). Additive metadata only.",
38
+ "$comment": "The SHIP-CONFIG this model was TRAINED against (#718). v263 adds `country` (the #1104 dedicated country soft-feed channel) to the prior anchor+gazetteer+conventions config. The canonical ProductionScorer (@mailwoman/neural's createScorer) reads this and FAILS CLOSED if a required channel isn't actually fed — closing the #566/#685 trap where a channel-trained model scored channel-OFF silently goes OOD. The server tier feeds anchor+gazetteer+country; the pocket tier is anchor-only (its capabilities country=0 by construction). Additive metadata only.",
39
39
  "anchor": {
40
40
  "required": true
41
41
  },
42
42
  "gazetteer": {
43
43
  "required": true
44
44
  },
45
+ "country": {
46
+ "required": true
47
+ },
45
48
  "conventions": {
46
49
  "required": true,
47
50
  "mode": "auto"
@@ -104,14 +107,14 @@
104
107
  "intersection_a",
105
108
  "intersection_b"
106
109
  ],
107
- "notes": "v2.4.1-fr-nsplice-ft — the RETRAIN the #1047 falsification specified. v240 (training-free mean-init) net-regressed FR streets because the merged FR pieces inherited é's O-signal with no gradient to move them; this fine-tune supplies the gradient. GATE (operator, no auto-promote): mangle rate < 23.5% baseline (scripts/eval/fr-accent-mangle-rate.ts); Honoré + René repros flip to HIT (René = v240's new break, must NOT regress); gauntlet held-out FR + US z-tests via --candidate AND --candidate-tokenizer v0.8.0-fr-nsplice (a model-only swap leaves the new rows dormant, the splice invisible); non-FR byte-stability. Architecture/labels/requires identical to v230/v240 (vocab 66319, 33 labels). CALIBRATION: v5.3.0 isotonic tables carried but fitted on a different lineage; opt-in, default output unaffected; re-fit is a follow-up if promoted. Evidence: this gate run (#444 comment), #1047 (falsification), #1048 (config/launch).",
110
+ "notes": "v2.6.3-country-channel (v263, #1104), shipped as 6.2.0. init_from v261 + the dedicated country soft-feed channel ON (2-dim [country_surface, country_ambiguous], its own projection + confidence, immune to suppress_gazetteer_near_postcode). This is the REAL #1104 fix that replaces v261's documented cosmetic country exception. Grade (package-shaped, --weights-cache, #718): golden country recall 84.8→89.3% (clears the 88.6% v241 bar; fixes 19 / breaks 9); real-postal country recall 3/4 + hallucination 1% IDENTICAL to v261 (falsifier); held-out coordinate z-test PASS both locales (US z −0.16 on 300 FDIC, FR z −0.17 on 300 BAN); gauntlet regression+metamorphic PASS. TRADE: a coordinate-INVISIBLE golden region per-tag regression (+24 fails, 556→580) concentrated on trailing-country tails ('VT 05161, US' → region dropped as the country channel out-competes the region abbrev) — operator-approved, coordinate flat. Full write-up: docs/articles/evals/2026-07-14-v263-country-channel-result.md. CALIBRATION: the carried isotonic tables were fitted on the v5.3.0 lineage; opt-in, default output unaffected; a re-fit is a tracked follow-up.",
108
111
  "format": {
109
112
  "model": "ONNX int8 dynamic (quantized from fp32, opset 17)",
110
- "tokenizer": "SentencePiece unigram, byte_fallback=true, vocab_size=66319 (v0.8.0-fr-nsplice = v0.7.1-nsplice + 2406 FR diacritic pieces; ships WITH the model, both runtimes load it from this bundle)",
113
+ "tokenizer": "SentencePiece unigram, byte_fallback=true, vocab_size=73143 (v0.9.0-multisplice; ships WITH the model, both runtimes load it from this bundle)",
111
114
  "max_sequence_length": 128,
112
115
  "opset": 17,
113
116
  "fp32_size_mb": 146.6,
114
- "int8_size_mb": 36.8
117
+ "int8_size_mb": 37.6
115
118
  },
116
119
  "files": {
117
120
  "model": "model.onnx",
@@ -126,7 +129,7 @@
126
129
  "held_out_ece_calibrated": 0.0017,
127
130
  "note": "RE-FIT on v5.3.0 (2026-07-04): calibration.json + calibration-per-locale.json are now fitted on THIS model's confidence distribution (35,600 spans over the 8k held-out set), not carried from v4.x. The from-scratch model was under-confident (meanConf 0.913 vs acc 0.980, gap -0.067); the fit corrects held-out OA ECE 0.0698→0.0017 (overall 0.0677→0.0028, per-locale NL 0.166→0.000 / DE 0.114→0.003). Reproduce: collect-span-confidences.ts → fit-isotonic-calibration.py --model-version 5.3.0. Apply via @mailwoman/core/decoder's createCalibrator; default parse output is byte-stable when omitted."
128
131
  },
129
- "base_relpath": "/mnt/playpen/mailwoman-data/models/candidates/v241-fr-nsplice-ft (fp32 + int8; training output on Modal volume mailwoman-training:/output-v241-fr-nsplice-ft-s42)",
132
+ "base_relpath": "/mnt/playpen/mailwoman-data/models/candidates/v261 (int8 = models/quantized/model-v261-span-boundary-full-step-008000-int8.onnx; training output on Modal volume mailwoman-training:/output-v261-span-boundary-full)",
130
133
  "eval": {
131
134
  "gate_2026_07_04_v530_full_family": {
132
135
  "promotion_gate": "v5.3.0-family gate (clone of v5.2.0-nordic + the fr.postcode 99.3→99.2 revision): PASS with the three operator-approved trades stated above. The promote decision ran on the 2026-07-03 RE-GATE of the archived candidate under the #942-floored stack — fresh dumps BOTH arms, same stack (the #942-D1 stack-drift lesson): 6/6 ni legs PASS; the SI wrong-city re-gate bar (≤+2pp) failed at +2.7pp and was adjudicated at the fork, not silently absorbed. Original 100k battery: 15/17 floors (the two above), mask-regression PASS, zero NaN.",
@@ -198,7 +201,7 @@
198
201
  "us_2k_non_inferiority": {
199
202
  "row_dump": "BYTE-IDENTICAL to shipped v4.15.0 int8 (diff 0 everywhere)",
200
203
  "coord_p50_km": 3.31,
201
- "resolve_rate": 1.0,
204
+ "resolve_rate": 1,
202
205
  "region_correct": 0.999
203
206
  },
204
207
  "tokenization_examples": "Vysoká 4→1 piece, Grudziądz 6→1, Świętokrzyska 9→1, Čistá 5→2; SK fertility −51.9%, SI −35.2% on diacritic-bearing names with zero SK/SI-specific pieces"
@@ -340,52 +343,52 @@
340
343
  }
341
344
  },
342
345
  "files_md5": {
343
- "$comment": "Shipped artifacts: model.onnx IS the int8 (v241-fr-nsplice-ft step-12000); tokenizer v0.8.0-fr-nsplice.",
344
- "model.onnx": "121162e6c19b6367c77d53050b336244",
345
- "tokenizer.model": "04995524cceb4d2bf689e77338f80de2"
346
+ "$comment": "Shipped: model.onnx = int8 v263-country-channel step-8000; tokenizer v0.9.0-multisplice.",
347
+ "model.onnx": "34289d215e0c1ba1e663337999ca3cbd",
348
+ "tokenizer.model": "5c01cdcd4ae25849c5cb26b69fd3dde9"
346
349
  },
347
350
  "capabilities": {
348
351
  "server": {
349
352
  "us": {
350
353
  "street_prefix": {
351
- "maskOffF1": 1.9
354
+ "maskOffF1": 0.9
352
355
  },
353
356
  "street": {
354
- "maskOffF1": 24
357
+ "maskOffF1": 24.4
355
358
  },
356
359
  "street_suffix": {
357
360
  "maskOffF1": 0.3,
358
361
  "maskOnF1": 0.3
359
362
  },
360
363
  "house_number": {
361
- "maskOffF1": 98.3
364
+ "maskOffF1": 94.1
362
365
  },
363
366
  "locality": {
364
- "maskOffF1": 75.6
367
+ "maskOffF1": 79
365
368
  },
366
369
  "region": {
367
- "maskOffF1": 89.7
370
+ "maskOffF1": 90.5
368
371
  },
369
372
  "postcode": {
370
- "maskOffF1": 98.6
373
+ "maskOffF1": 96.6
371
374
  },
372
375
  "country": {
373
- "maskOffF1": 68.9
376
+ "maskOffF1": 67
374
377
  },
375
378
  "unit": {
376
- "maskOffF1": 9.5
379
+ "maskOffF1": 5.2
377
380
  },
378
381
  "intersection_a": {
379
- "maskOffF1": 28.6
382
+ "maskOffF1": 100
380
383
  },
381
384
  "intersection_b": {
382
- "maskOffF1": 33.3
385
+ "maskOffF1": 100
383
386
  },
384
387
  "po_box": {
385
- "maskOffF1": 64.2
388
+ "maskOffF1": 63.2
386
389
  },
387
390
  "venue": {
388
- "maskOffF1": 90.9
391
+ "maskOffF1": 93.4
389
392
  },
390
393
  "dependent_locality": {
391
394
  "maskOffF1": 0
@@ -393,10 +396,10 @@
393
396
  },
394
397
  "fr": {
395
398
  "street_prefix": {
396
- "maskOffF1": 77.8
399
+ "maskOffF1": 100
397
400
  },
398
401
  "street": {
399
- "maskOffF1": 54.5
402
+ "maskOffF1": 90.9
400
403
  },
401
404
  "house_number": {
402
405
  "maskOffF1": 100
@@ -412,44 +415,44 @@
412
415
  "pocket": {
413
416
  "us": {
414
417
  "street_prefix": {
415
- "maskOffF1": 1.9
418
+ "maskOffF1": 0.9
416
419
  },
417
420
  "street": {
418
- "maskOffF1": 23.9
421
+ "maskOffF1": 23.4
419
422
  },
420
423
  "street_suffix": {
421
424
  "maskOffF1": 0.3,
422
425
  "maskOnF1": 0.3
423
426
  },
424
427
  "house_number": {
425
- "maskOffF1": 98.2
428
+ "maskOffF1": 87.4
426
429
  },
427
430
  "locality": {
428
- "maskOffF1": 59.4
431
+ "maskOffF1": 59.8
429
432
  },
430
433
  "region": {
431
- "maskOffF1": 72.5
434
+ "maskOffF1": 73.2
432
435
  },
433
436
  "postcode": {
434
- "maskOffF1": 98.6
437
+ "maskOffF1": 91.9
435
438
  },
436
439
  "country": {
437
440
  "maskOffF1": 0
438
441
  },
439
442
  "unit": {
440
- "maskOffF1": 10
443
+ "maskOffF1": 5.1
441
444
  },
442
445
  "intersection_a": {
443
- "maskOffF1": 16.7
446
+ "maskOffF1": 50
444
447
  },
445
448
  "intersection_b": {
446
- "maskOffF1": 9.1
449
+ "maskOffF1": 40
447
450
  },
448
451
  "po_box": {
449
- "maskOffF1": 63
452
+ "maskOffF1": 62.1
450
453
  },
451
454
  "venue": {
452
- "maskOffF1": 90.8
455
+ "maskOffF1": 90.5
453
456
  },
454
457
  "dependent_locality": {
455
458
  "maskOffF1": 0
@@ -457,10 +460,10 @@
457
460
  },
458
461
  "fr": {
459
462
  "street_prefix": {
460
- "maskOffF1": 77.8
463
+ "maskOffF1": 100
461
464
  },
462
465
  "street": {
463
- "maskOffF1": 54.5
466
+ "maskOffF1": 90.9
464
467
  },
465
468
  "house_number": {
466
469
  "maskOffF1": 100
@@ -473,6 +476,6 @@
473
476
  }
474
477
  }
475
478
  },
476
- "$comment": "Per-tier (server=anchor+gazetteer; pocket=anchor-only) × address-system × tag capability manifest (#718/#719). maskOffF1 = measured per-tag exact-match F1 with the conventions mask OFF; maskOnF1 = the same with mask ON (recorded only for tags some codex forbiddenTags row suppresses — the loader's delta-gate consults only those). createScorer FAILS CLOSED when a conventions row forbids a tag with maskOffF1 − maskOnF1 > 0.05 (the mask provably destroys a real capability). Generated by scripts/eval/gen-capability-manifest.ts against the v1.5.0 int8."
479
+ "$comment": "Per-tier (server=anchor+gazetteer; pocket=anchor-only) × address-system × tag capability manifest (#718/#719). maskOffF1 = measured per-tag exact-match F1 with the conventions mask OFF; maskOnF1 = the same with mask ON (recorded only for tags some codex forbiddenTags row suppresses — the loader's delta-gate consults only those). createScorer FAILS CLOSED when a conventions row forbids a tag with maskOffF1 − maskOnF1 > 0.05 (the mask provably destroys a real capability). Generated by `mailwoman eval capability-manifest` against the v1.5.0 int8."
477
480
  }
478
481
  }
package/model.onnx CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mailwoman/neural-weights-en-us",
3
- "version": "6.0.0",
3
+ "version": "6.2.0",
4
4
  "description": "Mailwoman neural-classifier weights for locale 'en-us'. Data-only package — loaded by @mailwoman/neural at runtime.",
5
5
  "license": "AGPL-3.0-only OR LicenseRef-Commercial",
6
6
  "repository": {
@@ -16,6 +16,7 @@
16
16
  "calibration-per-locale.json",
17
17
  "postcode-us.bin",
18
18
  "anchor-lexicon-v1.json",
19
+ "country-surface-lexicon-v1.json",
19
20
  "README.md"
20
21
  ],
21
22
  "publishConfig": {
package/postcode-us.bin CHANGED
Binary file
package/tokenizer.model CHANGED
Binary file