@mailwoman/neural-weights-fr-fr 7.8.0 → 8.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/fst-fr-fr.bin +0 -0
- package/package.json +3 -2
- package/scripts/link-dev-weights.ts +14 -0
package/fst-fr-fr.bin
ADDED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mailwoman/neural-weights-fr-fr",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.0",
|
|
4
4
|
"description": "Mailwoman neural-classifier weights for locale 'fr-fr'. Data-only overlay — shares the base model.onnx + tokenizer.model from @mailwoman/neural-weights-en-us (they are byte-identical); ships only the fr-specific data siblings. Loaded by @mailwoman/neural at runtime.",
|
|
5
5
|
"license": "AGPL-3.0-only OR LicenseRef-Commercial",
|
|
6
6
|
"repository": {
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"files": [
|
|
12
12
|
"model-card.json",
|
|
13
13
|
"postcode-fr.bin",
|
|
14
|
+
"fst-fr-fr.bin",
|
|
14
15
|
"anchor-lexicon-v1.json",
|
|
15
16
|
"country-surface-lexicon-v1.json",
|
|
16
17
|
"README.md",
|
|
@@ -27,7 +28,7 @@
|
|
|
27
28
|
"access": "public"
|
|
28
29
|
},
|
|
29
30
|
"dependencies": {
|
|
30
|
-
"@mailwoman/neural-weights-en-us": "
|
|
31
|
+
"@mailwoman/neural-weights-en-us": "8.0.0"
|
|
31
32
|
},
|
|
32
33
|
"mailwoman": {
|
|
33
34
|
"baseWeights": "@mailwoman/neural-weights-en-us"
|
|
@@ -112,3 +112,17 @@ if (existsSync(POSTCODE_BIN_DEST)) {
|
|
|
112
112
|
}
|
|
113
113
|
console.log(`built ${POSTCODE_BIN_DEST}`)
|
|
114
114
|
}
|
|
115
|
+
|
|
116
|
+
// Per-locale FST gazetteer (FST-distribution arc, 2026-07-25): symlink the shared build artifact
|
|
117
|
+
// ($MAILWOMAN_DATA_ROOT/wof/fst-per-locale/) into the package so `resolveWeights` surfaces `fstPath`
|
|
118
|
+
// in dev and the runtime pipeline can auto-wire the gazetteer + street-context gate. The publish
|
|
119
|
+
// flow stages the real binary (release-sequenced).
|
|
120
|
+
const FST_SRC = dataRootPath("wof", "fst-per-locale", "fst-fr-fr.bin")
|
|
121
|
+
const FST_DEST = resolve(PKG_DIR, "fst-fr-fr.bin")
|
|
122
|
+
|
|
123
|
+
if (existsSync(FST_SRC)) {
|
|
124
|
+
linkForce(FST_SRC, FST_DEST)
|
|
125
|
+
console.log(`linked fst-fr-fr.bin ← ${FST_SRC}`)
|
|
126
|
+
} else {
|
|
127
|
+
console.error(`WARNING: missing ${FST_SRC} — the FST gazetteer default will resolve OFF for this locale.`)
|
|
128
|
+
}
|