@mailwoman/core 4.7.0 → 4.8.1
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/out/coarse-placer/coarse-placer.d.ts +33 -4
- package/out/coarse-placer/coarse-placer.d.ts.map +1 -1
- package/out/coarse-placer/coarse-placer.js +51 -4
- package/out/coarse-placer/coarse-placer.js.map +1 -1
- package/out/coarse-placer/featurize.d.ts +16 -12
- package/out/coarse-placer/featurize.d.ts.map +1 -1
- package/out/coarse-placer/featurize.js +32 -14
- package/out/coarse-placer/featurize.js.map +1 -1
- package/out/pipeline/types.d.ts +4 -3
- package/out/pipeline/types.d.ts.map +1 -1
- package/out/resolver/remote-resolver.d.ts +12 -11
- package/out/resolver/remote-resolver.d.ts.map +1 -1
- package/out/resolver/remote-resolver.js +10 -10
- package/out/resolver/remote-resolver.js.map +1 -1
- package/out/resolver/resolve.js +11 -10
- package/out/resolver/resolve.js.map +1 -1
- package/out/resolver/types.d.ts +21 -15
- package/out/resolver/types.d.ts.map +1 -1
- package/out/resolver/types.js.map +1 -1
- package/out/utils/repo.d.ts.map +1 -1
- package/out/utils/repo.js +10 -6
- package/out/utils/repo.js.map +1 -1
- package/out/vitest.config.d.ts.map +1 -1
- package/out/vitest.config.js +4 -2
- package/out/vitest.config.js.map +1 -1
- package/package.json +9 -1
|
@@ -3,10 +3,11 @@
|
|
|
3
3
|
* @license AGPL-3.0
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*
|
|
6
|
-
* The #244 coarse-placer: a tiny always-resident linear classifier over hashed char-n-gram +
|
|
7
|
-
*
|
|
8
|
-
* TEMPERATURE-CALIBRATED confidence, and ABSTAINS below a threshold ("probably off my loaded
|
|
9
|
-
* rather than emit a confident mis-placement. Pure + dependency-free — runs in node and the
|
|
6
|
+
* The #244 coarse-placer: a tiny always-resident linear classifier over hashed char-n-gram + script
|
|
7
|
+
* features ({@link featurize}). Maps an address string → a coarse country/region with a
|
|
8
|
+
* TEMPERATURE-CALIBRATED confidence, and ABSTAINS below a threshold ("probably off my loaded
|
|
9
|
+
* map") rather than emit a confident mis-placement. Pure + dependency-free — runs in node and the
|
|
10
|
+
* browser.
|
|
10
11
|
*/
|
|
11
12
|
import { COARSE_CLASSES, FEATURE_DIM, featurize } from "./featurize.js";
|
|
12
13
|
/** Serialized model: metadata in JSON, the dense `weights` (row-major [class][feature]) alongside. */
|
|
@@ -19,6 +20,26 @@ export interface CoarsePlacerArtifact {
|
|
|
19
20
|
/** Flat row-major weight matrix, length `classes.length * featureDim`. */
|
|
20
21
|
weights: Float32Array;
|
|
21
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* On-disk `meta.json` shape. The fp32 artifact omits `quantization`/`scales`; the int8 artifact (from
|
|
25
|
+
* `scripts/coarse-placer/quantize.mjs`) sets `quantization: "int8-per-row"` and carries one `scale`
|
|
26
|
+
* per class, so `weights.bin` can be a 4×-smaller `Int8Array` dequantized as `int8 * scales[class]`.
|
|
27
|
+
*/
|
|
28
|
+
export interface CoarsePlacerMeta {
|
|
29
|
+
classes: string[];
|
|
30
|
+
featureDim: number;
|
|
31
|
+
temperature: number;
|
|
32
|
+
bias: number[];
|
|
33
|
+
quantization?: "int8-per-row";
|
|
34
|
+
/** Per-class dequantization scale; present iff `quantization === "int8-per-row"`. */
|
|
35
|
+
scales?: number[];
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Dequantize a per-row int8 weight matrix back to fp32: `W[c][i] = int8[c*dim + i] * scales[c]`. The
|
|
39
|
+
* predict path stays fp32 (identical math); quantization only shrinks the serialized/wire artifact.
|
|
40
|
+
* Pure — usable in the browser loader too.
|
|
41
|
+
*/
|
|
42
|
+
export declare function dequantizeInt8Weights(int8: Int8Array, scales: readonly number[], classCount: number, dim: number): Float32Array;
|
|
22
43
|
export interface CoarsePrediction {
|
|
23
44
|
/** The predicted class, or `null` when the model abstained (confidence below the threshold). */
|
|
24
45
|
country: string | null;
|
|
@@ -35,6 +56,14 @@ export interface CoarsePlacerOpts {
|
|
|
35
56
|
export declare class CoarsePlacer {
|
|
36
57
|
#private;
|
|
37
58
|
constructor(artifact: CoarsePlacerArtifact, opts?: CoarsePlacerOpts);
|
|
59
|
+
/**
|
|
60
|
+
* Load a placer from an artifact directory holding `meta.json` + `weights.bin` (the layout
|
|
61
|
+
* `scripts/coarse-placer/train.mjs` and `quantize.mjs` write). Handles both the fp32 artifact
|
|
62
|
+
* (`weights.bin` is a `Float32Array`) and the int8 artifact (`meta.quantization === "int8-per-row"`,
|
|
63
|
+
* `weights.bin` is an `Int8Array` dequantized via `meta.scales`). Node-only — the `node:` imports are
|
|
64
|
+
* dynamic so bundling the class for the browser doesn't pull them in.
|
|
65
|
+
*/
|
|
66
|
+
static fromArtifactDir(dir: string, opts?: CoarsePlacerOpts): Promise<CoarsePlacer>;
|
|
38
67
|
predict(text: string): CoarsePrediction;
|
|
39
68
|
}
|
|
40
69
|
/** Load a coarse-placer from a JSON metadata file + a sibling `.weights.bin` (Float32). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coarse-placer.d.ts","sourceRoot":"","sources":["../../coarse-placer/coarse-placer.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"coarse-placer.d.ts","sourceRoot":"","sources":["../../coarse-placer/coarse-placer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAEvE,sGAAsG;AACtG,MAAM,WAAW,oBAAoB;IACpC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAA;IAC1B,UAAU,EAAE,MAAM,CAAA;IAClB,0FAA0F;IAC1F,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,EAAE,MAAM,EAAE,CAAA;IACd,0EAA0E;IAC1E,OAAO,EAAE,YAAY,CAAA;CACrB;AAED;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;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C,YAAY,CAAC,CAEvB;AAED,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,SAAS,EAAE,CAAA"}
|
|
@@ -3,12 +3,33 @@
|
|
|
3
3
|
* @license AGPL-3.0
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*
|
|
6
|
-
* The #244 coarse-placer: a tiny always-resident linear classifier over hashed char-n-gram +
|
|
7
|
-
*
|
|
8
|
-
* TEMPERATURE-CALIBRATED confidence, and ABSTAINS below a threshold ("probably off my loaded
|
|
9
|
-
* rather than emit a confident mis-placement. Pure + dependency-free — runs in node and the
|
|
6
|
+
* The #244 coarse-placer: a tiny always-resident linear classifier over hashed char-n-gram + script
|
|
7
|
+
* features ({@link featurize}). Maps an address string → a coarse country/region with a
|
|
8
|
+
* TEMPERATURE-CALIBRATED confidence, and ABSTAINS below a threshold ("probably off my loaded
|
|
9
|
+
* map") rather than emit a confident mis-placement. Pure + dependency-free — runs in node and the
|
|
10
|
+
* browser.
|
|
10
11
|
*/
|
|
11
12
|
import { COARSE_CLASSES, FEATURE_DIM, featurize } from "./featurize.js";
|
|
13
|
+
/**
|
|
14
|
+
* Dequantize a per-row int8 weight matrix back to fp32: `W[c][i] = int8[c*dim + i] * scales[c]`. The
|
|
15
|
+
* predict path stays fp32 (identical math); quantization only shrinks the serialized/wire artifact.
|
|
16
|
+
* Pure — usable in the browser loader too.
|
|
17
|
+
*/
|
|
18
|
+
export function dequantizeInt8Weights(int8, scales, classCount, dim) {
|
|
19
|
+
const expected = classCount * dim;
|
|
20
|
+
if (int8.length !== expected)
|
|
21
|
+
throw new Error(`dequantize: int8 length ${int8.length} ≠ classes×dim ${expected}`);
|
|
22
|
+
if (scales.length !== classCount)
|
|
23
|
+
throw new Error(`dequantize: ${scales.length} scales ≠ ${classCount} classes`);
|
|
24
|
+
const out = new Float32Array(expected);
|
|
25
|
+
for (let c = 0; c < classCount; c++) {
|
|
26
|
+
const s = scales[c];
|
|
27
|
+
const base = c * dim;
|
|
28
|
+
for (let i = 0; i < dim; i++)
|
|
29
|
+
out[base + i] = int8[base + i] * s;
|
|
30
|
+
}
|
|
31
|
+
return out;
|
|
32
|
+
}
|
|
12
33
|
export class CoarsePlacer {
|
|
13
34
|
#classes;
|
|
14
35
|
#dim;
|
|
@@ -28,6 +49,32 @@ export class CoarsePlacer {
|
|
|
28
49
|
throw new Error(`CoarsePlacer: weights length ${this.#weights.length} ≠ classes×dim ${expected}`);
|
|
29
50
|
}
|
|
30
51
|
}
|
|
52
|
+
/**
|
|
53
|
+
* Load a placer from an artifact directory holding `meta.json` + `weights.bin` (the layout
|
|
54
|
+
* `scripts/coarse-placer/train.mjs` and `quantize.mjs` write). Handles both the fp32 artifact
|
|
55
|
+
* (`weights.bin` is a `Float32Array`) and the int8 artifact (`meta.quantization === "int8-per-row"`,
|
|
56
|
+
* `weights.bin` is an `Int8Array` dequantized via `meta.scales`). Node-only — the `node:` imports are
|
|
57
|
+
* dynamic so bundling the class for the browser doesn't pull them in.
|
|
58
|
+
*/
|
|
59
|
+
static async fromArtifactDir(dir, opts) {
|
|
60
|
+
const { readFile } = await import("node:fs/promises");
|
|
61
|
+
const { join } = await import("node:path");
|
|
62
|
+
const meta = JSON.parse(await readFile(join(dir, "meta.json"), "utf8"));
|
|
63
|
+
const buf = await readFile(join(dir, "weights.bin"));
|
|
64
|
+
// Copy out of the (possibly pooled, possibly mis-aligned) Buffer into a fresh ArrayBuffer so the
|
|
65
|
+
// typed-array view is always validly aligned.
|
|
66
|
+
const bytes = buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength);
|
|
67
|
+
let weights;
|
|
68
|
+
if (meta.quantization === "int8-per-row") {
|
|
69
|
+
if (!meta.scales)
|
|
70
|
+
throw new Error(`CoarsePlacer.fromArtifactDir: int8 artifact at ${dir} has no scales`);
|
|
71
|
+
weights = dequantizeInt8Weights(new Int8Array(bytes), meta.scales, meta.classes.length, meta.featureDim);
|
|
72
|
+
}
|
|
73
|
+
else {
|
|
74
|
+
weights = new Float32Array(bytes);
|
|
75
|
+
}
|
|
76
|
+
return new CoarsePlacer({ classes: meta.classes, featureDim: meta.featureDim, temperature: meta.temperature, bias: meta.bias, weights }, opts);
|
|
77
|
+
}
|
|
31
78
|
predict(text) {
|
|
32
79
|
const feats = featurize(text);
|
|
33
80
|
const C = this.#classes.length;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coarse-placer.js","sourceRoot":"","sources":["../../coarse-placer/coarse-placer.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"coarse-placer.js","sourceRoot":"","sources":["../../coarse-placer/coarse-placer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AA4BvE;;;;GAIG;AACH,MAAM,UAAU,qBAAqB,CACpC,IAAe,EACf,MAAyB,EACzB,UAAkB,EAClB,GAAW;IAEX,MAAM,QAAQ,GAAG,UAAU,GAAG,GAAG,CAAA;IACjC,IAAI,IAAI,CAAC,MAAM,KAAK,QAAQ;QAAE,MAAM,IAAI,KAAK,CAAC,2BAA2B,IAAI,CAAC,MAAM,kBAAkB,QAAQ,EAAE,CAAC,CAAA;IACjH,IAAI,MAAM,CAAC,MAAM,KAAK,UAAU;QAAE,MAAM,IAAI,KAAK,CAAC,eAAe,MAAM,CAAC,MAAM,aAAa,UAAU,UAAU,CAAC,CAAA;IAChH,MAAM,GAAG,GAAG,IAAI,YAAY,CAAC,QAAQ,CAAC,CAAA;IACtC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,UAAU,EAAE,CAAC,EAAE,EAAE,CAAC;QACrC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,CAAE,CAAA;QACpB,MAAM,IAAI,GAAG,CAAC,GAAG,GAAG,CAAA;QACpB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,EAAE,CA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E,CAAC,EAAE,EAAE,CAAC;YAC5B,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAE,GAAG,GAAG,CAAA;YACzB,YAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAE,CAAC,GAAG,CAAC,CAAA;YACnC,IAAI,CAAC,GAAG,OAAO,EAAE,CAAC;gBACjB,OAAO,GAAG,CAAC,CAAA;gBACX,MAAM,GAAG,CAAC,CAAA;YACX,CAAC;QACF,CAAC;QACD,MAAM,SAAS,GAAG,OAAO,GAAG,IAAI,CAAC,UAAU,CAAA;QAC3C,OAAO;YACN,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAE;YAClD,UAAU,EAAE,OAAO;YACnB,SAAS;YACT,KAAK,EAAE,YAAY;SACnB,CAAA;IACF,CAAC;CACD;AAED,2FAA2F;AAC3F,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACrC,QAAwF,EACxF,OAAqB,EACrB,IAAuB;IAEvB,OAAO,IAAI,YAAY,CAAC,EAAE,GAAG,QAAQ,EAAE,OAAO,EAAE,EAAE,IAAI,CAAC,CAAA;AACxD,CAAC;AAED,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,SAAS,EAAE,CAAA"}
|
|
@@ -3,25 +3,29 @@
|
|
|
3
3
|
* @license AGPL-3.0
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*
|
|
6
|
-
* Feature extraction for the #244 coarse-placer — a fastText-style hashed char-n-gram
|
|
7
|
-
* plus explicit Unicode-script presence tokens. Deterministic + pure (shared by
|
|
8
|
-
* always-resident inference), zero deps. A string → a set of active feature
|
|
6
|
+
* Feature extraction for the #244 coarse-placer — a fastText-style hashed char-n-gram
|
|
7
|
+
* representation plus explicit Unicode-script presence tokens. Deterministic + pure (shared by
|
|
8
|
+
* training and the always-resident inference), zero deps. A string → a set of active feature
|
|
9
|
+
* indices in [0, FEATURE_DIM).
|
|
9
10
|
*
|
|
10
|
-
* Why these features: script is the dominant coarse-geography signal (CJK→East Asia,
|
|
11
|
-
* Europe, Arabic→MENA), and char n-grams separate WITHIN a script (Hangul→KR vs
|
|
12
|
-
* or Dutch "straat" vs French "rue" within Latin). A linear model over
|
|
13
|
-
* runs in microseconds — the "always-resident, places the planet
|
|
11
|
+
* Why these features: script is the dominant coarse-geography signal (CJK→East Asia,
|
|
12
|
+
* Cyrillic→Eastern Europe, Arabic→MENA), and char n-grams separate WITHIN a script (Hangul→KR vs
|
|
13
|
+
* kana→JP vs Han-only→CN, or Dutch "straat" vs French "rue" within Latin). A linear model over
|
|
14
|
+
* both is a few hundred KB and runs in microseconds — the "always-resident, places the planet
|
|
15
|
+
* coarsely" tier.
|
|
14
16
|
*/
|
|
15
17
|
/**
|
|
16
18
|
* The trained classes: the well-represented corpus countries + `OTHER` — the explicit off-map class
|
|
17
|
-
* (milestone 2) trained on non-Latin/non-CJK scripts via outlier exposure, so the model learns the
|
|
18
|
-
* of its competence and routes "probably off my loaded map" instead of a confident
|
|
19
|
-
* order is the label id.
|
|
19
|
+
* (milestone 2) trained on non-Latin/non-CJK scripts via outlier exposure, so the model learns the
|
|
20
|
+
* edge of its competence and routes "probably off my loaded map" instead of a confident
|
|
21
|
+
* mis-placement. Index order is the label id.
|
|
20
22
|
*/
|
|
21
23
|
export declare const COARSE_CLASSES: readonly ["US", "FR", "GB", "CN", "NL", "IT", "DE", "JP", "ES", "KR", "TW", "OTHER"];
|
|
22
24
|
export type CoarseClass = (typeof COARSE_CLASSES)[number];
|
|
23
|
-
/**
|
|
24
|
-
*
|
|
25
|
+
/**
|
|
26
|
+
* Hashed-feature dimensionality (2^16). Keeps the weight matrix small (11×65536) while collisions
|
|
27
|
+
* stay tolerable for a linear bag-of-features model; the discriminative n-grams are few.
|
|
28
|
+
*/
|
|
25
29
|
export declare const FEATURE_DIM: number;
|
|
26
30
|
/**
|
|
27
31
|
* Featurize an address into a deduped list of active feature indices: char 3/4/5-grams over the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"featurize.d.ts","sourceRoot":"","sources":["../../coarse-placer/featurize.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"featurize.d.ts","sourceRoot":"","sources":["../../coarse-placer/featurize.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH;;;;;GAKG;AACH,eAAO,MAAM,cAAc,sFAAuF,CAAA;AAClH,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAA;AAEzD;;;GAGG;AACH,eAAO,MAAM,WAAW,QAAU,CAAA;AA8ClC;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CA8BhD"}
|
|
@@ -3,33 +3,51 @@
|
|
|
3
3
|
* @license AGPL-3.0
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*
|
|
6
|
-
* Feature extraction for the #244 coarse-placer — a fastText-style hashed char-n-gram
|
|
7
|
-
* plus explicit Unicode-script presence tokens. Deterministic + pure (shared by
|
|
8
|
-
* always-resident inference), zero deps. A string → a set of active feature
|
|
6
|
+
* Feature extraction for the #244 coarse-placer — a fastText-style hashed char-n-gram
|
|
7
|
+
* representation plus explicit Unicode-script presence tokens. Deterministic + pure (shared by
|
|
8
|
+
* training and the always-resident inference), zero deps. A string → a set of active feature
|
|
9
|
+
* indices in [0, FEATURE_DIM).
|
|
9
10
|
*
|
|
10
|
-
* Why these features: script is the dominant coarse-geography signal (CJK→East Asia,
|
|
11
|
-
* Europe, Arabic→MENA), and char n-grams separate WITHIN a script (Hangul→KR vs
|
|
12
|
-
* or Dutch "straat" vs French "rue" within Latin). A linear model over
|
|
13
|
-
* runs in microseconds — the "always-resident, places the planet
|
|
11
|
+
* Why these features: script is the dominant coarse-geography signal (CJK→East Asia,
|
|
12
|
+
* Cyrillic→Eastern Europe, Arabic→MENA), and char n-grams separate WITHIN a script (Hangul→KR vs
|
|
13
|
+
* kana→JP vs Han-only→CN, or Dutch "straat" vs French "rue" within Latin). A linear model over
|
|
14
|
+
* both is a few hundred KB and runs in microseconds — the "always-resident, places the planet
|
|
15
|
+
* coarsely" tier.
|
|
14
16
|
*/
|
|
15
17
|
/**
|
|
16
18
|
* The trained classes: the well-represented corpus countries + `OTHER` — the explicit off-map class
|
|
17
|
-
* (milestone 2) trained on non-Latin/non-CJK scripts via outlier exposure, so the model learns the
|
|
18
|
-
* of its competence and routes "probably off my loaded map" instead of a confident
|
|
19
|
-
* order is the label id.
|
|
19
|
+
* (milestone 2) trained on non-Latin/non-CJK scripts via outlier exposure, so the model learns the
|
|
20
|
+
* edge of its competence and routes "probably off my loaded map" instead of a confident
|
|
21
|
+
* mis-placement. Index order is the label id.
|
|
20
22
|
*/
|
|
21
23
|
export const COARSE_CLASSES = ["US", "FR", "GB", "CN", "NL", "IT", "DE", "JP", "ES", "KR", "TW", "OTHER"];
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
+
/**
|
|
25
|
+
* Hashed-feature dimensionality (2^16). Keeps the weight matrix small (11×65536) while collisions
|
|
26
|
+
* stay tolerable for a linear bag-of-features model; the discriminative n-grams are few.
|
|
27
|
+
*/
|
|
24
28
|
export const FEATURE_DIM = 1 << 16;
|
|
25
29
|
/** Coarse Unicode-script buckets — strong priors the n-grams refine. */
|
|
26
|
-
const SCRIPTS = [
|
|
30
|
+
const SCRIPTS = [
|
|
31
|
+
"latin",
|
|
32
|
+
"cjk",
|
|
33
|
+
"cyrillic",
|
|
34
|
+
"arabic",
|
|
35
|
+
"greek",
|
|
36
|
+
"hebrew",
|
|
37
|
+
"devanagari",
|
|
38
|
+
"thai",
|
|
39
|
+
"digit",
|
|
40
|
+
"other",
|
|
41
|
+
];
|
|
27
42
|
function scriptOf(cp) {
|
|
28
43
|
if (cp >= 0x30 && cp <= 0x39)
|
|
29
44
|
return "digit";
|
|
30
45
|
if ((cp >= 0x41 && cp <= 0x5a) || (cp >= 0x61 && cp <= 0x7a) || (cp >= 0xc0 && cp <= 0x24f))
|
|
31
46
|
return "latin";
|
|
32
|
-
if ((cp >= 0x3040 && cp <= 0x30ff) ||
|
|
47
|
+
if ((cp >= 0x3040 && cp <= 0x30ff) ||
|
|
48
|
+
(cp >= 0x4e00 && cp <= 0x9fff) ||
|
|
49
|
+
(cp >= 0xac00 && cp <= 0xd7af) ||
|
|
50
|
+
(cp >= 0x3400 && cp <= 0x4dbf))
|
|
33
51
|
return "cjk";
|
|
34
52
|
if ((cp >= 0x400 && cp <= 0x52f) || (cp >= 0x2de0 && cp <= 0x2dff))
|
|
35
53
|
return "cyrillic";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"featurize.js","sourceRoot":"","sources":["../../coarse-placer/featurize.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"featurize.js","sourceRoot":"","sources":["../../coarse-placer/featurize.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH;;;;;GAKG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,CAAU,CAAA;AAGlH;;;GAGG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,IAAI,EAAE,CAAA;AAElC,wEAAwE;AACxE,MAAM,OAAO,GAAG;IACf,OAAO;IACP,KAAK;IACL,UAAU;IACV,QAAQ;IACR,OAAO;IACP,QAAQ;IACR,YAAY;IACZ,MAAM;IACN,OAAO;IACP,OAAO;CACE,CAAA;AAGV,SAAS,QAAQ,CAAC,EAAU;IAC3B,IAAI,EAAE,IAAI,IAAI,IAAI,EAAE,IAAI,IAAI;QAAE,OAAO,OAAO,CAAA;IAC5C,IAAI,CAAC,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C,CAAA;QACpC,IAAI,EAAE,KAAK,OAAO,IAAI,EAAE,KAAK,OAAO,IAAI,CAAC,GAAG,GAAG,EAAE,CAAC;YACjD,GAAG,GAAG,CAAC,CAAA;YACP,QAAQ,GAAG,EAAE,CAAA;QACd,CAAC;IACF,CAAC;IACD,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,SAAS,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC,CAAA;IAE1C,wDAAwD;IACxD,MAAM,MAAM,GAAG,IAAI,IAAI,GAAG,CAAA;IAC1B,KAAK,MAAM,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC;QAC3B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YAC7C,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAA;QAC9C,CAAC;IACF,CAAC;IACD,OAAO,CAAC,GAAG,MAAM,CAAC,CAAA;AACnB,CAAC"}
|
package/out/pipeline/types.d.ts
CHANGED
|
@@ -40,10 +40,11 @@ export interface PipelineOpts {
|
|
|
40
40
|
* phrase grouper bundles the house number into the STREET_PHRASE and reconcileSpans fuses the
|
|
41
41
|
* span. The #427 "DE +25pp" gains were loose street-string recall on OOD inputs, not the geocode
|
|
42
42
|
* precondition. Default (unset) is now `false` (argmax). It still requires a phrase grouper + a
|
|
43
|
-
* classifier exposing `parseWithLogits`; when either is absent the pipeline uses argmax
|
|
43
|
+
* classifier exposing `parseWithLogits`; when either is absent the pipeline uses argmax
|
|
44
|
+
* regardless.
|
|
44
45
|
*
|
|
45
|
-
* Set `jointReconcile: true` to opt back into reconcile (the A/B harnesses do).
|
|
46
|
-
*
|
|
46
|
+
* Set `jointReconcile: true` to opt back into reconcile (the A/B harnesses do). Report:
|
|
47
|
+
* docs/articles/evals/2026-06-14-reconcile-retirement.md.
|
|
47
48
|
*/
|
|
48
49
|
jointReconcile?: boolean;
|
|
49
50
|
/** @deprecated Use {@link jointReconcile}. Retained as an explicit override for the A/B harnesses. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../pipeline/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAClF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AAErD,MAAM,MAAM,SAAS,GAAG,MAAM,CAAA;AAE9B,kEAAkE;AAClE,MAAM,MAAM,YAAY,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAA;AAEnH,gDAAgD;AAChD,MAAM,WAAW,YAAY;IAC5B,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,iEAAiE;IACjE,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../pipeline/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAClF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA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OAAO,CAAC,UAAU,CAAC,CAAA;IACtH,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,mBAAmB,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,EAAE,UAAU,KAAK,OAAO,CAAC,eAAe,CAAC,CAAA;IAClH;;;;OAIG;IACH,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,mBAAmB,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,EAAE,UAAU,KAAK,OAAO,CAAC,cAAc,EAAE,CAAC,CAAA;IACnH,UAAU,CAAC,EAAE,iBAAiB,CAAA;IAC9B;;;OAGG;IACH,GAAG,CAAC,EAAE,cAAc,CAAA;IACpB,QAAQ,CAAC,EAAE,QAAQ,CAAA;IACnB;;;;;OAKG;IACH,eAAe,CAAC,EAAE,eAAe,CAAA;CACjC;AAED,MAAM,WAAW,cAAc;IAC9B,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;CACvB;AAED,wCAAwC;AACxC,MAAM,WAAW,cAAc;IAC9B,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,EAAE,mBAAmB,CAAA;IAC/B,UAAU,EAAE,cAAc,CAAA;IAC1B,MAAM,EAAE,UAAU,CAAA;IAClB,IAAI,EAAE,eAAe,CAAA;IACrB;;;;OAIG;IACH,eAAe,EAAE,cAAc,EAAE,CAAA;IACjC,IAAI,EAAE,WAAW,CAAA;IACjB,MAAM,EAAE,cAAc,CAAA;IACtB,yEAAyE;IACzE,IAAI,EAAE,WAAW,GAAG,MAAM,CAAA;CAC1B"}
|
|
@@ -5,20 +5,20 @@
|
|
|
5
5
|
*
|
|
6
6
|
* `RemoteResolver` — the `Resolver` interface (`resolveTree`) over HTTP. The adapter the interface
|
|
7
7
|
* docstring anticipated (Phase 4.4): a client POSTs a parsed `AddressTree` + the serializable
|
|
8
|
-
* `ResolveOpts` to a resolver service, which owns the gazetteer + situs/interpolation shards,
|
|
9
|
-
* the cascade, and returns the resolved tree. Two payoffs:
|
|
8
|
+
* `ResolveOpts` to a resolver service, which owns the gazetteer + situs/interpolation shards,
|
|
9
|
+
* runs the cascade, and returns the resolved tree. Two payoffs:
|
|
10
10
|
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
11
|
+
* 1. **Multi-instance** — stateless parser nodes (the ~30 MB ONNX model) talk to ONE resolver service
|
|
12
|
+
* (the multi-GB gazetteer + shards). `parse` locally, `new RemoteResolver(...).resolveTree`
|
|
13
13
|
* remotely — same interface the in-process `WofResolver` satisfies, so it's a drop-in.
|
|
14
|
-
*
|
|
14
|
+
* 2. **Canary** — point it at a second resolver build (or an adapter fronting Pelias/Nominatim/BAN)
|
|
15
15
|
* and diff the resolved trees through the identical contract.
|
|
16
16
|
*
|
|
17
|
-
* Pure transport: `fetch` only, no node-specific deps (runs in the browser too). The
|
|
18
|
-
* / `interpolation` opts are LIVE SQLite handles — not serializable — so they're
|
|
19
|
-
* POST; the resolver service supplies its own from the tree's region (the
|
|
20
|
-
* which is the whole point). All other opts (defaultCountry, calibration,
|
|
21
|
-
* ride along.
|
|
17
|
+
* Pure transport: `fetch` only, no node-specific deps (runs in the browser too). The
|
|
18
|
+
* `addressPoints` / `interpolation` opts are LIVE SQLite handles — not serializable — so they're
|
|
19
|
+
* stripped before the POST; the resolver service supplies its own from the tree's region (the
|
|
20
|
+
* data lives server-side, which is the whole point). All other opts (defaultCountry, calibration,
|
|
21
|
+
* hierarchyCompletion, …) ride along.
|
|
22
22
|
*/
|
|
23
23
|
import type { AddressTree } from "../decoder/types.js";
|
|
24
24
|
import type { ResolveOpts, Resolver } from "./types.js";
|
|
@@ -27,7 +27,8 @@ export type SerializableResolveOpts = Omit<ResolveOpts, "addressPoints" | "inter
|
|
|
27
27
|
/** Strip the live lookup handles from `ResolveOpts` so the rest can be JSON-serialized over HTTP. */
|
|
28
28
|
export declare function serializableResolveOpts(opts?: ResolveOpts): SerializableResolveOpts | undefined;
|
|
29
29
|
export interface RemoteResolverOpts {
|
|
30
|
-
/** Full URL of the resolver service's resolve-tree endpoint, e.g.
|
|
30
|
+
/** Full URL of the resolver service's resolve-tree endpoint, e.g.
|
|
31
|
+
`http://resolver:7081/api/resolve-tree`. */
|
|
31
32
|
endpoint: string;
|
|
32
33
|
/** Injectable fetch (tests / custom agents). Defaults to the global `fetch`. */
|
|
33
34
|
fetch?: typeof fetch;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remote-resolver.d.ts","sourceRoot":"","sources":["../../resolver/remote-resolver.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAEvD,oGAAoG;AACpG,MAAM,MAAM,uBAAuB,GAAG,IAAI,CAAC,WAAW,EAAE,eAAe,GAAG,eAAe,CAAC,CAAA;AAE1F,qGAAqG;AACrG,wBAAgB,uBAAuB,CAAC,IAAI,CAAC,EAAE,WAAW,GAAG,uBAAuB,GAAG,SAAS,CAI/F;AAED,MAAM,WAAW,kBAAkB;IAClC
|
|
1
|
+
{"version":3,"file":"remote-resolver.d.ts","sourceRoot":"","sources":["../../resolver/remote-resolver.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAEvD,oGAAoG;AACpG,MAAM,MAAM,uBAAuB,GAAG,IAAI,CAAC,WAAW,EAAE,eAAe,GAAG,eAAe,CAAC,CAAA;AAE1F,qGAAqG;AACrG,wBAAgB,uBAAuB,CAAC,IAAI,CAAC,EAAE,WAAW,GAAG,uBAAuB,GAAG,SAAS,CAI/F;AAED,MAAM,WAAW,kBAAkB;IAClC;2CAC0C;IAC1C,QAAQ,EAAE,MAAM,CAAA;IAChB,gFAAgF;IAChF,KAAK,CAAC,EAAE,OAAO,KAAK,CAAA;IACpB,gDAAgD;IAChD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,qFAAqF;IACrF,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAChC;AAED,gGAAgG;AAChG,MAAM,WAAW,kBAAkB;IAClC,IAAI,EAAE,WAAW,CAAA;IACjB,IAAI,CAAC,EAAE,uBAAuB,CAAA;CAC9B;AAED,iDAAiD;AACjD,MAAM,WAAW,mBAAmB;IACnC,IAAI,EAAE,WAAW,CAAA;CACjB;AAED,qBAAa,cAAe,YAAW,QAAQ;;gBAMlC,IAAI,EAAE,kBAAkB;IAQ9B,WAAW,CAAC,IAAI,EAAE,WAAW,EAAE,IAAI,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;CAuB9E"}
|
|
@@ -5,20 +5,20 @@
|
|
|
5
5
|
*
|
|
6
6
|
* `RemoteResolver` — the `Resolver` interface (`resolveTree`) over HTTP. The adapter the interface
|
|
7
7
|
* docstring anticipated (Phase 4.4): a client POSTs a parsed `AddressTree` + the serializable
|
|
8
|
-
* `ResolveOpts` to a resolver service, which owns the gazetteer + situs/interpolation shards,
|
|
9
|
-
* the cascade, and returns the resolved tree. Two payoffs:
|
|
8
|
+
* `ResolveOpts` to a resolver service, which owns the gazetteer + situs/interpolation shards,
|
|
9
|
+
* runs the cascade, and returns the resolved tree. Two payoffs:
|
|
10
10
|
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
11
|
+
* 1. **Multi-instance** — stateless parser nodes (the ~30 MB ONNX model) talk to ONE resolver service
|
|
12
|
+
* (the multi-GB gazetteer + shards). `parse` locally, `new RemoteResolver(...).resolveTree`
|
|
13
13
|
* remotely — same interface the in-process `WofResolver` satisfies, so it's a drop-in.
|
|
14
|
-
*
|
|
14
|
+
* 2. **Canary** — point it at a second resolver build (or an adapter fronting Pelias/Nominatim/BAN)
|
|
15
15
|
* and diff the resolved trees through the identical contract.
|
|
16
16
|
*
|
|
17
|
-
* Pure transport: `fetch` only, no node-specific deps (runs in the browser too). The
|
|
18
|
-
* / `interpolation` opts are LIVE SQLite handles — not serializable — so they're
|
|
19
|
-
* POST; the resolver service supplies its own from the tree's region (the
|
|
20
|
-
* which is the whole point). All other opts (defaultCountry, calibration,
|
|
21
|
-
* ride along.
|
|
17
|
+
* Pure transport: `fetch` only, no node-specific deps (runs in the browser too). The
|
|
18
|
+
* `addressPoints` / `interpolation` opts are LIVE SQLite handles — not serializable — so they're
|
|
19
|
+
* stripped before the POST; the resolver service supplies its own from the tree's region (the
|
|
20
|
+
* data lives server-side, which is the whole point). All other opts (defaultCountry, calibration,
|
|
21
|
+
* hierarchyCompletion, …) ride along.
|
|
22
22
|
*/
|
|
23
23
|
/** Strip the live lookup handles from `ResolveOpts` so the rest can be JSON-serialized over HTTP. */
|
|
24
24
|
export function serializableResolveOpts(opts) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remote-resolver.js","sourceRoot":"","sources":["../../resolver/remote-resolver.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAQH,qGAAqG;AACrG,MAAM,UAAU,uBAAuB,CAAC,IAAkB;IACzD,IAAI,CAAC,IAAI;QAAE,OAAO,SAAS,CAAA;IAC3B,MAAM,EAAE,aAAa,EAAE,GAAG,EAAE,aAAa,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,GAAG,IAAI,CAAA;IAChE,OAAO,IAAI,CAAA;AACZ,CAAC;
|
|
1
|
+
{"version":3,"file":"remote-resolver.js","sourceRoot":"","sources":["../../resolver/remote-resolver.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAQH,qGAAqG;AACrG,MAAM,UAAU,uBAAuB,CAAC,IAAkB;IACzD,IAAI,CAAC,IAAI;QAAE,OAAO,SAAS,CAAA;IAC3B,MAAM,EAAE,aAAa,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YACF,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC;gBACb,MAAM,IAAI,KAAK,CAAC,mBAAmB,IAAI,CAAC,SAAS,WAAW,GAAG,CAAC,MAAM,IAAI,GAAG,CAAC,UAAU,EAAE,CAAC,CAAA;YAC5F,CAAC;YACD,MAAM,IAAI,GAAG,CAAC,MAAM,GAAG,CAAC,IAAI,EAAE,CAAiC,CAAA;YAC/D,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;gBAC5D,MAAM,IAAI,KAAK,CAAC,2DAA2D,CAAC,CAAA;YAC7E,CAAC;YACD,OAAO,IAAI,CAAC,IAAI,CAAA;QACjB,CAAC;gBAAS,CAAC;YACV,YAAY,CAAC,KAAK,CAAC,CAAA;QACpB,CAAC;IACF,CAAC;CACD"}
|
package/out/resolver/resolve.js
CHANGED
|
@@ -56,10 +56,11 @@ function firstPostcodeValue(roots) {
|
|
|
56
56
|
const STREET_NAME_TAGS = new Set(["street", "street_prefix", "street_prefix_particle", "street_suffix"]);
|
|
57
57
|
/**
|
|
58
58
|
* Reassemble the full street string from the street node's subtree (#483 coverage fix). The parser
|
|
59
|
-
* nests the directional/suffix as `street_prefix`/`street_suffix` CHILDREN of `street`
|
|
60
|
-
* so `street.value` alone is the bare base name ("Sheldon" for "East Sheldon Rd")
|
|
61
|
-
* coordinate shards keyed on the FULL normalized name. Collect street + its
|
|
62
|
-
* descendants (NOT house_number/unit, which also nest under street), order
|
|
59
|
+
* nests the directional/suffix as `street_prefix`/`street_suffix` CHILDREN of `street`
|
|
60
|
+
* (containment.ts), so `street.value` alone is the bare base name ("Sheldon" for "East Sheldon Rd")
|
|
61
|
+
* — which misses the coordinate shards keyed on the FULL normalized name. Collect street + its
|
|
62
|
+
* prefix/particle/suffix descendants (NOT house_number/unit, which also nest under street), order
|
|
63
|
+
* by span offset, and join.
|
|
63
64
|
*/
|
|
64
65
|
function assembleStreetValue(streetNode) {
|
|
65
66
|
const parts = [];
|
|
@@ -108,12 +109,12 @@ function applyAddressPoint(roots, lookup) {
|
|
|
108
109
|
};
|
|
109
110
|
}
|
|
110
111
|
/**
|
|
111
|
-
* House-number interpolation tier (#483): the third rung, consulted ONLY when the exact
|
|
112
|
-
* tier ({@link applyAddressPoint}) did NOT already stamp the street node
|
|
113
|
-
* "address_point"`). That gate IS the "after the exact-point fall-through" —
|
|
114
|
-
* overwrites a real situs point. Postcode-scoped (no locality — the interpolators
|
|
115
|
-
* without a postcode). Stamps a DISTINCT metadata key (`interpolated_point`,
|
|
116
|
-
* Additive only — admin resolution is untouched.
|
|
112
|
+
* House-number interpolation tier (#483): the third rung, consulted ONLY when the exact
|
|
113
|
+
* address-point tier ({@link applyAddressPoint}) did NOT already stamp the street node
|
|
114
|
+
* (`resolution_tier === "address_point"`). That gate IS the "after the exact-point fall-through" —
|
|
115
|
+
* an estimate never overwrites a real situs point. Postcode-scoped (no locality — the interpolators
|
|
116
|
+
* abstain statewide without a postcode). Stamps a DISTINCT metadata key (`interpolated_point`,
|
|
117
|
+
* never `address_point`). Additive only — admin resolution is untouched.
|
|
117
118
|
*/
|
|
118
119
|
function applyInterpolation(roots, lookup, radiusCalibration) {
|
|
119
120
|
let street;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolve.js","sourceRoot":"","sources":["../../resolver/resolve.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAGH,OAAO,EAGN,qBAAqB,GAOrB,MAAM,YAAY,CAAA;AAEnB;;;;GAIG;AACH,MAAM,UAAU,iBAAiB,CAAC,OAAwB;IACzD,OAAO,IAAI,WAAW,CAAC,OAAO,CAAC,CAAA;AAChC,CAAC;AAoCD;;;;;;GAMG;AACH,SAAS,cAAc,CAAC,UAAyC;IAChE,IAAI,UAAU,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,IAAI,CAA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IAAI,CAAC,sBAAsB,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAA;QAC7E,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAA;IACrB,CAAC;IACD,IAAI,CAAC,MAAM,GAAG,UAAU,CAAA;IACxB,IAAI,CAAC,QAAQ,GAAG,GAAG,QAAQ,CAAC,SAAS,IAAI,QAAQ,CAAC,EAAE,EAAE,CAAA;IACtD,IAAI,CAAC,GAAG,GAAG,QAAQ,CAAC,GAAG,CAAA;IACvB,IAAI,CAAC,GAAG,GAAG,QAAQ,CAAC,GAAG,CAAA;IACvB,IAAI,CAAC,OAAO,GAAG,OAAO,QAAQ,CAAC,EAAE,EAAE,CAAA,CAAC,2DAA2D;IAC/F,+FAA+F;IAC/F,kGAAkG;IAClG,kGAAkG;IAClG,iGAAiG;IACjG,IAAI,CAAC,QAAQ,GAAG,EAAE,GAAG,CAAC,IAAI,CAAC,QAAQ,IAAI,EAAE,CAAC,EAAE,cAAc,EAAE,QAAQ,CAAC,KAAK,EAAE,aAAa,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAA;IAC1G,gGAAgG;IAChG,kGAAkG;IAClG,0CAA0C;IAC1C,IAAI,QAAQ,CAAC,QAAQ;QAAE,IAAI,CAAC,QAAQ,CAAC,wBAAwB,CAAC,GAAG,IAAI,CAAA;IACrE,IAAI,YAAY,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC7B,IAAI,CAAC,YAAY,GAAG,YAAY,CAAA;IACjC,CAAC;AACF,CAAC"}
|
package/out/resolver/types.d.ts
CHANGED
|
@@ -144,16 +144,20 @@ export interface AddressPointLookup {
|
|
|
144
144
|
}): AddressPointHit | null;
|
|
145
145
|
}
|
|
146
146
|
/**
|
|
147
|
-
* One interpolated coordinate estimate (#483) — NEVER an exact situs point (`uncertaintyM` prices
|
|
148
|
-
* estimate honestly). Structural mirror of `InterpolatedHit` in
|
|
149
|
-
* keep this a SUBSET of that shape so the concrete
|
|
150
|
-
* satisfy {@link InterpolationLookup} with no
|
|
147
|
+
* One interpolated coordinate estimate (#483) — NEVER an exact situs point (`uncertaintyM` prices
|
|
148
|
+
* the estimate honestly). Structural mirror of `InterpolatedHit` in
|
|
149
|
+
* `resolver-wof-sqlite/interpolation.ts`; keep this a SUBSET of that shape so the concrete
|
|
150
|
+
* `StreetInterpolator`/`AddressPointInterpolator` satisfy {@link InterpolationLookup} with no
|
|
151
|
+
* adapter (the {@link AddressPointHit} precedent).
|
|
151
152
|
*/
|
|
152
153
|
export interface InterpolatedPointHit {
|
|
153
154
|
lat: number;
|
|
154
155
|
lon: number;
|
|
155
156
|
interpolated: true;
|
|
156
|
-
/**
|
|
157
|
+
/**
|
|
158
|
+
* `address_point` = bracketed between real neighbor points; `tiger_range` = linear within a
|
|
159
|
+
* segment range.
|
|
160
|
+
*/
|
|
157
161
|
method: "address_point" | "tiger_range";
|
|
158
162
|
/** False when only the opposite side's range contained the number (right block, wrong side). */
|
|
159
163
|
parityMatched?: boolean;
|
|
@@ -165,9 +169,10 @@ export interface InterpolatedPointHit {
|
|
|
165
169
|
release: string;
|
|
166
170
|
}
|
|
167
171
|
/**
|
|
168
|
-
* House-number interpolation lookup (#483). Like {@link AddressPointLookup}, implementations own
|
|
169
|
-
* normalization (the shared `resolver-wof-sqlite/street-normalize.ts`); core depends only on
|
|
170
|
-
* contract. Postcode-scoped (no locality field) — the tier abstains statewide without a
|
|
172
|
+
* House-number interpolation lookup (#483). Like {@link AddressPointLookup}, implementations own
|
|
173
|
+
* their normalization (the shared `resolver-wof-sqlite/street-normalize.ts`); core depends only on
|
|
174
|
+
* this contract. Postcode-scoped (no locality field) — the tier abstains statewide without a
|
|
175
|
+
* postcode.
|
|
171
176
|
*/
|
|
172
177
|
export interface InterpolationLookup {
|
|
173
178
|
find(query: {
|
|
@@ -270,9 +275,10 @@ export interface ResolveOpts {
|
|
|
270
275
|
* House-number interpolation tier (#483): consulted ONLY when the exact address-point tier
|
|
271
276
|
* ({@link addressPoints}) did NOT stamp the street node — the "after the exact-point fall-through"
|
|
272
277
|
* semantics. On hit, stamps the estimate onto the street node's metadata under a DISTINCT key
|
|
273
|
-
* (`interpolated_point`, `resolution_tier: "interpolated"`, `uncertainty_m`) — never
|
|
274
|
-
* so a consumer reading the exact key never gets an estimate mislabeled as
|
|
275
|
-
* byte-stable. Independent of {@link addressPoints} (either, both, or
|
|
278
|
+
* (`interpolated_point`, `resolution_tier: "interpolated"`, `uncertainty_m`) — never
|
|
279
|
+
* `address_point`, so a consumer reading the exact key never gets an estimate mislabeled as
|
|
280
|
+
* exact. Opt-in; absent = byte-stable. Independent of {@link addressPoints} (either, both, or
|
|
281
|
+
* neither may be passed).
|
|
276
282
|
*/
|
|
277
283
|
interpolation?: InterpolationLookup;
|
|
278
284
|
/**
|
|
@@ -280,10 +286,10 @@ export interface ResolveOpts {
|
|
|
280
286
|
* radius is half the matched TIGER segment length — an honest-but-TIGHT prior: a split-conformal
|
|
281
287
|
* calibration on 1562 Travis-County interp hits (2026-06-14) found it covers only ~72% of true
|
|
282
288
|
* errors, and that multiplying by **Q̂ ≈ 1.70** yields a calibrated 90% bound (91.5% empirical).
|
|
283
|
-
* When set, `applyInterpolation` reports `uncertainty_m = round(raw × this)` and preserves the
|
|
284
|
-
* value under `uncertainty_raw_m`. Absent = raw heuristic (byte-stable). The factor is the
|
|
285
|
-
* (it's a property of the calibration set, not the geometry); the geocode CLI passes the
|
|
286
|
-
* 1.70. Re-calibrate on a multi-region holdout before treating it as national-exact.
|
|
289
|
+
* When set, `applyInterpolation` reports `uncertainty_m = round(raw × this)` and preserves the
|
|
290
|
+
* raw value under `uncertainty_raw_m`. Absent = raw heuristic (byte-stable). The factor is the
|
|
291
|
+
* CALLER's (it's a property of the calibration set, not the geometry); the geocode CLI passes the
|
|
292
|
+
* TX-derived 1.70. Re-calibrate on a multi-region holdout before treating it as national-exact.
|
|
287
293
|
* Report: docs/articles/evals/2026-06-14-interp-radius-calibration.md.
|
|
288
294
|
*/
|
|
289
295
|
interpol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CAAA;AAC9E,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,SAAS,MAAM,EAAE,GAAG,IAAI,GAAG,MAAM,EAAE,GAAG,IAAI,CAAA;AAY5F;;;;;;GAMG;AACH,MAAM,WAAW,QAAQ;IACxB,WAAW,CAAC,IAAI,EAAE,WAAW,EAAE,IAAI,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC,CAAA;CACxE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../resolver/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../resolver/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAwTH,MAAM,CAAC,MAAM,qBAAqB,GAAiB;IAClD,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;IACpB,kBAAkB,EAAE,UAAU;IAC9B,SAAS,EAAE,QAAQ;IACnB,0FAA0F;IAC1F,6FAA6F;IAC7F,2FAA2F;IAC3F,QAAQ,EAAE,YAAY;CACtB,CAAA;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAgD;IACnF,QAAQ,EAAE,CAAC,UAAU,EAAE,SAAS,EAAE,YAAY,CAAC;CAC/C,CAAA;AAUD,MAAM,UAAU,qBAAqB,CAAC,UAAoC;IACzE,IAAI,CAAC,UAAU;QAAE,OAAO,IAAI,CAAA;IAC5B,MAAM,GAAG,GAAa,EAAE,CAAA;IACxB,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE,CAAC;QACpC,KAAK,MAAM,QAAQ,IAAI,uBAAuB,CAAC,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC;YAC1E,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,QAAQ,CAAC;gBAAE,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;QAChD,CAAC;IACF,CAAC;IACD,OAAO,GAAG,CAAA;AACX,CAAC"}
|
package/out/utils/repo.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repo.d.ts","sourceRoot":"","sources":["../../utils/repo.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,EAA6B,KAAK,IAAI,EAAE,KAAK,WAAW,EAAE,MAAM,SAAS,CAAA;AAEhF;;;;GAIG;AAEH;;GAEG;AACH,eAAO,MAAM,gBAAgB,QAAQ,CAAA;AACrC,MAAM,MAAM,gBAAgB,GAAG,OAAO,gBAAgB,CAAA;AAEtD,QAAA,MAAM,aAAa,EAAG,WAAoB,CAAA;AAC1C,KAAK,aAAa,GAAG,OAAO,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"repo.d.ts","sourceRoot":"","sources":["../../utils/repo.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,EAA6B,KAAK,IAAI,EAAE,KAAK,WAAW,EAAE,MAAM,SAAS,CAAA;AAEhF;;;;GAIG;AAEH;;GAEG;AACH,eAAO,MAAM,gBAAgB,QAAQ,CAAA;AACrC,MAAM,MAAM,gBAAgB,GAAG,OAAO,gBAAgB,CAAA;AAEtD,QAAA,MAAM,aAAa,EAAG,WAAoB,CAAA;AAC1C,KAAK,aAAa,GAAG,OAAO,aAAa,CAAA;AA4BzC;;GAEG;AACH,eAAO,MAAM,mBAAmB,oDAAiE,CAAA;AAajG,eAAO,MAAM,sBAAsB,oDAAoE,CAAA;AAEvG;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,MAAM,EAAE,EAClD,GAAG,YAAY,EAAE,CAAC,GAChB,WAAW,CAAC,IAAI,CAAC,CAAC,aAAa,EAAE,gBAAgB,EAAE,GAAG,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAGjE;AAED,MAAM,MAAM,eAAe,GAAG,2BAA2B,GAAG,WAAW,GAAG,UAAU,GAAG,aAAa,CAAA;AAEpG;;;;;;GAMG;AACH,wBAAgB,6BAA6B,CAAC,CAAC,SAAS,eAAe,EAAE,CAAC,SAAS,MAAM,EAAE,EAC1F,QAAQ,EAAE,CAAC,EACX,GAAG,YAAY,EAAE,CAAC,4EAGlB;AAED;;GAEG;AACH,eAAO,MAAM,sBAAsB,+BAA8B,CAAA"}
|
package/out/utils/repo.js
CHANGED
|
@@ -24,13 +24,17 @@ const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
|
24
24
|
/**
|
|
25
25
|
* The absolute path to the root of the repository.
|
|
26
26
|
*
|
|
27
|
-
* In compiled mode this file lives at `core/out/utils/repo.js` (
|
|
28
|
-
* and in source mode at `core/utils/repo.ts` (
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
27
|
+
* In compiled mode this file lives at `core/out/utils/repo.js` (so the PARENT of `utils` is `out/`)
|
|
28
|
+
* and in source mode at `core/utils/repo.ts` (the parent is `core/`). Detect the mode by checking
|
|
29
|
+
* whether the parent directory (`resolve("..")`) is `out/` — uses `basename` on the resolved path
|
|
30
|
+
* rather than a substring match on `__dirname`, so it survives symlinks and output-directory renames.
|
|
31
|
+
*
|
|
32
|
+
* (Earlier this checked `resolve("..", "..")`, which overshoots `out/` to `core/` and so was always
|
|
33
|
+
* false — the compiled tree then resolved `CorePackageAbsolutePath` to `core/out` instead of `core/`,
|
|
34
|
+
* landing dictionary reads at the nonexistent `core/out/data` and requiring an external symlink bridge
|
|
35
|
+
* to find `core/data`. #481.)
|
|
32
36
|
*/
|
|
33
|
-
const __isCompiledTree = basename(resolve(__dirname, ".."
|
|
37
|
+
const __isCompiledTree = basename(resolve(__dirname, "..")) === OutDirectoryName;
|
|
34
38
|
const __upCount = __isCompiledTree ? PathReflection.length : PathReflection.length - 1;
|
|
35
39
|
const RepoRootAbsolutePath = resolve(__dirname, ...Array.from({ length: __upCount }, () => ".."));
|
|
36
40
|
/**
|
package/out/utils/repo.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repo.js","sourceRoot":"","sources":["../../utils/repo.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AACxC,OAAO,EAAE,yBAAyB,EAA+B,MAAM,SAAS,CAAA;AAEhF;;;;GAIG;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,KAAK,CAAA;AAGrC,MAAM,aAAa,GAAG,WAAoB,CAAA;AAG1C,MAAM,cAAc,GAAG,CAAC,MAAM,EAAE,KAAK,EAAE,OAAO,CAAU,CAAA;AAGxD;;GAEG;AACH,MAAM,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAkD,CAAA;AAE1G
|
|
1
|
+
{"version":3,"file":"repo.js","sourceRoot":"","sources":["../../utils/repo.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AACxC,OAAO,EAAE,yBAAyB,EAA+B,MAAM,SAAS,CAAA;AAEhF;;;;GAIG;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,KAAK,CAAA;AAGrC,MAAM,aAAa,GAAG,WAAoB,CAAA;AAG1C,MAAM,cAAc,GAAG,CAAC,MAAM,EAAE,KAAK,EAAE,OAAO,CAAU,CAAA;AAGxD;;GAEG;AACH,MAAM,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAkD,CAAA;AAE1G;;;;;;;;;;;;GAYG;AACH,MAAM,gBAAgB,GAAG,QAAQ,CAA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ts","sourceRoot":"","sources":["../vitest.config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;;AAWH,wBA0BE"}
|
package/out/vitest.config.js
CHANGED
|
@@ -10,10 +10,12 @@
|
|
|
10
10
|
* `solvers/*` and `filters/*` use a glob-style export, so the alias mirrors that with a regex that
|
|
11
11
|
* preserves the trailing path segment.
|
|
12
12
|
*/
|
|
13
|
-
/// <reference types="vitest/config" />
|
|
14
13
|
import { resolve } from "node:path";
|
|
15
14
|
import { fileURLToPath } from "node:url";
|
|
16
|
-
|
|
15
|
+
// `defineConfig` from "vitest/config" (not "vite"): vitest's overload carries the `test` field.
|
|
16
|
+
// vite 8 (pulled in by docs/ Storybook) no longer applies the `vitest/config` type augmentation to
|
|
17
|
+
// vite's own `defineConfig`, so importing from "vite" makes `test` a type error under vite 8.
|
|
18
|
+
import { defineConfig } from "vitest/config";
|
|
17
19
|
const here = fileURLToPath(new URL(".", import.meta.url));
|
|
18
20
|
export default defineConfig({
|
|
19
21
|
resolve: {
|
package/out/vitest.config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vitest.config.js","sourceRoot":"","sources":["../vitest.config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,
|
|
1
|
+
{"version":3,"file":"vitest.config.js","sourceRoot":"","sources":["../vitest.config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AACxC,gGAAgG;AAChG,mGAAmG;AACnG,8FAA8F;AAC9F,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAE5C,MAAM,IAAI,GAAG,aAAa,CAAC,IAAI,GAAG,CAAC,GAAG,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAA;AAEzD,eAAe,YAAY,CAAC;IAC3B,OAAO,EAAE;Q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+
"version": "4.8.1",
|
|
4
4
|
"description": "Mailwoman core: tokenization, classification primitives, solver, formatter, resources, filters, solvers, utils.",
|
|
5
5
|
"license": "AGPL-3.0-only",
|
|
6
6
|
"repository": {
|
|
@@ -49,15 +49,23 @@
|
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
+
"@fragaria/address-formatter": "^6.7.1",
|
|
52
53
|
"axios": "^1.17.0",
|
|
53
54
|
"axios-cache-interceptor": "^1.12.0",
|
|
55
|
+
"change-case": "^5.4.4",
|
|
54
56
|
"d3-color": "^3.1.0",
|
|
55
57
|
"d3-scale-chromatic": "^3.1.0",
|
|
58
|
+
"fast-glob": "^3.3.3",
|
|
56
59
|
"http-status-codes": "^2.3.0",
|
|
57
60
|
"json-colorizer": "^3.0.1",
|
|
58
61
|
"kysely": "^0.29.2",
|
|
62
|
+
"lru-cache": "^10.4.3",
|
|
63
|
+
"path-ts": "^1.0.5",
|
|
59
64
|
"pino": "^10.3.1",
|
|
60
65
|
"pino-pretty": "^13.1.3",
|
|
66
|
+
"pluralize": "^8.0.0",
|
|
67
|
+
"regenerate": "^1.4.2",
|
|
68
|
+
"spliterator": "^2.0.0",
|
|
61
69
|
"table": "^6.9.0"
|
|
62
70
|
},
|
|
63
71
|
"devDependencies": {
|