@mailwoman/neural-weights-de-de 8.5.0 → 8.6.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 +4 -3
- package/package.json +3 -3
- package/pair-index-de.bin +0 -0
- package/scripts/link-dev-weights.ts +7 -7
package/model-card.json
CHANGED
|
@@ -9,12 +9,13 @@
|
|
|
9
9
|
"pair_index_de_bin": {
|
|
10
10
|
"format": "PIX1 placetype-pair index \u2014 a retrieval-augmented (Ortsteil, Gemeinde) dependent_locality prior, e.g. (\"Nippes\", \"K\u00f6ln\")",
|
|
11
11
|
"source": "Who's On First admin hierarchy ($MAILWOMAN_DATA_ROOT/wof/admin-global-priority.db). Children: borough + neighbourhood (WOF's typing for Ortsteile/Stadtteile). Parents: locality, localadmin, borough. No postal register: Deutsche Post routes 'PLZ Stadt' and carries no Ortsteil field, so WOF is the source \u2014 the same call the US instance made and the opposite of France's, where BAN's lieu-dit field IS the postal line.",
|
|
12
|
-
"pairs":
|
|
13
|
-
"bytes":
|
|
12
|
+
"pairs": 85603,
|
|
13
|
+
"bytes": 2160583,
|
|
14
14
|
"delta_calibration": "\u03b4=10, transitionBeta=5 \u2014 inherited from the GB calibration per R5's finding that the classifier's dependent_locality deficit is uniform across locales.",
|
|
15
15
|
"country_gate": "hard-gated on the header's country (de).",
|
|
16
16
|
"requires_leading_postcode_strip": "This artifact is INERT without the `de` entries in SEGMENT_PARENT_POSTCODE_SHAPES and LEADING_POSTCODE_COUNTRIES (neural/placetype-pair-prior.ts). German addresses write '50733 K\u00f6ln', so a parent segment folds to a key no bare-Gemeinde entry matches \u2014 measured: the index alone changed nothing until both entries landed. Same dependency FR's artifact carries.",
|
|
17
|
-
"not_committed": "derived artifact, .gitignore'd \u2014 rebuilt via `mailwoman gazetteer pair-index --out neural-weights-de-de --country de --delta 10 --transition-beta 5 --pairs-jsonl <de-pairs.jsonl>`"
|
|
17
|
+
"not_committed": "derived artifact, .gitignore'd \u2014 rebuilt via `mailwoman gazetteer pair-index --out neural-weights-de-de --country de --delta 10 --transition-beta 5 --pairs-jsonl <de-pairs.jsonl>`",
|
|
18
|
+
"$comment_currency": "CURRENCY FILTER (2026-08-02): both ends of every pair are now required LIVE \u2014 `is_current != 0 AND is_deprecated = 0`. The WOF ingest hard-rejects `wof:superseded_by` records but RECORDS `edtf:deprecated` and `mz:is_current` as columns rather than rejecting them, so filtering is the reader's job and this extraction was not doing it. Pair count 85605 \u2192 85603."
|
|
18
19
|
}
|
|
19
20
|
},
|
|
20
21
|
"eval": {
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mailwoman/neural-weights-de-de",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.6.0",
|
|
4
4
|
"description": "German (de-DE) weights overlay for mailwoman — data-only; shares the base model with @mailwoman/neural-weights-en-us and ships the DE placetype-pair index.",
|
|
5
5
|
"license": "AGPL-3.0-only OR LicenseRef-Commercial",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "https://github.com/sister-software/mailwoman.git",
|
|
9
|
-
"directory": "neural-weights-
|
|
9
|
+
"directory": "neural-weights-de-de"
|
|
10
10
|
},
|
|
11
11
|
"files": [
|
|
12
12
|
"model-card.json",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"access": "public"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@mailwoman/neural-weights-en-us": "8.
|
|
25
|
+
"@mailwoman/neural-weights-en-us": "8.6.0"
|
|
26
26
|
},
|
|
27
27
|
"mailwoman": {
|
|
28
28
|
"baseWeights": "@mailwoman/neural-weights-en-us"
|
package/pair-index-de.bin
CHANGED
|
Binary file
|
|
@@ -20,7 +20,7 @@ import { spawnSync } from "node:child_process"
|
|
|
20
20
|
import { existsSync, readFileSync } from "node:fs"
|
|
21
21
|
import { resolve } from "node:path"
|
|
22
22
|
|
|
23
|
-
import { repoRootPath } from "@mailwoman/core/utils"
|
|
23
|
+
import { dataRootPath, repoRootPath } from "@mailwoman/core/utils"
|
|
24
24
|
|
|
25
25
|
const PKG_DIR = String(repoRootPath("neural-weights-de-de"))
|
|
26
26
|
const CLI = String(repoRootPath("mailwoman", "out", "cli.js"))
|
|
@@ -28,7 +28,7 @@ const PAIR_INDEX_BIN_DEST = resolve(PKG_DIR, "pair-index-de.bin")
|
|
|
28
28
|
/**
|
|
29
29
|
* Checked-in WOF-derived (Ortsteil, Gemeinde) pairs — the same posture as the GB secondary sources.
|
|
30
30
|
*/
|
|
31
|
-
const
|
|
31
|
+
const WOF_ADMIN_DB = String(dataRootPath("wof", "admin-global-priority.db"))
|
|
32
32
|
/**
|
|
33
33
|
* Calibrated magnitudes — the pair the R9 bars were measured at (0/70 confound FPs, 60/60 tag-correct).
|
|
34
34
|
*/
|
|
@@ -60,8 +60,8 @@ function peekPairIndexHeaderFields(path: string): { delta: number; transitionBet
|
|
|
60
60
|
|
|
61
61
|
if (!existsSync(CLI)) {
|
|
62
62
|
console.error(`WARNING: ${CLI} not built — run \`yarn compile\` first, then re-run for pair-index-de.bin.`)
|
|
63
|
-
} else if (!existsSync(
|
|
64
|
-
console.error(`WARNING: missing ${
|
|
63
|
+
} else if (!existsSync(WOF_ADMIN_DB)) {
|
|
64
|
+
console.error(`WARNING: missing ${WOF_ADMIN_DB} — pair-index-de.bin not built.`)
|
|
65
65
|
} else {
|
|
66
66
|
let needsRebuild = true
|
|
67
67
|
|
|
@@ -100,8 +100,8 @@ if (!existsSync(CLI)) {
|
|
|
100
100
|
String(PAIR_INDEX_DELTA),
|
|
101
101
|
"--transition-beta",
|
|
102
102
|
String(PAIR_INDEX_TRANSITION_BETA),
|
|
103
|
-
"--
|
|
104
|
-
|
|
103
|
+
"--borough-db",
|
|
104
|
+
WOF_ADMIN_DB,
|
|
105
105
|
],
|
|
106
106
|
{ stdio: "inherit" }
|
|
107
107
|
)
|
|
@@ -112,6 +112,6 @@ if (!existsSync(CLI)) {
|
|
|
112
112
|
process.exit(1)
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
console.log(`built pair-index-de.bin ← ${
|
|
115
|
+
console.log(`built pair-index-de.bin ← ${WOF_ADMIN_DB}`)
|
|
116
116
|
}
|
|
117
117
|
}
|