@mailwoman/neural-weights-en-us 10.3.0 → 10.4.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/PROVENANCE.json +16 -5
- package/README.md +18 -18
- package/model-card.json +3 -1
- package/package.json +3 -2
- package/postcode-prefix-us.bin +0 -0
package/PROVENANCE.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$comment": "Generated by `mwops release write-rights-files` from package.json and model-card.json. Edit the generator or those files, never this one.",
|
|
3
3
|
"package": "@mailwoman/neural-weights-en-us",
|
|
4
|
-
"package_version": "10.
|
|
4
|
+
"package_version": "10.3.0",
|
|
5
5
|
"license": "AGPL-3.0-only OR LicenseRef-Commercial",
|
|
6
|
-
"model_card_version": "
|
|
6
|
+
"model_card_version": "10.1.0",
|
|
7
7
|
"version_series": "model",
|
|
8
8
|
"version_series_meaning": "This package ships a model graph, and model_card_version names the trained model. It is a different series from package_version, which moves in lockstep across every mailwoman workspace on every release. `mwops release verify-metadata` keys the score ledger and release documentation off this number.",
|
|
9
9
|
"base_weights": null,
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
{
|
|
13
13
|
"path": "model.onnx",
|
|
14
14
|
"role": "model-graph",
|
|
15
|
-
"md5": "
|
|
15
|
+
"md5": "0f7de7042a1a888d6cbc201c768e9f00",
|
|
16
16
|
"digest": "recorded"
|
|
17
17
|
},
|
|
18
18
|
{
|
|
@@ -39,6 +39,12 @@
|
|
|
39
39
|
"md5": null,
|
|
40
40
|
"digest": "unrecorded"
|
|
41
41
|
},
|
|
42
|
+
{
|
|
43
|
+
"path": "postcode-prefix-us.bin",
|
|
44
|
+
"role": "postcode-prefix-index",
|
|
45
|
+
"md5": null,
|
|
46
|
+
"digest": "unrecorded"
|
|
47
|
+
},
|
|
42
48
|
{
|
|
43
49
|
"path": "pair-index-us.bin",
|
|
44
50
|
"role": "placetype-pair-index",
|
|
@@ -94,10 +100,15 @@
|
|
|
94
100
|
"name": "locale_logits",
|
|
95
101
|
"type": "float32",
|
|
96
102
|
"shape": [1, 9]
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"name": "address_system_logits",
|
|
106
|
+
"type": "float32",
|
|
107
|
+
"shape": [1, 39]
|
|
97
108
|
}
|
|
98
109
|
],
|
|
99
110
|
"text_emitting_output": false,
|
|
100
|
-
"summary": "The model accepts tokenized text and emits logits float32[1, sequence, 33] and locale_logits float32[1, 9]. It has no supported text-generating output.",
|
|
111
|
+
"summary": "The model accepts tokenized text and emits logits float32[1, sequence, 33] and locale_logits float32[1, 9] and address_system_logits float32[1, 39]. It has no supported text-generating output.",
|
|
101
112
|
"unreadable": null
|
|
102
113
|
},
|
|
103
114
|
"training_attribution": {
|
|
@@ -166,7 +177,7 @@
|
|
|
166
177
|
"effective_training_sources": null,
|
|
167
178
|
"tokenizer_version": "0.9.0-multisplice",
|
|
168
179
|
"unresolved": [
|
|
169
|
-
"No digest is recorded for
|
|
180
|
+
"No digest is recorded for 9 of 13 declared artifacts: calibration.json, calibration-per-locale.json, postcode-us.bin, postcode-prefix-us.bin, pair-index-us.bin, fst-en-us.bin, fst-street-morphology.bin, anchor-lexicon-v1.json, country-surface-lexicon-v1.json. An unrecorded digest is not a verified one.",
|
|
170
181
|
"One attribution entry names no license: OpenAddresses PL — GUGiK / PRG (public, BDOT-derived): tokenizer-splice training text + the oa-pl coord eval sets",
|
|
171
182
|
"One attribution entry names no license: See THIRD_PARTY_NOTICES.md for the standing OpenAddresses / GeoNames / WOF attribution.",
|
|
172
183
|
"4 of 10 attribution entries describe evaluation or tokenizer text rather than training rows, so they attribute data this package's model did not learn from: OpenAddresses CZ — ČÚZK RÚIAN (CC-BY 4.0); OpenAddresses PL — GUGiK / PRG (public, BDOT-derived); OpenAddresses SK — MINV/ZBGIS (CC-0/CC-BY per OA source); OpenAddresses SI — GURS (CC-BY per OA source).",
|
package/README.md
CHANGED
|
@@ -49,7 +49,7 @@ model-index:
|
|
|
49
49
|
The trained-model bundle (`@mailwoman/neural-weights-en-us`) for
|
|
50
50
|
[Mailwoman](https://mailwoman.ai), a postal-address parser. This
|
|
51
51
|
package is **data only** — `model.onnx`, `tokenizer.model`, and metadata. It has
|
|
52
|
-
no JavaScript
|
|
52
|
+
no JavaScript. It is loaded at inference time by `@mailwoman/neural`.
|
|
53
53
|
|
|
54
54
|
## What this is
|
|
55
55
|
|
|
@@ -57,16 +57,16 @@ Mailwoman is a **calibrated, retrieval-augmented sequence labeler over a
|
|
|
57
57
|
microlanguage** — coupled to a gazetteer that resolves its output to
|
|
58
58
|
coordinates. This bundle is the sequence-labeler half: a small transformer
|
|
59
59
|
encoder (≈29.6M params) doing BIO token classification over a 33-label address
|
|
60
|
-
schema. It is not an LLM and none of it is generative
|
|
61
|
-
set over short strings
|
|
60
|
+
schema. It is not an LLM and none of it is generative. Plain NER suits a closed label
|
|
61
|
+
set over short strings.
|
|
62
62
|
|
|
63
63
|
The design splits the problem in two: **the model learns the grammar, the
|
|
64
64
|
gazetteer knows the atlas.** The model never memorizes place names — postcode
|
|
65
65
|
and gazetteer knowledge arrive at inference as _soft input features_ (anchors)
|
|
66
66
|
retrieved from provenance-tracked databases that grow without retraining. If you
|
|
67
|
-
know RAG from the LLM world, this is RAG for token classification
|
|
68
|
-
speech recognition, it's contextual biasing with shallow fusion.
|
|
69
|
-
|
|
67
|
+
know RAG from the LLM world, this is RAG for token classification. If you know
|
|
68
|
+
speech recognition, it's contextual biasing with shallow fusion. These features
|
|
69
|
+
inform the model's prediction and never override it.
|
|
70
70
|
|
|
71
71
|
- **Base model:** none. Trained **from scratch** (no pretrained checkpoint) —
|
|
72
72
|
see _Training_.
|
|
@@ -74,7 +74,7 @@ informs; it never overrides.
|
|
|
74
74
|
48000, max sequence length 128. Linear-chain CRF at inference (Viterbi), CE
|
|
75
75
|
loss only at training.
|
|
76
76
|
- **Tokenizer:** SentencePiece unigram, `byte_fallback=true`, vocab 48000.
|
|
77
|
-
- **Format:** ONNX int8 dynamic (≈29.8 MB), opset 17
|
|
77
|
+
- **Format:** ONNX int8 dynamic (≈29.8 MB), opset 17, and the fp32 source is ≈118.4 MB.
|
|
78
78
|
|
|
79
79
|
## Intended use
|
|
80
80
|
|
|
@@ -129,22 +129,22 @@ anchor-on, currently shipped model:**
|
|
|
129
129
|
| coordinate p90 — full geocode cascade | **0.1 km** |
|
|
130
130
|
| within 100 m — full geocode cascade | **90.0%** |
|
|
131
131
|
|
|
132
|
-
**The two coordinate tiers matter.**
|
|
132
|
+
**The two coordinate tiers matter.** Without the data layer, the parser plus the admin gazetteer
|
|
133
133
|
resolve to the locality **centroid** — legitimately a few km from an edge address
|
|
134
134
|
(p50 3.3 km). The full geocode pipeline (`mailwoman`'s `geocode` cascade) wires a
|
|
135
135
|
per-state situs + interpolation data layer on top and resolves the actual point:
|
|
136
136
|
**83.5% of US addresses land on an exact address-point, 9.7% on a street
|
|
137
137
|
interpolation, and under 7% fall back to the centroid — p50 0.0 km, 90.0% within
|
|
138
138
|
100 m.** That data layer is the released data the geocoder consumes rather than part of
|
|
139
|
-
this weights package
|
|
139
|
+
this weights package. See the situs-cascade eval under
|
|
140
140
|
[`docs/articles/evals/`](https://mailwoman.ai) for the breakdown.
|
|
141
141
|
|
|
142
142
|
Two more notes on reading these:
|
|
143
143
|
|
|
144
|
-
- **The model is not the bottleneck
|
|
144
|
+
- **The model is not the bottleneck, and the resolver lands the right place.**
|
|
145
145
|
locality-match credits the resolver's full locality group (locality ∪ borough ∪
|
|
146
|
-
`localadmin`)
|
|
147
|
-
earlier metric discarded, under-counting locality-match by ~14pp (the corrected
|
|
146
|
+
`localadmin`). New England towns are `localadmin` in the gazetteer. An
|
|
147
|
+
earlier metric discarded that placetype, under-counting locality-match by ~14pp (the corrected
|
|
148
148
|
metric is 97.8%). The small residual (~2%) is mostly civic-suffix name-mismatch
|
|
149
149
|
("Barre City" vs the gazetteer's "Barre") rather than absent places — a naming-convention
|
|
150
150
|
artifact more than a coverage hole.
|
|
@@ -172,11 +172,11 @@ they are omitted.
|
|
|
172
172
|
## Train
|
|
173
173
|
|
|
174
174
|
From-scratch (no pretrained base), 40000 steps on an NVIDIA A100 (Modal cloud),
|
|
175
|
-
CE loss only (the dual CRF loss diverged and was retired
|
|
175
|
+
CE loss only (the dual CRF loss diverged and was retired, and CRF is inference-only
|
|
176
176
|
Viterbi). Corpus v0.5.0 (char-offset span labels: from-source base plus
|
|
177
177
|
re-emitted parity overlays) augmented with a reversed-order (postcode-first) FR
|
|
178
178
|
training subset so the model stops mistaking a leading FR postcode for a house number. The
|
|
179
|
-
gazetteer anchor channel is fed during training,
|
|
179
|
+
gazetteer anchor channel is fed during training, so it is required at
|
|
180
180
|
inference.
|
|
181
181
|
|
|
182
182
|
## Limitations
|
|
@@ -184,14 +184,14 @@ inference.
|
|
|
184
184
|
- **Expects its channels.** See _Ship-config requirement_ — anchor-off is OOD.
|
|
185
185
|
- **All-caps / shouting input degrades** the admin tags (mixed-case training).
|
|
186
186
|
`@mailwoman/neural`'s `normalizeCase` opt title-cases detected all-caps ASCII
|
|
187
|
-
input before the model and recovers it
|
|
188
|
-
input,
|
|
187
|
+
input before the model and recovers it. Output is byte-stable for mixed-case / non-ASCII
|
|
188
|
+
input, because the option leaves that input untouched.
|
|
189
189
|
- **Coverage rather than precision, is the frontier** for the assembled coordinate:
|
|
190
190
|
where local rooftop/interpolation data is absent the coordinate is the
|
|
191
191
|
admin-centroid (legitimately tens of km from an edge address); the parse is not
|
|
192
192
|
the bottleneck.
|
|
193
|
-
- **Non-Latin scripts** (CJK, Cyrillic) fall through to byte-fallback tokens
|
|
194
|
-
quality there is unmeasured.
|
|
193
|
+
- **Non-Latin scripts** (CJK, Cyrillic) fall through to byte-fallback tokens,
|
|
194
|
+
and quality there is unmeasured.
|
|
195
195
|
|
|
196
196
|
## License & links
|
|
197
197
|
|
package/model-card.json
CHANGED
|
@@ -365,7 +365,9 @@
|
|
|
365
365
|
"locality_surface_lexicon": "locality-surface-lexicon-v7.json",
|
|
366
366
|
"pair_index": "pair-index-us.bin",
|
|
367
367
|
"$comment_postcode_anchor": "Added 2026-08-06 (#1516). The package has always shipped this binary (release.config.json softFeed.postcodeDBByCountry.us; link-dev-weights builds it locally) — it was simply never DECLARED here, and this block is now read: `readDeclaredArtifactFile` uses it to decide whether an unfed anchor channel is a broken package (declared, missing) or a supported posture (never declared, e.g. en-gb under #1476). Undeclared meant a missing postcode-us.bin degraded in silence, which is worth 3-4 baseline gauntlet cases.",
|
|
368
|
-
"postcode_anchor": "postcode-us.bin"
|
|
368
|
+
"postcode_anchor": "postcode-us.bin",
|
|
369
|
+
"$comment_postcode_prefix": "Added 2026-10-15 (#2585). The PFX1 postcode-prefix index the anchor-region prior reads: one node per three-digit sectional center, its region asserted by point-in-polygon over the Who's On First region polygons under a unanimity rule, built from postalcode-us.db and admin-global-priority-importance.db. The header records the build date, source digests and tier; copy-weights refuses a build-local tier.",
|
|
370
|
+
"postcode_prefix": "postcode-prefix-us.bin"
|
|
369
371
|
},
|
|
370
372
|
"calibration": {
|
|
371
373
|
"method": "isotonic-regression (PAVA) over per-span softmax confidence; OPT-IN via core/decoder createCalibrator",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mailwoman/neural-weights-en-us",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.4.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": {
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
"calibration.json",
|
|
18
18
|
"calibration-per-locale.json",
|
|
19
19
|
"postcode-us.bin",
|
|
20
|
+
"postcode-prefix-us.bin",
|
|
20
21
|
"pair-index-us.bin",
|
|
21
22
|
"fst-en-us.bin",
|
|
22
23
|
"fst-street-morphology.bin",
|
|
@@ -46,6 +47,6 @@
|
|
|
46
47
|
}
|
|
47
48
|
},
|
|
48
49
|
"devDependencies": {
|
|
49
|
-
"@mailwoman/resolver-wof-sqlite": "10.
|
|
50
|
+
"@mailwoman/resolver-wof-sqlite": "10.4.0"
|
|
50
51
|
}
|
|
51
52
|
}
|
|
Binary file
|