@mailwoman/neural-weights-en-us 6.2.1 → 6.3.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/model-card.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "neural-weights-en-us",
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.",
3
+ "version": "6.3.0",
4
+ "model_lineage": "v2.6.4-country-softguard (v264, #1104) — init_from v263 (v2.6.3-country-channel), ONE variable: model.country_ambiguous_scale 1.0→0.5. Tokenizer v0.9.0-multisplice (73,143), country lexicon UNCHANGED. The scale softens the country channel's homograph guard (the country_ambiguous dim is scaled 0.5 before country_projection, via a buffer that BAKES INTO the ONNX — no lexicon/inference/browser change). v263's hard guard over-suppressed homograph countries; v264 STRICTLY DOMINATES v263 with no trade: country-homograph F1 82.6→85.1, golden WOF-admin country 89.3→91.1%, real-postal recall+hallucination HELD (3/4, 1%), held-out coordinate PASS both locales (US z −0.14 / FR z +0.25), aggregate golden label-fails −3. The v265 (0.25) probe recovered more homograph (87.5) but slightly less WOF-admin (90.6) — 0.5 chosen for balance. Documented in docs/articles/evals/2026-07-15-v264-country-softguard-result.md.",
5
+ "phase": "PROMOTED (6.3.0) — v264 country-softguard (#1104): init_from v263 + country_ambiguous_scale 0.5. Softens the homograph guard (recovers homograph AND WOF-admin country recall, no trade). requires.country unchanged; the softening is baked into the ONNX (no lexicon/inference change).",
6
6
  "license": "AGPL-3.0-only OR LicenseRef-Commercial",
7
7
  "locale": "en-us",
8
8
  "training": {
@@ -11,7 +11,7 @@
11
11
  "steps": 8000,
12
12
  "best_step": 8000,
13
13
  "hardware": "NVIDIA A100-SXM4-40GB (Modal cloud)",
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.",
14
+ "recipe": "v2.6.4-country-softguard: init_from FINE-TUNE off v263 step-008000, country_ambiguous_scale=0.5 (the ONE variable vs v263), use_country_anchor=true (country_feature_dim=2, lexicon UNCHANGED), 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",
@@ -107,7 +107,7 @@
107
107
  "intersection_a",
108
108
  "intersection_b"
109
109
  ],
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.",
110
+ "notes": "v2.6.4-country-softguard (v264, #1104), shipped as 6.3.0. init_from v263 with country_ambiguous_scale=0.5 — softens the country channel's homograph guard, which v263's hard guard (1.0) had over-applied. STRICTLY DOMINATES v263, no trade. Grade (package-shaped, eval gate --weights-cache, #718): country-homograph F1 82.6→85.1; golden WOF-admin country recall 89.3→91.1% (softening helped BOTH distributions — the hard guard was over-suppressing country broadly); real-postal country recall 3/4 + hallucination 1% HELD; held-out coordinate z-test PASS both locales (US z −0.14 / FR z +0.25); aggregate golden label-fails 1101→1098 (−3). The v265 (0.25) probe recovered more homograph (87.5) but slightly less WOF-admin (90.6); 0.5 chosen for balance (best on the larger-sample metrics). The scale is BAKED INTO the ONNX (a forward-pass buffer) — no lexicon/inference/browser change; the country lexicon + neural-web are unchanged from 6.2.x. Full write-up: docs/articles/evals/2026-07-15-v264-country-softguard-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.",
111
111
  "format": {
112
112
  "model": "ONNX int8 dynamic (quantized from fp32, opset 17)",
113
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)",
@@ -343,8 +343,8 @@
343
343
  }
344
344
  },
345
345
  "files_md5": {
346
- "$comment": "Shipped: model.onnx = int8 v263-country-channel step-8000; tokenizer v0.9.0-multisplice.",
347
- "model.onnx": "34289d215e0c1ba1e663337999ca3cbd",
346
+ "$comment": "Shipped: model.onnx = int8 v264-country-softguard step-8000; tokenizer v0.9.0-multisplice.",
347
+ "model.onnx": "3e534072985d92bbbfa8b88d89ec53dc",
348
348
  "tokenizer.model": "5c01cdcd4ae25849c5cb26b69fd3dde9"
349
349
  },
350
350
  "capabilities": {
@@ -354,7 +354,7 @@
354
354
  "maskOffF1": 0.9
355
355
  },
356
356
  "street": {
357
- "maskOffF1": 24.4
357
+ "maskOffF1": 24.5
358
358
  },
359
359
  "street_suffix": {
360
360
  "maskOffF1": 0.3,
@@ -367,16 +367,16 @@
367
367
  "maskOffF1": 79
368
368
  },
369
369
  "region": {
370
- "maskOffF1": 90.5
370
+ "maskOffF1": 90.4
371
371
  },
372
372
  "postcode": {
373
373
  "maskOffF1": 96.6
374
374
  },
375
375
  "country": {
376
- "maskOffF1": 67
376
+ "maskOffF1": 67.2
377
377
  },
378
378
  "unit": {
379
- "maskOffF1": 5.2
379
+ "maskOffF1": 5.1
380
380
  },
381
381
  "intersection_a": {
382
382
  "maskOffF1": 100
@@ -388,7 +388,7 @@
388
388
  "maskOffF1": 63.2
389
389
  },
390
390
  "venue": {
391
- "maskOffF1": 93.4
391
+ "maskOffF1": 93.3
392
392
  },
393
393
  "dependent_locality": {
394
394
  "maskOffF1": 0
@@ -425,16 +425,16 @@
425
425
  "maskOnF1": 0.3
426
426
  },
427
427
  "house_number": {
428
- "maskOffF1": 87.4
428
+ "maskOffF1": 87.1
429
429
  },
430
430
  "locality": {
431
- "maskOffF1": 59.8
431
+ "maskOffF1": 59.9
432
432
  },
433
433
  "region": {
434
434
  "maskOffF1": 73.2
435
435
  },
436
436
  "postcode": {
437
- "maskOffF1": 91.9
437
+ "maskOffF1": 91.7
438
438
  },
439
439
  "country": {
440
440
  "maskOffF1": 0
@@ -452,7 +452,7 @@
452
452
  "maskOffF1": 62.1
453
453
  },
454
454
  "venue": {
455
- "maskOffF1": 90.5
455
+ "maskOffF1": 90.6
456
456
  },
457
457
  "dependent_locality": {
458
458
  "maskOffF1": 0
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.2.1",
3
+ "version": "6.3.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": {