@mailwoman/registry 9.1.0 → 9.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/README.md +2 -2
- package/{address-key.ts → lib/address-key.ts} +1 -1
- package/{geocode-handler.ts → lib/geocode-handler.ts} +7 -7
- package/{geojson.ts → lib/geojson.ts} +12 -6
- package/{index.ts → lib/index.ts} +10 -10
- package/{ingest.ts → lib/ingest.ts} +77 -69
- package/{learned-scorer.ts → lib/learned-scorer.ts} +1 -1
- package/{map-html.ts → lib/map-html.ts} +10 -16
- package/{reconcile.ts → lib/reconcile.ts} +9 -24
- package/{resolve.ts → lib/resolve.ts} +31 -13
- package/{tools → lib/tools}/coverage-reconciliation.ts +13 -15
- package/{tools → lib/tools}/cross-dataset-correlation.ts +64 -139
- package/{tools → lib/tools}/cross-source-threshold-sweep.ts +21 -32
- package/{tools → lib/tools}/dedup-ceiling.ts +33 -144
- package/{tools → lib/tools}/eval-geocoder.ts +10 -11
- package/{tools → lib/tools}/geocoder-namesake-probe.ts +5 -12
- package/{tools → lib/tools}/geocoder-vs-provided-coords.ts +12 -11
- package/lib/tools/gold-set-sample.ts +141 -0
- package/lib/tools/index.ts +31 -0
- package/{tools → lib/tools}/learned-scorer-clustering-eval.ts +71 -260
- package/{tools → lib/tools}/learned-scorer-crossstate-eval.ts +62 -245
- package/{tools → lib/tools}/learned-scorer-eval.ts +64 -263
- package/{tools → lib/tools}/matcher-scale.ts +5 -5
- package/lib/tools/nppes/org-name.ts +23 -0
- package/lib/tools/nppes/overmerge-packet.ts +94 -0
- package/lib/tools/nppes/report.ts +373 -0
- package/lib/tools/nppes/sample.ts +245 -0
- package/lib/tools/nppes/scoring.ts +114 -0
- package/lib/tools/nppes/settings.ts +102 -0
- package/lib/tools/nppes/truth-grains.ts +161 -0
- package/lib/tools/nppes-dedup-benchmark.ts +408 -0
- package/lib/tools/shared.ts +763 -0
- package/lib/tools/train-cross-gbt.ts +209 -0
- package/{tools → lib/tools}/train-gbt.ts +38 -156
- package/lib/tools/train-org-cross-gbt.ts +179 -0
- package/{tools → lib/tools}/txhhsc-to-oarow.ts +10 -28
- package/lib/tools/viz/browser.ts +50 -0
- package/{tools → lib/tools}/viz/cross-dataset-map.ts +16 -39
- package/{tools → lib/tools}/viz/geocode-first-surface.ts +13 -39
- package/{tools → lib/tools}/viz/render-map.ts +10 -23
- package/lib/tools/viz/render.ts +98 -0
- package/{tools → lib/tools}/viz/source-provenance-map.ts +20 -39
- package/{tools → lib/tools}/viz/yardstick-figure.ts +6 -5
- package/{types.ts → lib/types.ts} +10 -1
- package/out/address-key.d.ts +1 -1
- package/out/address-key.d.ts.map +1 -1
- package/out/address-key.js.map +1 -1
- package/out/geocode-handler.d.ts +6 -6
- package/out/geocode-handler.d.ts.map +1 -1
- package/out/geocode-handler.js +6 -6
- package/out/geocode-handler.js.map +1 -1
- package/out/geojson.d.ts +7 -2
- package/out/geojson.d.ts.map +1 -1
- package/out/geojson.js +8 -5
- package/out/geojson.js.map +1 -1
- package/out/index.d.ts +10 -10
- package/out/index.d.ts.map +1 -1
- package/out/index.js +10 -10
- package/out/index.js.map +1 -1
- package/out/ingest.d.ts +64 -46
- package/out/ingest.d.ts.map +1 -1
- package/out/ingest.js +33 -46
- package/out/ingest.js.map +1 -1
- package/out/learned-scorer.d.ts +1 -1
- package/out/learned-scorer.d.ts.map +1 -1
- package/out/learned-scorer.js.map +1 -1
- package/out/map-html.d.ts +4 -4
- package/out/map-html.d.ts.map +1 -1
- package/out/map-html.js +6 -11
- package/out/map-html.js.map +1 -1
- package/out/models/crosssource-gbt-en-us.d.ts.map +1 -1
- package/out/models/crosssource-gbt-en-us.js.map +1 -1
- package/out/models/dedup-gbt-en-us.d.ts.map +1 -1
- package/out/models/dedup-gbt-en-us.js.map +1 -1
- package/out/models/org-crosssource-gbt-en-us.d.ts.map +1 -1
- package/out/models/org-crosssource-gbt-en-us.js.map +1 -1
- package/out/reconcile.d.ts +6 -1
- package/out/reconcile.d.ts.map +1 -1
- package/out/reconcile.js +7 -21
- package/out/reconcile.js.map +1 -1
- package/out/resolve.d.ts +19 -7
- package/out/resolve.d.ts.map +1 -1
- package/out/resolve.js +20 -6
- package/out/resolve.js.map +1 -1
- package/out/tools/coverage-reconciliation.d.ts +1 -1
- package/out/tools/coverage-reconciliation.d.ts.map +1 -1
- package/out/tools/coverage-reconciliation.js +12 -12
- package/out/tools/coverage-reconciliation.js.map +1 -1
- package/out/tools/cross-dataset-correlation.d.ts +4 -4
- package/out/tools/cross-dataset-correlation.d.ts.map +1 -1
- package/out/tools/cross-dataset-correlation.js +60 -111
- package/out/tools/cross-dataset-correlation.js.map +1 -1
- package/out/tools/cross-source-threshold-sweep.d.ts +2 -2
- package/out/tools/cross-source-threshold-sweep.d.ts.map +1 -1
- package/out/tools/cross-source-threshold-sweep.js +19 -27
- package/out/tools/cross-source-threshold-sweep.js.map +1 -1
- package/out/tools/dedup-ceiling.d.ts.map +1 -1
- package/out/tools/dedup-ceiling.js +36 -118
- package/out/tools/dedup-ceiling.js.map +1 -1
- package/out/tools/eval-geocoder.d.ts +9 -13
- package/out/tools/eval-geocoder.d.ts.map +1 -1
- package/out/tools/eval-geocoder.js +2 -2
- package/out/tools/eval-geocoder.js.map +1 -1
- package/out/tools/geocoder-namesake-probe.d.ts +2 -2
- package/out/tools/geocoder-namesake-probe.d.ts.map +1 -1
- package/out/tools/geocoder-namesake-probe.js +4 -8
- package/out/tools/geocoder-namesake-probe.js.map +1 -1
- package/out/tools/geocoder-vs-provided-coords.d.ts +1 -1
- package/out/tools/geocoder-vs-provided-coords.d.ts.map +1 -1
- package/out/tools/geocoder-vs-provided-coords.js +11 -9
- package/out/tools/geocoder-vs-provided-coords.js.map +1 -1
- package/out/tools/gold-set-sample.d.ts +5 -5
- package/out/tools/gold-set-sample.d.ts.map +1 -1
- package/out/tools/gold-set-sample.js +37 -121
- package/out/tools/gold-set-sample.js.map +1 -1
- package/out/tools/index.d.ts +24 -29
- package/out/tools/index.d.ts.map +1 -1
- package/out/tools/index.js +24 -29
- package/out/tools/index.js.map +1 -1
- package/out/tools/learned-scorer-clustering-eval.d.ts +1 -1
- package/out/tools/learned-scorer-clustering-eval.d.ts.map +1 -1
- package/out/tools/learned-scorer-clustering-eval.js +35 -170
- package/out/tools/learned-scorer-clustering-eval.js.map +1 -1
- package/out/tools/learned-scorer-crossstate-eval.d.ts +5 -5
- package/out/tools/learned-scorer-crossstate-eval.d.ts.map +1 -1
- package/out/tools/learned-scorer-crossstate-eval.js +44 -166
- package/out/tools/learned-scorer-crossstate-eval.js.map +1 -1
- package/out/tools/learned-scorer-eval.d.ts +1 -1
- package/out/tools/learned-scorer-eval.d.ts.map +1 -1
- package/out/tools/learned-scorer-eval.js +37 -173
- package/out/tools/learned-scorer-eval.js.map +1 -1
- package/out/tools/matcher-scale.d.ts.map +1 -1
- package/out/tools/matcher-scale.js +5 -5
- package/out/tools/matcher-scale.js.map +1 -1
- package/out/tools/nppes/org-name.d.ts +21 -0
- package/out/tools/nppes/org-name.d.ts.map +1 -0
- package/out/tools/nppes/org-name.js +13 -0
- package/out/tools/nppes/org-name.js.map +1 -0
- package/out/tools/nppes/overmerge-packet.d.ts +39 -0
- package/out/tools/nppes/overmerge-packet.d.ts.map +1 -0
- package/out/tools/nppes/overmerge-packet.js +55 -0
- package/out/tools/nppes/overmerge-packet.js.map +1 -0
- package/out/tools/nppes/report.d.ts +93 -0
- package/out/tools/nppes/report.d.ts.map +1 -0
- package/out/tools/nppes/report.js +186 -0
- package/out/tools/nppes/report.js.map +1 -0
- package/out/tools/nppes/sample.d.ts +90 -0
- package/out/tools/nppes/sample.d.ts.map +1 -0
- package/out/tools/nppes/sample.js +131 -0
- package/out/tools/nppes/sample.js.map +1 -0
- package/out/tools/nppes/scoring.d.ts +36 -0
- package/out/tools/nppes/scoring.d.ts.map +1 -0
- package/out/tools/nppes/scoring.js +80 -0
- package/out/tools/nppes/scoring.js.map +1 -0
- package/out/tools/nppes/settings.d.ts +38 -0
- package/out/tools/nppes/settings.d.ts.map +1 -0
- package/out/tools/nppes/settings.js +79 -0
- package/out/tools/nppes/settings.js.map +1 -0
- package/out/tools/nppes/truth-grains.d.ts +50 -0
- package/out/tools/nppes/truth-grains.d.ts.map +1 -0
- package/out/tools/nppes/truth-grains.js +123 -0
- package/out/tools/nppes/truth-grains.js.map +1 -0
- package/out/tools/nppes-dedup-benchmark.d.ts +7 -3
- package/out/tools/nppes-dedup-benchmark.d.ts.map +1 -1
- package/out/tools/nppes-dedup-benchmark.js +106 -673
- package/out/tools/nppes-dedup-benchmark.js.map +1 -1
- package/out/tools/shared.d.ts +244 -7
- package/out/tools/shared.d.ts.map +1 -1
- package/out/tools/shared.js +353 -21
- package/out/tools/shared.js.map +1 -1
- package/out/tools/train-cross-gbt.d.ts +7 -7
- package/out/tools/train-cross-gbt.d.ts.map +1 -1
- package/out/tools/train-cross-gbt.js +47 -145
- package/out/tools/train-cross-gbt.js.map +1 -1
- package/out/tools/train-gbt.d.ts +7 -7
- package/out/tools/train-gbt.d.ts.map +1 -1
- package/out/tools/train-gbt.js +31 -111
- package/out/tools/train-gbt.js.map +1 -1
- package/out/tools/train-org-cross-gbt.d.ts +7 -5
- package/out/tools/train-org-cross-gbt.d.ts.map +1 -1
- package/out/tools/train-org-cross-gbt.js +45 -141
- package/out/tools/train-org-cross-gbt.js.map +1 -1
- package/out/tools/txhhsc-to-oarow.d.ts +2 -2
- package/out/tools/txhhsc-to-oarow.d.ts.map +1 -1
- package/out/tools/txhhsc-to-oarow.js +9 -23
- package/out/tools/txhhsc-to-oarow.js.map +1 -1
- package/out/tools/viz/browser.d.ts +34 -0
- package/out/tools/viz/browser.d.ts.map +1 -0
- package/out/tools/viz/browser.js +33 -0
- package/out/tools/viz/browser.js.map +1 -0
- package/out/tools/viz/cross-dataset-map.d.ts +4 -25
- package/out/tools/viz/cross-dataset-map.d.ts.map +1 -1
- package/out/tools/viz/cross-dataset-map.js +12 -33
- package/out/tools/viz/cross-dataset-map.js.map +1 -1
- package/out/tools/viz/geocode-first-surface.d.ts +6 -35
- package/out/tools/viz/geocode-first-surface.d.ts.map +1 -1
- package/out/tools/viz/geocode-first-surface.js +10 -37
- package/out/tools/viz/geocode-first-surface.js.map +1 -1
- package/out/tools/viz/render-map.d.ts +3 -6
- package/out/tools/viz/render-map.d.ts.map +1 -1
- package/out/tools/viz/render-map.js +9 -19
- package/out/tools/viz/render-map.js.map +1 -1
- package/out/tools/viz/render.d.ts +4 -9
- package/out/tools/viz/render.d.ts.map +1 -1
- package/out/tools/viz/render.js +24 -39
- package/out/tools/viz/render.js.map +1 -1
- package/out/tools/viz/source-provenance-map.d.ts +4 -24
- package/out/tools/viz/source-provenance-map.d.ts.map +1 -1
- package/out/tools/viz/source-provenance-map.js +12 -32
- package/out/tools/viz/source-provenance-map.js.map +1 -1
- package/out/tools/viz/yardstick-figure.d.ts +2 -2
- package/out/tools/viz/yardstick-figure.d.ts.map +1 -1
- package/out/tools/viz/yardstick-figure.js +5 -4
- package/out/tools/viz/yardstick-figure.js.map +1 -1
- package/out/types.d.ts +11 -1
- package/out/types.d.ts.map +1 -1
- package/out/types.js.map +1 -1
- package/package.json +180 -11
- package/tools/gold-set-sample.ts +0 -252
- package/tools/index.ts +0 -36
- package/tools/nppes-dedup-benchmark.ts +0 -1180
- package/tools/shared.ts +0 -160
- package/tools/train-cross-gbt.ts +0 -358
- package/tools/train-org-cross-gbt.ts +0 -329
- package/tools/viz/render.ts +0 -113
- /package/{models → lib/models}/crosssource-gbt-en-us.ts +0 -0
- /package/{models → lib/models}/dedup-gbt-en-us.ts +0 -0
- /package/{models → lib/models}/org-crosssource-gbt-en-us.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"yardstick-figure.js","sourceRoot":"","sources":["../../../tools/viz/yardstick-figure.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,EAAE,
|
|
1
|
+
{"version":3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9S,CAAA;IAED,IAAI,CAAC,QAAQ,CAAC,CAAA;IAEd,MAAM,kBAAkB,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,CAAA;IAC7C,MAAM,EAAE,CAAC,aAAa,GAAG,EAAE,CAAC,CAAA;IAE5B,MAAM,EAAE,CACP,iBAAiB,EAAE,CAAC,GAAI,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,GAAI,CAAC,CAAC,CAAC,eAAe,EAAE,CAAC,GAAI,CAAC,CAAC,CAAC,YAAY,EAAE,CAAC,GAAI,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,GAAI,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,GAAI,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAC/I,CAAA;IAED,MAAM,EAAE,CAAC,iBAAiB,SAAS,CAAC,GAAI,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAA;IAEvD,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,CAAA;AACvB,CAAC"}
|
package/out/types.d.ts
CHANGED
|
@@ -79,7 +79,7 @@ export interface ResolvedEntity {
|
|
|
79
79
|
export type ReconciliationBucket = "enrolled" | "eligible-not-enrolled" | "funded-not-eligible";
|
|
80
80
|
export interface EntityGeoData {
|
|
81
81
|
entityID: string;
|
|
82
|
-
|
|
82
|
+
sourceIDs?: string[];
|
|
83
83
|
recordCount?: number;
|
|
84
84
|
cohesion?: number | null;
|
|
85
85
|
sources: string[];
|
|
@@ -89,4 +89,14 @@ export interface EntityGeoData {
|
|
|
89
89
|
geocodeTier?: ResolutionTier | null;
|
|
90
90
|
bucket?: ReconciliationBucket;
|
|
91
91
|
}
|
|
92
|
+
/**
|
|
93
|
+
* Feature properties the map renderer consumes — {@link EntityGeoData} with every field optional, plus an unconstrained
|
|
94
|
+
* `bucket`. The renderer assigns a color per DISTINCT bucket value in first-seen order and builds its legend from that
|
|
95
|
+
* set, so a bucket is any categorical label, not only a {@link ReconciliationBucket}; and a collection assembled from
|
|
96
|
+
* something other than resolved entities (raw address points, links read back from a file) carries no entity id or
|
|
97
|
+
* display name.
|
|
98
|
+
*/
|
|
99
|
+
export type MapFeatureData = Partial<Omit<EntityGeoData, "bucket">> & {
|
|
100
|
+
bucket?: string;
|
|
101
|
+
};
|
|
92
102
|
//# sourceMappingURL=types.d.ts.map
|
package/out/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../types.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAEpG;;GAEG;AACH,MAAM,WAAW,YAAY;IAC5B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IACV;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB;;OAEG;IACH,IAAI,CAAC,EAAE,UAAU,GAAG,IAAI,CAAA;IACxB;;OAEG;IACH,YAAY,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAA;IACtC;;OAEG;IACH,OAAO,CAAC,EAAE,aAAa,GAAG,IAAI,CAAA;IAC9B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACnC;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC9B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IACV;;OAEG;IACH,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB;;OAEG;IACH,cAAc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AE,QAAQ,CAAC,CAAC,GAAG;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,CAAA"}
|
package/out/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../types.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../lib/types.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;;AAgGH,YAAY"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mailwoman/registry",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.3.0",
|
|
4
4
|
"description": "The geocode-first record-matching application: resolve messy contact/organization records into canonical, geocoded entities (block → score → cluster) and export them as GeoJSON for spatial analysis. The clinic-funding use case mailwoman was built for.",
|
|
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": "registry"
|
|
9
|
+
"directory": "packages/registry"
|
|
10
10
|
},
|
|
11
11
|
"files": [
|
|
12
12
|
"out/**/*.js",
|
|
@@ -20,30 +20,114 @@
|
|
|
20
20
|
"!*.test.ts",
|
|
21
21
|
"!*.test.tsx",
|
|
22
22
|
"!**/*.test.ts",
|
|
23
|
-
"!**/*.test.tsx"
|
|
23
|
+
"!**/*.test.tsx",
|
|
24
|
+
"!test/**"
|
|
24
25
|
],
|
|
25
26
|
"type": "module",
|
|
27
|
+
"sideEffects": false,
|
|
28
|
+
"imports": {
|
|
29
|
+
"#index": {
|
|
30
|
+
"types": "./out/index.d.ts",
|
|
31
|
+
"node": "./out/index.js",
|
|
32
|
+
"default": "./out/index.js"
|
|
33
|
+
},
|
|
34
|
+
"#*": {
|
|
35
|
+
"types": "./out/*.d.ts",
|
|
36
|
+
"node": "./out/*.js",
|
|
37
|
+
"default": "./out/*.js"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
26
40
|
"exports": {
|
|
27
41
|
"./package.json": "./package.json",
|
|
28
42
|
".": {
|
|
29
43
|
"types": "./out/index.d.ts",
|
|
44
|
+
"node": "./out/index.js",
|
|
30
45
|
"default": "./out/index.js"
|
|
31
46
|
},
|
|
32
47
|
"./resolve": {
|
|
33
48
|
"types": "./out/resolve.d.ts",
|
|
49
|
+
"node": "./out/resolve.js",
|
|
34
50
|
"default": "./out/resolve.js"
|
|
35
51
|
},
|
|
36
52
|
"./geojson": {
|
|
37
53
|
"types": "./out/geojson.d.ts",
|
|
54
|
+
"node": "./out/geojson.js",
|
|
38
55
|
"default": "./out/geojson.js"
|
|
39
56
|
},
|
|
40
57
|
"./ingest": {
|
|
41
58
|
"types": "./out/ingest.d.ts",
|
|
59
|
+
"node": "./out/ingest.js",
|
|
42
60
|
"default": "./out/ingest.js"
|
|
43
61
|
},
|
|
44
62
|
"./tools": {
|
|
45
63
|
"types": "./out/tools/index.d.ts",
|
|
64
|
+
"node": "./out/tools/index.js",
|
|
46
65
|
"default": "./out/tools/index.js"
|
|
66
|
+
},
|
|
67
|
+
"./address-key": {
|
|
68
|
+
"types": "./out/address-key.d.ts",
|
|
69
|
+
"node": "./out/address-key.js",
|
|
70
|
+
"default": "./out/address-key.js"
|
|
71
|
+
},
|
|
72
|
+
"./types": {
|
|
73
|
+
"types": "./out/types.d.ts",
|
|
74
|
+
"node": "./out/types.js",
|
|
75
|
+
"default": "./out/types.js"
|
|
76
|
+
},
|
|
77
|
+
"./geocode-handler": {
|
|
78
|
+
"types": "./out/geocode-handler.d.ts",
|
|
79
|
+
"node": "./out/geocode-handler.js",
|
|
80
|
+
"default": "./out/geocode-handler.js"
|
|
81
|
+
},
|
|
82
|
+
"./learned-scorer": {
|
|
83
|
+
"types": "./out/learned-scorer.d.ts",
|
|
84
|
+
"node": "./out/learned-scorer.js",
|
|
85
|
+
"default": "./out/learned-scorer.js"
|
|
86
|
+
},
|
|
87
|
+
"./map-html": {
|
|
88
|
+
"types": "./out/map-html.d.ts",
|
|
89
|
+
"node": "./out/map-html.js",
|
|
90
|
+
"default": "./out/map-html.js"
|
|
91
|
+
},
|
|
92
|
+
"./reconcile": {
|
|
93
|
+
"types": "./out/reconcile.d.ts",
|
|
94
|
+
"node": "./out/reconcile.js",
|
|
95
|
+
"default": "./out/reconcile.js"
|
|
96
|
+
},
|
|
97
|
+
"./tools/nppes/org-name": {
|
|
98
|
+
"types": "./out/tools/nppes/org-name.d.ts",
|
|
99
|
+
"node": "./out/tools/nppes/org-name.js",
|
|
100
|
+
"default": "./out/tools/nppes/org-name.js"
|
|
101
|
+
},
|
|
102
|
+
"./tools/nppes/overmerge-packet": {
|
|
103
|
+
"types": "./out/tools/nppes/overmerge-packet.d.ts",
|
|
104
|
+
"node": "./out/tools/nppes/overmerge-packet.js",
|
|
105
|
+
"default": "./out/tools/nppes/overmerge-packet.js"
|
|
106
|
+
},
|
|
107
|
+
"./tools/nppes/report": {
|
|
108
|
+
"types": "./out/tools/nppes/report.d.ts",
|
|
109
|
+
"node": "./out/tools/nppes/report.js",
|
|
110
|
+
"default": "./out/tools/nppes/report.js"
|
|
111
|
+
},
|
|
112
|
+
"./tools/nppes/sample": {
|
|
113
|
+
"types": "./out/tools/nppes/sample.d.ts",
|
|
114
|
+
"node": "./out/tools/nppes/sample.js",
|
|
115
|
+
"default": "./out/tools/nppes/sample.js"
|
|
116
|
+
},
|
|
117
|
+
"./tools/nppes/scoring": {
|
|
118
|
+
"types": "./out/tools/nppes/scoring.d.ts",
|
|
119
|
+
"node": "./out/tools/nppes/scoring.js",
|
|
120
|
+
"default": "./out/tools/nppes/scoring.js"
|
|
121
|
+
},
|
|
122
|
+
"./tools/nppes/settings": {
|
|
123
|
+
"types": "./out/tools/nppes/settings.d.ts",
|
|
124
|
+
"node": "./out/tools/nppes/settings.js",
|
|
125
|
+
"default": "./out/tools/nppes/settings.js"
|
|
126
|
+
},
|
|
127
|
+
"./tools/nppes/truth-grains": {
|
|
128
|
+
"types": "./out/tools/nppes/truth-grains.d.ts",
|
|
129
|
+
"node": "./out/tools/nppes/truth-grains.js",
|
|
130
|
+
"default": "./out/tools/nppes/truth-grains.js"
|
|
47
131
|
}
|
|
48
132
|
},
|
|
49
133
|
"publishConfig": {
|
|
@@ -52,38 +136,123 @@
|
|
|
52
136
|
"./package.json": "./package.json",
|
|
53
137
|
".": {
|
|
54
138
|
"types": "./out/index.d.ts",
|
|
139
|
+
"node": "./out/index.js",
|
|
55
140
|
"default": "./out/index.js"
|
|
56
141
|
},
|
|
57
142
|
"./resolve": {
|
|
58
143
|
"types": "./out/resolve.d.ts",
|
|
144
|
+
"node": "./out/resolve.js",
|
|
59
145
|
"default": "./out/resolve.js"
|
|
60
146
|
},
|
|
61
147
|
"./geojson": {
|
|
62
148
|
"types": "./out/geojson.d.ts",
|
|
149
|
+
"node": "./out/geojson.js",
|
|
63
150
|
"default": "./out/geojson.js"
|
|
64
151
|
},
|
|
65
152
|
"./ingest": {
|
|
66
153
|
"types": "./out/ingest.d.ts",
|
|
154
|
+
"node": "./out/ingest.js",
|
|
67
155
|
"default": "./out/ingest.js"
|
|
68
156
|
},
|
|
69
157
|
"./tools": {
|
|
70
158
|
"types": "./out/tools/index.d.ts",
|
|
159
|
+
"node": "./out/tools/index.js",
|
|
71
160
|
"default": "./out/tools/index.js"
|
|
161
|
+
},
|
|
162
|
+
"./address-key": {
|
|
163
|
+
"types": "./out/address-key.d.ts",
|
|
164
|
+
"node": "./out/address-key.js",
|
|
165
|
+
"default": "./out/address-key.js"
|
|
166
|
+
},
|
|
167
|
+
"./types": {
|
|
168
|
+
"types": "./out/types.d.ts",
|
|
169
|
+
"node": "./out/types.js",
|
|
170
|
+
"default": "./out/types.js"
|
|
171
|
+
},
|
|
172
|
+
"./geocode-handler": {
|
|
173
|
+
"types": "./out/geocode-handler.d.ts",
|
|
174
|
+
"node": "./out/geocode-handler.js",
|
|
175
|
+
"default": "./out/geocode-handler.js"
|
|
176
|
+
},
|
|
177
|
+
"./learned-scorer": {
|
|
178
|
+
"types": "./out/learned-scorer.d.ts",
|
|
179
|
+
"node": "./out/learned-scorer.js",
|
|
180
|
+
"default": "./out/learned-scorer.js"
|
|
181
|
+
},
|
|
182
|
+
"./map-html": {
|
|
183
|
+
"types": "./out/map-html.d.ts",
|
|
184
|
+
"node": "./out/map-html.js",
|
|
185
|
+
"default": "./out/map-html.js"
|
|
186
|
+
},
|
|
187
|
+
"./reconcile": {
|
|
188
|
+
"types": "./out/reconcile.d.ts",
|
|
189
|
+
"node": "./out/reconcile.js",
|
|
190
|
+
"default": "./out/reconcile.js"
|
|
191
|
+
},
|
|
192
|
+
"./tools/nppes/org-name": {
|
|
193
|
+
"types": "./out/tools/nppes/org-name.d.ts",
|
|
194
|
+
"node": "./out/tools/nppes/org-name.js",
|
|
195
|
+
"default": "./out/tools/nppes/org-name.js"
|
|
196
|
+
},
|
|
197
|
+
"./tools/nppes/overmerge-packet": {
|
|
198
|
+
"types": "./out/tools/nppes/overmerge-packet.d.ts",
|
|
199
|
+
"node": "./out/tools/nppes/overmerge-packet.js",
|
|
200
|
+
"default": "./out/tools/nppes/overmerge-packet.js"
|
|
201
|
+
},
|
|
202
|
+
"./tools/nppes/report": {
|
|
203
|
+
"types": "./out/tools/nppes/report.d.ts",
|
|
204
|
+
"node": "./out/tools/nppes/report.js",
|
|
205
|
+
"default": "./out/tools/nppes/report.js"
|
|
206
|
+
},
|
|
207
|
+
"./tools/nppes/sample": {
|
|
208
|
+
"types": "./out/tools/nppes/sample.d.ts",
|
|
209
|
+
"node": "./out/tools/nppes/sample.js",
|
|
210
|
+
"default": "./out/tools/nppes/sample.js"
|
|
211
|
+
},
|
|
212
|
+
"./tools/nppes/scoring": {
|
|
213
|
+
"types": "./out/tools/nppes/scoring.d.ts",
|
|
214
|
+
"node": "./out/tools/nppes/scoring.js",
|
|
215
|
+
"default": "./out/tools/nppes/scoring.js"
|
|
216
|
+
},
|
|
217
|
+
"./tools/nppes/settings": {
|
|
218
|
+
"types": "./out/tools/nppes/settings.d.ts",
|
|
219
|
+
"node": "./out/tools/nppes/settings.js",
|
|
220
|
+
"default": "./out/tools/nppes/settings.js"
|
|
221
|
+
},
|
|
222
|
+
"./tools/nppes/truth-grains": {
|
|
223
|
+
"types": "./out/tools/nppes/truth-grains.d.ts",
|
|
224
|
+
"node": "./out/tools/nppes/truth-grains.js",
|
|
225
|
+
"default": "./out/tools/nppes/truth-grains.js"
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
"imports": {
|
|
229
|
+
"#index": {
|
|
230
|
+
"types": "./out/index.d.ts",
|
|
231
|
+
"node": "./out/index.js",
|
|
232
|
+
"default": "./out/index.js"
|
|
233
|
+
},
|
|
234
|
+
"#*": {
|
|
235
|
+
"types": "./out/*.d.ts",
|
|
236
|
+
"node": "./out/*.js",
|
|
237
|
+
"default": "./out/*.js"
|
|
72
238
|
}
|
|
73
239
|
}
|
|
74
240
|
},
|
|
75
241
|
"dependencies": {
|
|
76
|
-
"@mailwoman/address-id": "9.
|
|
77
|
-
"@mailwoman/core": "9.
|
|
78
|
-
"@mailwoman/match": "9.
|
|
79
|
-
"@mailwoman/record": "9.
|
|
80
|
-
"@mailwoman/
|
|
242
|
+
"@mailwoman/address-id": "9.3.0",
|
|
243
|
+
"@mailwoman/core": "9.3.0",
|
|
244
|
+
"@mailwoman/match": "9.3.0",
|
|
245
|
+
"@mailwoman/record": "9.3.0",
|
|
246
|
+
"@mailwoman/resolver-wof-sqlite": "9.3.0",
|
|
247
|
+
"@mailwoman/spatial": "9.3.0",
|
|
248
|
+
"@mailwoman/sqlite": "9.3.0",
|
|
81
249
|
"@protomaps/basemaps": "^5.7.2",
|
|
82
250
|
"h3-js": "^4.5.0",
|
|
83
|
-
"spliterator": "^6.1
|
|
251
|
+
"spliterator": "^6.4.1"
|
|
84
252
|
},
|
|
85
253
|
"devDependencies": {
|
|
86
|
-
"@types/node": "
|
|
87
|
-
"
|
|
254
|
+
"@types/node": "^26.4.1",
|
|
255
|
+
"path-ts": "^2.3.0",
|
|
256
|
+
"playwright": "^1.63.0"
|
|
88
257
|
}
|
|
89
258
|
}
|
package/tools/gold-set-sample.ts
DELETED
|
@@ -1,252 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
|
-
* Gold-set P3 (#625) — sample the HARD slice for adjudication. The programmatic entity truth
|
|
7
|
-
* (`nppes-dedup-benchmark.ts`) collapses only NPPES-FLAGGED subparts (Is-Subpart + parent
|
|
8
|
-
* LBN/TIN); it can't settle the genuinely-ambiguous co-located collisions: distinct NPIs at one
|
|
9
|
-
* address with near-identical names that are NOT flagged subparts of the same parent. Those are
|
|
10
|
-
* where NPI-truth and any programmatic rule disagree — exactly the pairs a frozen adjudicated
|
|
11
|
-
* gold set must cover.
|
|
12
|
-
*
|
|
13
|
-
* This finds them (over the full TX registry, geocode-free — same machinery as `dedup-ceiling.ts`)
|
|
14
|
-
* and writes each as a JSONL row carrying BOTH records' fields (org name, address, authorized
|
|
15
|
-
* official, taxonomy, subpart/parent flags) plus the programmatic verdict, so an adjudicator
|
|
16
|
-
* (human or LLM-as-judge, flagged as such) can label "same real-world entity? yes/no" and we can
|
|
17
|
-
* MEASURE how often the programmatic truth matches judgment.
|
|
18
|
-
*
|
|
19
|
-
* Run: `mailwoman registry gold-set-sample [--cap 200000] [--state TX] [--tau 0.7] [--n 300]
|
|
20
|
-
* [--out-jsonl <path>]`
|
|
21
|
-
*/
|
|
22
|
-
|
|
23
|
-
import { writeFileSync } from "node:fs"
|
|
24
|
-
|
|
25
|
-
import { dataRootPath } from "@mailwoman/core/utils"
|
|
26
|
-
import { jaccard } from "@mailwoman/match"
|
|
27
|
-
import { addressFrequencyKey, streamRows } from "@mailwoman/registry"
|
|
28
|
-
|
|
29
|
-
import { norm } from "./shared.ts"
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Options for {@linkcode goldSetSample}.
|
|
33
|
-
*/
|
|
34
|
-
export interface GoldSetSampleOptions {
|
|
35
|
-
/**
|
|
36
|
-
* Record-matcher sources directory. Default `$MAILWOMAN_DATA_ROOT/record-matcher/sources`.
|
|
37
|
-
*/
|
|
38
|
-
sources?: string
|
|
39
|
-
/**
|
|
40
|
-
* Providers sampled from the registry. Default 200000.
|
|
41
|
-
*/
|
|
42
|
-
cap?: number
|
|
43
|
-
/**
|
|
44
|
-
* State filter. Default TX.
|
|
45
|
-
*/
|
|
46
|
-
state?: string
|
|
47
|
-
/**
|
|
48
|
-
* Org-name Jaccard collision threshold. Default 0.7.
|
|
49
|
-
*/
|
|
50
|
-
tau?: number
|
|
51
|
-
/**
|
|
52
|
-
* Adjudication sample size. Default 300.
|
|
53
|
-
*/
|
|
54
|
-
n?: number
|
|
55
|
-
/**
|
|
56
|
-
* Write the sampled pairs here as JSONL (otherwise the first 10 print to stdout).
|
|
57
|
-
*/
|
|
58
|
-
outJSONL?: string
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
const STOP = new Set([
|
|
62
|
-
"llc",
|
|
63
|
-
"inc",
|
|
64
|
-
"incorporated",
|
|
65
|
-
"corp",
|
|
66
|
-
"corporation",
|
|
67
|
-
"co",
|
|
68
|
-
"ltd",
|
|
69
|
-
"pllc",
|
|
70
|
-
"pc",
|
|
71
|
-
"pa",
|
|
72
|
-
"lp",
|
|
73
|
-
"llp",
|
|
74
|
-
"the",
|
|
75
|
-
"of",
|
|
76
|
-
"and",
|
|
77
|
-
])
|
|
78
|
-
|
|
79
|
-
function orgTokens(s: string): Set<string> {
|
|
80
|
-
return new Set(
|
|
81
|
-
s
|
|
82
|
-
.toLowerCase()
|
|
83
|
-
.replaceAll(/[^a-z0-9 ]/g, " ")
|
|
84
|
-
.split(/\s+/)
|
|
85
|
-
.filter((t) => t && !STOP.has(t))
|
|
86
|
-
)
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
const C = {
|
|
90
|
-
npi: "NPI",
|
|
91
|
-
entityType: "Entity Type Code",
|
|
92
|
-
org: "Provider Organization Name (Legal Business Name)",
|
|
93
|
-
pAddr: "Provider First Line Business Practice Location Address",
|
|
94
|
-
pCity: "Provider Business Practice Location Address City Name",
|
|
95
|
-
pState: "Provider Business Practice Location Address State Name",
|
|
96
|
-
pZip: "Provider Business Practice Location Address Postal Code",
|
|
97
|
-
authLast: "Authorized Official Last Name",
|
|
98
|
-
authFirst: "Authorized Official First Name",
|
|
99
|
-
taxonomy: "Healthcare Provider Taxonomy Code_1",
|
|
100
|
-
isSubpart: "Is Organization Subpart",
|
|
101
|
-
parentLBN: "Parent Organization LBN",
|
|
102
|
-
parentTIN: "Parent Organization TIN",
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
interface Prov {
|
|
106
|
-
npi: string
|
|
107
|
-
org: string
|
|
108
|
-
tokens: Set<string>
|
|
109
|
-
address: string
|
|
110
|
-
auth: string
|
|
111
|
-
taxonomy: string
|
|
112
|
-
subpart: boolean
|
|
113
|
-
parent: string
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
/**
|
|
117
|
-
* Gold-set P3 (#625) — sample the HARD co-located name-collision slice for adjudication.
|
|
118
|
-
*/
|
|
119
|
-
export async function goldSetSample(
|
|
120
|
-
options: GoldSetSampleOptions = {},
|
|
121
|
-
report?: (line: string) => void
|
|
122
|
-
): Promise<{ hardPairs: number; sampled: number }> {
|
|
123
|
-
const SOURCES = options.sources || dataRootPath("record-matcher", "sources")
|
|
124
|
-
const CAP = options.cap ?? 200_000
|
|
125
|
-
const STATE = (options.state || "TX").toUpperCase()
|
|
126
|
-
const TAU = options.tau ?? 0.7
|
|
127
|
-
const N = options.n ?? 300
|
|
128
|
-
const OUT = options.outJSONL || ""
|
|
129
|
-
const REGISTRY = `${SOURCES}/nppes_npi-registry_20260607.tsv`
|
|
130
|
-
|
|
131
|
-
report?.(`[A] streaming ${STATE} org providers (cap ${CAP})…`)
|
|
132
|
-
const byAddr = new Map<string, Prov[]>()
|
|
133
|
-
let kept = 0
|
|
134
|
-
|
|
135
|
-
for await (const r of streamRows(REGISTRY)) {
|
|
136
|
-
if (norm(r[C.entityType]) !== "2") continue
|
|
137
|
-
|
|
138
|
-
if (norm(r[C.pState]).toUpperCase() !== STATE) continue
|
|
139
|
-
const org = norm(r[C.org])
|
|
140
|
-
const line1 = norm(r[C.pAddr])
|
|
141
|
-
|
|
142
|
-
if (!org || !line1) continue
|
|
143
|
-
const address = [line1, norm(r[C.pCity]), STATE, norm(r[C.pZip])].filter(Boolean).join(", ")
|
|
144
|
-
const addrKey = addressFrequencyKey(address)
|
|
145
|
-
|
|
146
|
-
if (!addrKey) continue
|
|
147
|
-
|
|
148
|
-
const p: Prov = {
|
|
149
|
-
npi: norm(r[C.npi]),
|
|
150
|
-
org,
|
|
151
|
-
tokens: orgTokens(org),
|
|
152
|
-
address,
|
|
153
|
-
auth: `${norm(r[C.authFirst])} ${norm(r[C.authLast])}`.toLowerCase().trim(),
|
|
154
|
-
taxonomy: norm(r[C.taxonomy]),
|
|
155
|
-
subpart: norm(r[C.isSubpart]).toUpperCase() === "Y",
|
|
156
|
-
parent: `${norm(r[C.parentLBN])}|${norm(r[C.parentTIN])}`.toLowerCase(),
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
if (!byAddr.has(addrKey)) {
|
|
160
|
-
byAddr.set(addrKey, [])
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
byAddr.get(addrKey)!.push(p)
|
|
164
|
-
|
|
165
|
-
kept++
|
|
166
|
-
|
|
167
|
-
if (kept >= CAP) break
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
report?.(` ${kept} providers at ${byAddr.size} addresses`)
|
|
171
|
-
|
|
172
|
-
// Hard pairs: co-located, name-similar (≥τ), DISTINCT NPIs that programmatic truth can't confidently
|
|
173
|
-
// collapse (NOT subparts of the same parent). Tag the programmatic verdict so adjudication can grade it.
|
|
174
|
-
interface HardPair {
|
|
175
|
-
npiA: string
|
|
176
|
-
npiB: string
|
|
177
|
-
orgA: string
|
|
178
|
-
orgB: string
|
|
179
|
-
address: string
|
|
180
|
-
nameJaccard: number
|
|
181
|
-
sameAuthorizedOfficial: boolean
|
|
182
|
-
sameTaxonomy: boolean
|
|
183
|
-
bothSubpartSameParent: boolean
|
|
184
|
-
programmaticVerdict: "same-entity" | "distinct"
|
|
185
|
-
adjudication: null // ← to be filled: "same-entity" | "distinct"
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
const hard: HardPair[] = []
|
|
189
|
-
|
|
190
|
-
for (const provs of byAddr.values()) {
|
|
191
|
-
const distinct = new Map<string, Prov>()
|
|
192
|
-
|
|
193
|
-
for (const p of provs)
|
|
194
|
-
if (!distinct.has(p.npi)) {
|
|
195
|
-
distinct.set(p.npi, p)
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
const list = [...distinct.values()]
|
|
199
|
-
|
|
200
|
-
if (list.length < 2) continue
|
|
201
|
-
|
|
202
|
-
for (let i = 0; i < list.length; i++) {
|
|
203
|
-
for (let j = i + 1; j < list.length; j++) {
|
|
204
|
-
const a = list[i]!
|
|
205
|
-
const b = list[j]!
|
|
206
|
-
const sim = jaccard(a.tokens, b.tokens)
|
|
207
|
-
|
|
208
|
-
if (sim < TAU) continue
|
|
209
|
-
const sameParent = a.subpart && b.subpart && a.parent === b.parent && a.parent !== "|"
|
|
210
|
-
|
|
211
|
-
if (sameParent) continue // programmatic truth already collapses these — not the hard slice
|
|
212
|
-
const sameAuth = a.auth !== "" && a.auth === b.auth
|
|
213
|
-
const sameTax = a.taxonomy !== "" && a.taxonomy === b.taxonomy
|
|
214
|
-
|
|
215
|
-
hard.push({
|
|
216
|
-
npiA: a.npi,
|
|
217
|
-
npiB: b.npi,
|
|
218
|
-
orgA: a.org,
|
|
219
|
-
orgB: b.org,
|
|
220
|
-
address: a.address,
|
|
221
|
-
nameJaccard: Number(sim.toFixed(3)),
|
|
222
|
-
sameAuthorizedOfficial: sameAuth,
|
|
223
|
-
sameTaxonomy: sameTax,
|
|
224
|
-
bothSubpartSameParent: false,
|
|
225
|
-
// Programmatic heuristic verdict (what an entity-level rule WOULD say, beyond the flagged
|
|
226
|
-
// subparts): same authorized official ⇒ likely one org; different official + different
|
|
227
|
-
// specialty ⇒ likely distinct. The whole point is to ADJUDICATE whether this is right.
|
|
228
|
-
programmaticVerdict: sameAuth ? "same-entity" : "distinct",
|
|
229
|
-
adjudication: null,
|
|
230
|
-
})
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
report?.(` ${hard.length} hard co-located name-collision pairs (non-flagged-subpart)`)
|
|
236
|
-
|
|
237
|
-
// Deterministic spread sample of N (stride, not head — avoid file-order bias, the dedup-ceiling lesson).
|
|
238
|
-
const stride = Math.max(1, Math.floor(hard.length / N))
|
|
239
|
-
const sample = hard.filter((_, i) => i % stride === 0).slice(0, N)
|
|
240
|
-
report?.(` sampling ${sample.length} (stride ${stride}) for adjudication`)
|
|
241
|
-
|
|
242
|
-
if (OUT) {
|
|
243
|
-
writeFileSync(OUT, sample.map((p) => JSON.stringify(p)).join("\n") + "\n")
|
|
244
|
-
report?.(`[written] ${OUT}`)
|
|
245
|
-
} else {
|
|
246
|
-
for (const p of sample.slice(0, 10)) {
|
|
247
|
-
console.log(JSON.stringify(p))
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
return { hardPairs: hard.length, sampled: sample.length }
|
|
252
|
-
}
|
package/tools/index.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
|
-
* Registry operator tools — the `run()`-style modules behind `mailwoman registry …` commands. No
|
|
7
|
-
* argv, no `process.exit`: commands own parsing, rendering, and exit codes (see the 2026-07-09
|
|
8
|
-
* scripts→Pastel spec). The heavy geocoder is INJECTED via {@link EvalGeocoderFactory} — the
|
|
9
|
-
* registry package never imports the runtime (`mailwoman` depends on this package, so the reverse
|
|
10
|
-
* import would cycle). Heavy render deps (playwright/Chromium) are lazy-imported inside their
|
|
11
|
-
* entry fns.
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
export * from "./coverage-reconciliation.ts"
|
|
15
|
-
export * from "./cross-dataset-correlation.ts"
|
|
16
|
-
export * from "./cross-source-threshold-sweep.ts"
|
|
17
|
-
export * from "./dedup-ceiling.ts"
|
|
18
|
-
export * from "./eval-geocoder.ts"
|
|
19
|
-
export * from "./geocoder-namesake-probe.ts"
|
|
20
|
-
export * from "./geocoder-vs-provided-coords.ts"
|
|
21
|
-
export * from "./gold-set-sample.ts"
|
|
22
|
-
export * from "./learned-scorer-clustering-eval.ts"
|
|
23
|
-
export * from "./learned-scorer-crossstate-eval.ts"
|
|
24
|
-
export * from "./learned-scorer-eval.ts"
|
|
25
|
-
export * from "./matcher-scale.ts"
|
|
26
|
-
export * from "./nppes-dedup-benchmark.ts"
|
|
27
|
-
export * from "./train-cross-gbt.ts"
|
|
28
|
-
export * from "./train-gbt.ts"
|
|
29
|
-
export * from "./train-org-cross-gbt.ts"
|
|
30
|
-
export * from "./txhhsc-to-oarow.ts"
|
|
31
|
-
export * from "./viz/cross-dataset-map.ts"
|
|
32
|
-
export * from "./viz/geocode-first-surface.ts"
|
|
33
|
-
export * from "./viz/render-map.ts"
|
|
34
|
-
export * from "./viz/render.ts"
|
|
35
|
-
export * from "./viz/source-provenance-map.ts"
|
|
36
|
-
export * from "./viz/yardstick-figure.ts"
|