@mailwoman/core 9.3.0 → 10.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/lib/coarse-placer/tools/{build-dataset.ts → build/dataset.ts} +2 -1
- package/lib/coarse-placer/tools/{build-outlier-latin.ts → build/outlier/latin.ts} +4 -3
- package/lib/coarse-placer/tools/{eval-openset.ts → eval/openset.ts} +11 -7
- package/lib/coarse-placer/tools/{eval-quant-compare.ts → eval/quant-compare.ts} +2 -1
- package/lib/coarse-placer/tools/eval.ts +2 -2
- package/lib/coarse-placer/tools/index.ts +7 -7
- package/lib/coarse-placer/tools/train.ts +4 -6
- package/lib/decoder/build-tree.ts +2 -1
- package/lib/decoder/containment.ts +2 -1
- package/lib/decoder/index.ts +5 -5
- package/lib/decoder/parse-diff.ts +1 -1
- package/lib/decoder/proposals-to-tree.ts +3 -1
- package/lib/decoder/{serialize-json.ts → serialize/json.ts} +3 -2
- package/lib/decoder/{serialize-tuples.ts → serialize/tuples.ts} +2 -1
- package/lib/decoder/{tree-shape.ts → tree/shape.ts} +7 -10
- package/lib/decoder/types.ts +1 -3
- package/lib/decoder/unknown-spans.ts +1 -1
- package/lib/decoder/validate-tree.ts +2 -1
- package/lib/fs/readers/stat.ts +244 -0
- package/lib/fs/readers.ts +38 -270
- package/lib/fs/streams.ts +58 -0
- package/lib/fs/writers.ts +5 -5
- package/lib/fs/zip.ts +64 -8
- package/lib/git.ts +26 -0
- package/lib/layers/coverage.ts +3 -2
- package/lib/layers/manifest.ts +2 -4
- package/lib/layers/schema.ts +0 -1
- package/lib/license/configured.ts +2 -2
- package/lib/license/docs-site.ts +1 -15
- package/lib/license/index.ts +2 -2
- package/lib/license/obligations.ts +4 -1
- package/lib/license/stamp.ts +1 -1
- package/lib/license/status.ts +1 -1
- package/lib/locale/locale.ts +2 -1
- package/lib/locale/registry.ts +2 -1
- package/lib/module/resolve-from.ts +16 -4
- package/lib/objects.ts +9 -1
- package/lib/overture-pins.ts +24 -0
- package/lib/pipeline/client-result.ts +82 -0
- package/lib/pipeline/index.ts +1 -1
- package/lib/pipeline/preferences.ts +13 -0
- package/lib/pipeline/result.ts +84 -0
- package/lib/pipeline/runtime-pipeline.ts +10 -17
- package/lib/pipeline/types.ts +28 -88
- package/lib/policy/defaults.ts +2 -1
- package/lib/policy/policy.ts +3 -1
- package/lib/policy/registry.ts +3 -1
- package/lib/process.ts +3 -1
- package/lib/resolver/authoritative-provider.ts +1 -1
- package/lib/resolver/index.ts +1 -8
- package/lib/resolver/lookup-types.ts +8 -0
- package/lib/resolver/synthetic-id-ranges.ts +83 -0
- package/lib/resolver/types.ts +2 -9
- package/lib/resources/whosonfirst/placetypes/Placetype.ts +7 -6
- package/lib/scripting/arguments.ts +34 -0
- package/lib/scripting/utils/index.ts +1 -1
- package/lib/strings/case.ts +13 -2
- package/lib/strings/format.ts +15 -0
- package/lib/tokenization/Graph.ts +3 -4
- package/lib/tools/{download-libpostal-resources.ts → download/libpostal-resources.ts} +3 -2
- package/lib/tools/generate-language-types.ts +3 -4
- package/lib/tools/index.ts +2 -2
- package/lib/types/classifier.ts +2 -1
- package/lib/types/index.ts +0 -1
- package/lib/types/mapping.ts +2 -1
- package/lib/workspaces.ts +104 -0
- package/out/api/APIClient.d.ts.map +1 -1
- package/out/api/arcgis.d.ts.map +1 -1
- package/out/api/defaults.d.ts.map +1 -1
- package/out/api/headless.d.ts.map +1 -1
- package/out/api/ogc.d.ts.map +1 -1
- package/out/api/paced-client.js.map +1 -1
- package/out/api/pacer.d.ts.map +1 -1
- package/out/api/pacer.js.map +1 -1
- package/out/api/responses.d.ts.map +1 -1
- package/out/api/{test-clocks.d.ts → test/clocks.d.ts} +1 -1
- package/out/api/test/clocks.d.ts.map +1 -0
- package/out/api/{test-clocks.js → test/clocks.js} +1 -1
- package/out/api/test/clocks.js.map +1 -0
- package/out/api/{test-transport.d.ts → test/transport.d.ts} +1 -1
- package/out/api/test/transport.d.ts.map +1 -0
- package/out/api/{test-transport.js → test/transport.js} +1 -1
- package/out/api/test/transport.js.map +1 -0
- package/out/coarse-placer/coarse-placer.d.ts.map +1 -1
- package/out/coarse-placer/coarse-placer.js.map +1 -1
- package/out/coarse-placer/featurize.d.ts.map +1 -1
- package/out/coarse-placer/tools/{build-dataset.d.ts → build/dataset.d.ts} +1 -1
- package/out/coarse-placer/tools/build/dataset.d.ts.map +1 -0
- package/out/coarse-placer/tools/{build-dataset.js → build/dataset.js} +3 -2
- package/out/coarse-placer/tools/build/dataset.js.map +1 -0
- package/out/coarse-placer/tools/{build-outlier-exposure.d.ts → build/outlier/exposure.d.ts} +1 -1
- package/out/coarse-placer/tools/build/outlier/exposure.d.ts.map +1 -0
- package/out/coarse-placer/tools/{build-outlier-exposure.js → build/outlier/exposure.js} +1 -1
- package/out/coarse-placer/tools/build/outlier/exposure.js.map +1 -0
- package/out/coarse-placer/tools/{build-outlier-latin.d.ts → build/outlier/latin.d.ts} +3 -3
- package/out/coarse-placer/tools/build/outlier/latin.d.ts.map +1 -0
- package/out/coarse-placer/tools/{build-outlier-latin.js → build/outlier/latin.js} +4 -3
- package/out/coarse-placer/tools/build/outlier/latin.js.map +1 -0
- package/out/coarse-placer/tools/{build-outlier-oa.d.ts → build/outlier/oa.d.ts} +1 -1
- package/out/coarse-placer/tools/build/outlier/oa.d.ts.map +1 -0
- package/out/coarse-placer/tools/{build-outlier-oa.js → build/outlier/oa.js} +1 -1
- package/out/coarse-placer/tools/build/outlier/oa.js.map +1 -0
- package/out/coarse-placer/tools/country-sets.d.ts.map +1 -1
- package/out/coarse-placer/tools/{eval-latin-offmap.d.ts → eval/latin-offmap.d.ts} +1 -1
- package/out/coarse-placer/tools/eval/latin-offmap.d.ts.map +1 -0
- package/out/coarse-placer/tools/{eval-latin-offmap.js → eval/latin-offmap.js} +1 -1
- package/out/coarse-placer/tools/eval/latin-offmap.js.map +1 -0
- package/out/coarse-placer/tools/{eval-openset.d.ts → eval/openset.d.ts} +1 -1
- package/out/coarse-placer/tools/eval/openset.d.ts.map +1 -0
- package/out/coarse-placer/tools/{eval-openset.js → eval/openset.js} +10 -7
- package/out/coarse-placer/tools/eval/openset.js.map +1 -0
- package/out/coarse-placer/tools/{eval-quant-compare.d.ts → eval/quant-compare.d.ts} +1 -1
- package/out/coarse-placer/tools/eval/quant-compare.d.ts.map +1 -0
- package/out/coarse-placer/tools/{eval-quant-compare.js → eval/quant-compare.js} +2 -2
- package/out/coarse-placer/tools/eval/quant-compare.js.map +1 -0
- package/out/coarse-placer/tools/eval.js +2 -2
- package/out/coarse-placer/tools/eval.js.map +1 -1
- package/out/coarse-placer/tools/index.d.ts +7 -7
- package/out/coarse-placer/tools/index.js +7 -7
- package/out/coarse-placer/tools/probe-frontier.js.map +1 -1
- package/out/coarse-placer/tools/quantize.js.map +1 -1
- package/out/coarse-placer/tools/train.d.ts.map +1 -1
- package/out/coarse-placer/tools/train.js +2 -3
- package/out/coarse-placer/tools/train.js.map +1 -1
- package/out/data-root.js.map +1 -1
- package/out/decoder/build-tree.d.ts.map +1 -1
- package/out/decoder/build-tree.js.map +1 -1
- package/out/decoder/containment.d.ts +2 -2
- package/out/decoder/containment.d.ts.map +1 -1
- package/out/decoder/containment.js.map +1 -1
- package/out/decoder/index.d.ts +5 -5
- package/out/decoder/index.js +5 -5
- package/out/decoder/parse-diff.js +1 -1
- package/out/decoder/parse-diff.js.map +1 -1
- package/out/decoder/proposals-to-tree.d.ts +2 -1
- package/out/decoder/proposals-to-tree.d.ts.map +1 -1
- package/out/decoder/proposals-to-tree.js.map +1 -1
- package/out/decoder/{serialize-json.d.ts → serialize/json.d.ts} +2 -2
- package/out/decoder/serialize/json.d.ts.map +1 -0
- package/out/decoder/{serialize-json.js → serialize/json.js} +2 -2
- package/out/decoder/serialize/json.js.map +1 -0
- package/out/decoder/{serialize-tuples.d.ts → serialize/tuples.d.ts} +2 -2
- package/out/decoder/serialize/tuples.d.ts.map +1 -0
- package/out/decoder/{serialize-tuples.js → serialize/tuples.js} +1 -1
- package/out/decoder/serialize/tuples.js.map +1 -0
- package/out/decoder/{serialize-xml.d.ts → serialize/xml.d.ts} +1 -1
- package/out/decoder/serialize/xml.d.ts.map +1 -0
- package/out/decoder/{serialize-xml.js → serialize/xml.js} +1 -1
- package/out/decoder/serialize/xml.js.map +1 -0
- package/out/decoder/{tree-shape.d.ts → tree/shape.d.ts} +5 -9
- package/out/decoder/tree/shape.d.ts.map +1 -0
- package/out/decoder/{tree-shape.js → tree/shape.js} +6 -10
- package/out/decoder/tree/shape.js.map +1 -0
- package/out/decoder/{tree-walk.d.ts → tree/walk.d.ts} +1 -1
- package/out/decoder/tree/walk.d.ts.map +1 -0
- package/out/decoder/{tree-walk.js → tree/walk.js} +1 -1
- package/out/decoder/tree/walk.js.map +1 -0
- package/out/decoder/types.d.ts +1 -2
- package/out/decoder/types.d.ts.map +1 -1
- package/out/decoder/types.js +1 -1
- package/out/decoder/types.js.map +1 -1
- package/out/decoder/unknown-spans.js +1 -1
- package/out/decoder/validate-tree.d.ts +1 -1
- package/out/decoder/validate-tree.d.ts.map +1 -1
- package/out/decoder/validate-tree.js.map +1 -1
- package/out/env/index.d.ts +1 -1
- package/out/env/schema.d.ts +4 -4
- package/out/errors/schema.d.ts.map +1 -1
- package/out/errors/schema.js.map +1 -1
- package/out/fs/formatters.d.ts.map +1 -1
- package/out/fs/formatters.js.map +1 -1
- package/out/fs/readers/stat.d.ts +126 -0
- package/out/fs/readers/stat.d.ts.map +1 -0
- package/out/fs/readers/stat.js +202 -0
- package/out/fs/readers/stat.js.map +1 -0
- package/out/fs/readers.d.ts +16 -149
- package/out/fs/readers.d.ts.map +1 -1
- package/out/fs/readers.js +19 -230
- package/out/fs/readers.js.map +1 -1
- package/out/fs/streams.d.ts +33 -0
- package/out/fs/streams.d.ts.map +1 -1
- package/out/fs/streams.js +49 -0
- package/out/fs/streams.js.map +1 -1
- package/out/fs/writers.d.ts +5 -5
- package/out/fs/writers.js +5 -5
- package/out/fs/zip.d.ts +21 -2
- package/out/fs/zip.d.ts.map +1 -1
- package/out/fs/zip.js +36 -8
- package/out/fs/zip.js.map +1 -1
- package/out/git.d.ts +15 -0
- package/out/git.d.ts.map +1 -1
- package/out/git.js +22 -0
- package/out/git.js.map +1 -1
- package/out/html/document.js.map +1 -1
- package/out/json.d.ts.map +1 -1
- package/out/layers/coverage.d.ts +1 -1
- package/out/layers/coverage.d.ts.map +1 -1
- package/out/layers/coverage.js +1 -2
- package/out/layers/coverage.js.map +1 -1
- package/out/layers/manifest.d.ts +2 -2
- package/out/layers/manifest.d.ts.map +1 -1
- package/out/layers/manifest.js +2 -3
- package/out/layers/manifest.js.map +1 -1
- package/out/layers/schema.d.ts +0 -1
- package/out/layers/schema.d.ts.map +1 -1
- package/out/layers/schema.js +0 -3
- package/out/layers/schema.js.map +1 -1
- package/out/license/configured.d.ts +1 -1
- package/out/license/configured.d.ts.map +1 -1
- package/out/license/configured.js +2 -2
- package/out/license/configured.js.map +1 -1
- package/out/license/docs-site.d.ts +0 -6
- package/out/license/docs-site.d.ts.map +1 -1
- package/out/license/docs-site.js +1 -12
- package/out/license/docs-site.js.map +1 -1
- package/out/license/index.d.ts +2 -2
- package/out/license/index.d.ts.map +1 -1
- package/out/license/index.js +2 -2
- package/out/license/index.js.map +1 -1
- package/out/license/{key-file.d.ts → key/file.d.ts} +1 -1
- package/out/license/key/file.d.ts.map +1 -0
- package/out/license/{key-file.js → key/file.js} +1 -1
- package/out/license/key/file.js.map +1 -0
- package/out/license/{key.d.ts → key/index.d.ts} +1 -1
- package/out/license/key/index.d.ts.map +1 -0
- package/out/license/{key.js → key/index.js} +1 -1
- package/out/license/key/index.js.map +1 -0
- package/out/license/obligations.d.ts +1 -1
- package/out/license/obligations.d.ts.map +1 -1
- package/out/license/obligations.js +3 -0
- package/out/license/obligations.js.map +1 -1
- package/out/license/publication.js.map +1 -1
- package/out/license/register.d.ts.map +1 -1
- package/out/license/stamp.d.ts +1 -1
- package/out/license/stamp.d.ts.map +1 -1
- package/out/license/status.js +1 -1
- package/out/license/status.js.map +1 -1
- package/out/locale/locale.d.ts +1 -1
- package/out/locale/locale.d.ts.map +1 -1
- package/out/locale/registry.d.ts.map +1 -1
- package/out/locale/registry.js +1 -1
- package/out/locale/registry.js.map +1 -1
- package/out/locale/zh-cn-units.d.ts.map +1 -1
- package/out/logging/shared.d.ts.map +1 -1
- package/out/module/resolve-from.d.ts +12 -3
- package/out/module/resolve-from.d.ts.map +1 -1
- package/out/module/resolve-from.js.map +1 -1
- package/out/module/resolvers.js.map +1 -1
- package/out/objects.d.ts +6 -0
- package/out/objects.d.ts.map +1 -1
- package/out/objects.js +8 -1
- package/out/objects.js.map +1 -1
- package/out/overture-pins.d.ts +24 -0
- package/out/overture-pins.d.ts.map +1 -0
- package/out/overture-pins.js +24 -0
- package/out/overture-pins.js.map +1 -0
- package/out/paths.js.map +1 -1
- package/out/pipeline/client-result.d.ts +84 -0
- package/out/pipeline/client-result.d.ts.map +1 -0
- package/out/pipeline/client-result.js +12 -0
- package/out/pipeline/client-result.js.map +1 -0
- package/out/pipeline/index.d.ts +1 -1
- package/out/pipeline/index.d.ts.map +1 -1
- package/out/pipeline/preferences.d.ts +13 -0
- package/out/pipeline/preferences.d.ts.map +1 -0
- package/out/pipeline/preferences.js +7 -0
- package/out/pipeline/preferences.js.map +1 -0
- package/out/pipeline/result.d.ts +72 -0
- package/out/pipeline/result.d.ts.map +1 -0
- package/out/pipeline/result.js +7 -0
- package/out/pipeline/result.js.map +1 -0
- package/out/pipeline/runtime-pipeline.d.ts.map +1 -1
- package/out/pipeline/runtime-pipeline.js +7 -13
- package/out/pipeline/runtime-pipeline.js.map +1 -1
- package/out/pipeline/span-proposer.js.map +1 -1
- package/out/pipeline/types.d.ts +23 -85
- package/out/pipeline/types.d.ts.map +1 -1
- package/out/pipeline/types.js +2 -0
- package/out/pipeline/types.js.map +1 -1
- package/out/policy/defaults.d.ts +1 -1
- package/out/policy/defaults.d.ts.map +1 -1
- package/out/policy/defaults.js +1 -1
- package/out/policy/defaults.js.map +1 -1
- package/out/policy/policy.d.ts +2 -1
- package/out/policy/policy.d.ts.map +1 -1
- package/out/policy/proposal-collection.js.map +1 -1
- package/out/policy/registry.d.ts +2 -1
- package/out/policy/registry.d.ts.map +1 -1
- package/out/policy/registry.js.map +1 -1
- package/out/process.d.ts +2 -2
- package/out/process.d.ts.map +1 -1
- package/out/process.js.map +1 -1
- package/out/random.d.ts.map +1 -1
- package/out/release-config.js.map +1 -1
- package/out/resolver/authoritative-provider.d.ts +1 -1
- package/out/resolver/authoritative-provider.d.ts.map +1 -1
- package/out/resolver/fixture-authoritative-provider.js.map +1 -1
- package/out/resolver/index.d.ts +2 -2
- package/out/resolver/index.d.ts.map +1 -1
- package/out/resolver/index.js +1 -1
- package/out/resolver/index.js.map +1 -1
- package/out/resolver/lookup-types.d.ts +8 -0
- package/out/resolver/lookup-types.d.ts.map +1 -1
- package/out/resolver/synthetic-id-ranges.d.ts +66 -0
- package/out/resolver/synthetic-id-ranges.d.ts.map +1 -0
- package/out/resolver/synthetic-id-ranges.js +73 -0
- package/out/resolver/synthetic-id-ranges.js.map +1 -0
- package/out/resolver/types.d.ts +1 -2
- package/out/resolver/types.d.ts.map +1 -1
- package/out/resolver/types.js +0 -1
- package/out/resolver/types.js.map +1 -1
- package/out/resources/languages/index.js.map +1 -1
- package/out/resources/languages/types.gen.d.ts.map +1 -1
- package/out/resources/locale.d.ts.map +1 -1
- package/out/resources/set.d.ts.map +1 -1
- package/out/resources/set.js.map +1 -1
- package/out/resources/whosonfirst/PlacetypeDataSource.d.ts +1 -1
- package/out/resources/whosonfirst/PlacetypeDataSource.d.ts.map +1 -1
- package/out/resources/whosonfirst/placetypes/Placetype.d.ts.map +1 -1
- package/out/resources/whosonfirst/placetypes/Placetype.js +7 -6
- package/out/resources/whosonfirst/placetypes/Placetype.js.map +1 -1
- package/out/resources/whosonfirst/placetypes/admin.d.ts +1 -1
- package/out/resources/whosonfirst/placetypes/admin.d.ts.map +1 -1
- package/out/resources/whosonfirst/placetypes/definition.d.ts.map +1 -1
- package/out/resources/whosonfirst/placetypes/mermaid.d.ts.map +1 -1
- package/out/resources/whosonfirst/placetypes/mermaid.js.map +1 -1
- package/out/routing/index.d.ts.map +1 -1
- package/out/routing/index.js.map +1 -1
- package/out/scripting/arguments.d.ts +7 -0
- package/out/scripting/arguments.d.ts.map +1 -1
- package/out/scripting/arguments.js +29 -0
- package/out/scripting/arguments.js.map +1 -1
- package/out/scripting/command.d.ts.map +1 -1
- package/out/scripting/ingest-chunk-script.d.ts.map +1 -1
- package/out/scripting/utils/index.d.ts +1 -1
- package/out/scripting/utils/index.d.ts.map +1 -1
- package/out/scripting/utils/index.js +1 -1
- package/out/scripting/utils/index.js.map +1 -1
- package/out/strings/case.d.ts +3 -0
- package/out/strings/case.d.ts.map +1 -1
- package/out/strings/case.js +12 -2
- package/out/strings/case.js.map +1 -1
- package/out/strings/format.d.ts +6 -0
- package/out/strings/format.d.ts.map +1 -1
- package/out/strings/format.js +12 -0
- package/out/strings/format.js.map +1 -1
- package/out/strings/python-json.js.map +1 -1
- package/out/tokenization/Graph.d.ts +3 -0
- package/out/tokenization/Graph.d.ts.map +1 -1
- package/out/tokenization/Graph.js +0 -4
- package/out/tokenization/Graph.js.map +1 -1
- package/out/tokenization/Span.d.ts.map +1 -1
- package/out/tokenization/Span.js.map +1 -1
- package/out/tokenization/normalizer.d.ts.map +1 -1
- package/out/tokenization/normalizer.js.map +1 -1
- package/out/tools/{download-libpostal-resources.d.ts → download/libpostal-resources.d.ts} +1 -1
- package/out/tools/download/libpostal-resources.d.ts.map +1 -0
- package/out/tools/{download-libpostal-resources.js → download/libpostal-resources.js} +4 -3
- package/out/tools/download/libpostal-resources.js.map +1 -0
- package/out/tools/{download-ssl-address.d.ts → download/ssl-address.d.ts} +1 -1
- package/out/tools/download/ssl-address.d.ts.map +1 -0
- package/out/tools/{download-ssl-address.js → download/ssl-address.js} +1 -1
- package/out/tools/download/ssl-address.js.map +1 -0
- package/out/tools/generate-language-types.d.ts.map +1 -1
- package/out/tools/generate-language-types.js +3 -4
- package/out/tools/generate-language-types.js.map +1 -1
- package/out/tools/index.d.ts +2 -2
- package/out/tools/index.js +2 -2
- package/out/types/Classification.d.ts +2 -2
- package/out/types/Classification.d.ts.map +1 -1
- package/out/types/classifier.d.ts +1 -1
- package/out/types/classifier.d.ts.map +1 -1
- package/out/types/index.d.ts +0 -1
- package/out/types/index.d.ts.map +1 -1
- package/out/types/index.js +0 -1
- package/out/types/index.js.map +1 -1
- package/out/types/mapping.d.ts +1 -1
- package/out/types/mapping.d.ts.map +1 -1
- package/out/types/mapping.js.map +1 -1
- package/out/utils/time.js.map +1 -1
- package/out/workspaces.d.ts +31 -0
- package/out/workspaces.d.ts.map +1 -0
- package/out/workspaces.js +72 -0
- package/out/workspaces.js.map +1 -0
- package/package.json +84 -55
- package/lib/resolver/placetype-map.ts +0 -130
- package/lib/types/component.ts +0 -96
- package/out/api/test-clocks.d.ts.map +0 -1
- package/out/api/test-clocks.js.map +0 -1
- package/out/api/test-transport.d.ts.map +0 -1
- package/out/api/test-transport.js.map +0 -1
- package/out/coarse-placer/tools/build-dataset.d.ts.map +0 -1
- package/out/coarse-placer/tools/build-dataset.js.map +0 -1
- package/out/coarse-placer/tools/build-outlier-exposure.d.ts.map +0 -1
- package/out/coarse-placer/tools/build-outlier-exposure.js.map +0 -1
- package/out/coarse-placer/tools/build-outlier-latin.d.ts.map +0 -1
- package/out/coarse-placer/tools/build-outlier-latin.js.map +0 -1
- package/out/coarse-placer/tools/build-outlier-oa.d.ts.map +0 -1
- package/out/coarse-placer/tools/build-outlier-oa.js.map +0 -1
- package/out/coarse-placer/tools/eval-latin-offmap.d.ts.map +0 -1
- package/out/coarse-placer/tools/eval-latin-offmap.js.map +0 -1
- package/out/coarse-placer/tools/eval-openset.d.ts.map +0 -1
- package/out/coarse-placer/tools/eval-openset.js.map +0 -1
- package/out/coarse-placer/tools/eval-quant-compare.d.ts.map +0 -1
- package/out/coarse-placer/tools/eval-quant-compare.js.map +0 -1
- package/out/decoder/serialize-json.d.ts.map +0 -1
- package/out/decoder/serialize-json.js.map +0 -1
- package/out/decoder/serialize-tuples.d.ts.map +0 -1
- package/out/decoder/serialize-tuples.js.map +0 -1
- package/out/decoder/serialize-xml.d.ts.map +0 -1
- package/out/decoder/serialize-xml.js.map +0 -1
- package/out/decoder/tree-shape.d.ts.map +0 -1
- package/out/decoder/tree-shape.js.map +0 -1
- package/out/decoder/tree-walk.d.ts.map +0 -1
- package/out/decoder/tree-walk.js.map +0 -1
- package/out/license/key-file.d.ts.map +0 -1
- package/out/license/key-file.js.map +0 -1
- package/out/license/key.d.ts.map +0 -1
- package/out/license/key.js.map +0 -1
- package/out/resolver/placetype-map.d.ts +0 -76
- package/out/resolver/placetype-map.d.ts.map +0 -1
- package/out/resolver/placetype-map.js +0 -106
- package/out/resolver/placetype-map.js.map +0 -1
- package/out/tools/download-libpostal-resources.d.ts.map +0 -1
- package/out/tools/download-libpostal-resources.js.map +0 -1
- package/out/tools/download-ssl-address.d.ts.map +0 -1
- package/out/tools/download-ssl-address.js.map +0 -1
- package/out/types/component.d.ts +0 -50
- package/out/types/component.d.ts.map +0 -1
- package/out/types/component.js +0 -84
- package/out/types/component.js.map +0 -1
- /package/lib/api/{test-clocks.ts → test/clocks.ts} +0 -0
- /package/lib/api/{test-transport.ts → test/transport.ts} +0 -0
- /package/lib/coarse-placer/tools/{build-outlier-exposure.ts → build/outlier/exposure.ts} +0 -0
- /package/lib/coarse-placer/tools/{build-outlier-oa.ts → build/outlier/oa.ts} +0 -0
- /package/lib/coarse-placer/tools/{eval-latin-offmap.ts → eval/latin-offmap.ts} +0 -0
- /package/lib/decoder/{serialize-xml.ts → serialize/xml.ts} +0 -0
- /package/lib/decoder/{tree-walk.ts → tree/walk.ts} +0 -0
- /package/lib/license/{key-file.ts → key/file.ts} +0 -0
- /package/lib/license/{key.ts → key/index.ts} +0 -0
- /package/lib/tools/{download-ssl-address.ts → download/ssl-address.ts} +0 -0
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
|
-
* Component-tag → resolver-placetype mapping, the equivalence groups a query expands into, and the test
|
|
7
|
-
* that tells a widened match from an exact one.
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* The map used when a backend does not supply its own.
|
|
11
|
-
*
|
|
12
|
-
* `street` and `house_number` are absent because WOF admin has no rows for them — they resolve through the situs
|
|
13
|
-
* extracts instead, which are keyed by street, not by placetype.
|
|
14
|
-
*
|
|
15
|
-
* The JP tiers are present because the candidate gazetteer keys them: 91.3% of Japanese records carry a kanji or kana
|
|
16
|
-
* key (49,255 of 53,920), a prefecture is a WOF `region`, a municipality a `locality` (its filter group admits the
|
|
17
|
-
* `borough` wards and `localadmin`), and a district (大字 / 町名) sits in the `locality` band beside the neighbourhoods.
|
|
18
|
-
* Measured on 300 JP board rows: with these entries and the JP rungs on the admin ladder, 271 resolve within 15 km;
|
|
19
|
-
* without them, 0. Only the character-path CJK model emits the tags, so no Latin parse reaches these rows.
|
|
20
|
-
*/
|
|
21
|
-
export const DEFAULT_PLACETYPE_MAP = {
|
|
22
|
-
country: "country",
|
|
23
|
-
region: "region",
|
|
24
|
-
locality: "locality",
|
|
25
|
-
dependent_locality: "locality",
|
|
26
|
-
subregion: "county",
|
|
27
|
-
prefecture: "region",
|
|
28
|
-
municipality: "locality",
|
|
29
|
-
district: "locality",
|
|
30
|
-
// `postcode` (mailwoman tag) maps to WOF's `postalcode` placetype. Resolves only when the
|
|
31
|
-
// backend has the postcode extract available — `WOFSQLitePlaceLookup` auto-routes `postalcode`
|
|
32
|
-
// queries to a `postalcode_us` (or similarly-named) extract, falling back to main if absent.
|
|
33
|
-
postcode: "postalcode",
|
|
34
|
-
};
|
|
35
|
-
/**
|
|
36
|
-
* Placetype-equivalence groups for lookup FILTERING. WOF splits a single addressing tier across several placetypes, but
|
|
37
|
-
* an address's span can name ANY of them. A backend that filters to the one "obvious" placetype makes the equivalents
|
|
38
|
-
* unreachable, so a fuzzy same-name place in the wrong tier wins instead.
|
|
39
|
-
*
|
|
40
|
-
* Three tiers are affected (the value of each entry is the set the SQL filter should accept; the FIRST entry is the
|
|
41
|
-
* canonical/requested type, which extract routing keys off):
|
|
42
|
-
*
|
|
43
|
-
* - **`locality`** — `locality` (most cities), `borough` (Brooklyn, the Paris arrondissements, the London boroughs), and
|
|
44
|
-
* `localadmin` (FR communes, US towns/townships in New England). Without the group, Brooklyn-the-borough (pop 2.5M)
|
|
45
|
-
* was unreachable and the fuzzy "Brooklyn Park, MN" won.
|
|
46
|
-
* - **`region`** — `region` + `macroregion` (#718). WOF does NOT model every country's top-level civil division as
|
|
47
|
-
* `region`: Italian regions (Lombardia, Veneto, Toscana…) are `macroregion` (their PROVINCES are `region`), and the
|
|
48
|
-
* post-2016 French régions (Île-de-France) are `macroregion` too. An address's `region` span names exactly those, so
|
|
49
|
-
* a `region`-only filter resolved them to NOTHING (confirmed against the IT/FR eval rows). US states / DE
|
|
50
|
-
* Bundesländer / ES provincias are genuine `region`, so the EXACT-type match is preferred in ranking (see the
|
|
51
|
-
* resolve.ts fallback-quality annotation) — the macro is the recall safety net, not a demotion.
|
|
52
|
-
* - **`county`** — `county` + `macrocounty` (#718). The `subregion` ComponentTag maps to `county` via
|
|
53
|
-
* {@link DEFAULT_PLACETYPE_MAP}; WOF carries `macrocounty` for FR départements-grouping / DE / GB tiers above the
|
|
54
|
-
* county. Proactive (no eval row exercises `subregion` today) but symmetric with `region` — biasing to inclusion,
|
|
55
|
-
* since a missed resolution costs more than a too-broad candidate (which is QA-visible). Same exact-type preference
|
|
56
|
-
* applies.
|
|
57
|
-
*
|
|
58
|
-
* This table is the single source of truth for that expansion, shared by every lookup backend
|
|
59
|
-
* (`@mailwoman/core/resolver-wof-sqlite`, `@mailwoman/core/resolver-wof-wasm`, and the demo's httpvfs lookup) so the
|
|
60
|
-
* Node and browser resolvers can't drift. Keyed by the REQUESTED placetype. Placetypes without an entry pass through
|
|
61
|
-
* unchanged — an explicit `placetype: "borough"` query stays narrow.
|
|
62
|
-
*/
|
|
63
|
-
export const PLACETYPE_FILTER_GROUPS = {
|
|
64
|
-
locality: ["locality", "borough", "localadmin"],
|
|
65
|
-
region: ["region", "macroregion"],
|
|
66
|
-
county: ["county", "macrocounty"],
|
|
67
|
-
};
|
|
68
|
-
export function expandPlacetypeFilter(placetypes) {
|
|
69
|
-
if (!placetypes)
|
|
70
|
-
return null;
|
|
71
|
-
const out = [];
|
|
72
|
-
for (const placetype of placetypes) {
|
|
73
|
-
for (const expanded of PLACETYPE_FILTER_GROUPS[placetype] ?? [placetype]) {
|
|
74
|
-
if (!out.includes(expanded)) {
|
|
75
|
-
out.push(expanded);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
return out;
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* Macro/broader-tier members of {@link PLACETYPE_FILTER_GROUPS} — the recall safety net a query may fall through to
|
|
83
|
-
* when no candidate of the EXACT requested placetype exists (#718). DELIBERATELY scoped to the `macro*` tiers only: the
|
|
84
|
-
* `locality` group's `borough`/`localadmin` are genuine peers (Brooklyn-the-borough is a first-class locality answer,
|
|
85
|
-
* #404-class), NOT fallbacks — so they must NOT be deprioritized or annotated. Only `macroregion`/`macrocounty` are a
|
|
86
|
-
* broader admin tier standing in for a true `region`/`county`.
|
|
87
|
-
*/
|
|
88
|
-
const MACRO_FALLBACK_PLACETYPES = new Set(["macroregion", "macrocounty"]);
|
|
89
|
-
/**
|
|
90
|
-
* Did `candidatePlacetype` resolve `requestedPlacetype` only via a BROADER admin tier (a macro-type fallback within the
|
|
91
|
-
* {@link PLACETYPE_FILTER_GROUPS} expansion), rather than the exact type (#718)?
|
|
92
|
-
*
|
|
93
|
-
* `region` → `region` is exact (false); `region` → `macroregion` is a fallback (true). Scoped to the `macro*` tiers
|
|
94
|
-
* (see {@link MACRO_FALLBACK_PLACETYPES}) so the `locality` group's borough/localadmin peers stay exact. The resolver
|
|
95
|
-
* uses this to (a) prefer an exact-type candidate in ranking and (b) annotate `resolutionQuality: "fallback"` when only
|
|
96
|
-
* a macro-type matched. A placetype outside the requested group, or any non-macro member, is treated as exact (false).
|
|
97
|
-
*/
|
|
98
|
-
export function isPlacetypeFallback(requestedPlacetype, candidatePlacetype) {
|
|
99
|
-
const group = PLACETYPE_FILTER_GROUPS[requestedPlacetype];
|
|
100
|
-
if (!group)
|
|
101
|
-
return false;
|
|
102
|
-
if (candidatePlacetype === requestedPlacetype)
|
|
103
|
-
return false;
|
|
104
|
-
return MACRO_FALLBACK_PLACETYPES.has(candidatePlacetype) && group.includes(candidatePlacetype);
|
|
105
|
-
}
|
|
106
|
-
//# sourceMappingURL=placetype-map.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"placetype-map.js","sourceRoot":"","sources":["../../lib/resolver/placetype-map.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAYH;;;;;;;;;;;GAWG;AACH,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,UAAU,EAAE,QAAQ;IACpB,YAAY,EAAE,UAAU;IACxB,QAAQ,EAAE,UAAU;IACpB,0FAA0F;IAC1F,+FAA+F;IAC/F,6FAA6F;IAC7F,QAAQ,EAAE,YAAY;CACtB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAgD;IACnF,QAAQ,EAAE,CAAC,UAAU,EAAE,SAAS,EAAE,YAAY,CAAC;IAC/C,MAAM,EAAE,CAAC,QAAQ,EAAE,a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.ts","sourceRoot":"","sources":["../../lib/tools/download-ssl-address.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAwBH;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACzC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;CACpB;AAwBD;;;GAGG;AACH,wBAAsB,kBAAkB,CACvC,OAAO,GAAE,yBAA8B,EACvC,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,GAC7B,OAAO,CAAC;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,CAkC9C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"download-ssl-address.js","sourceRoot":"","sources":["../../lib/tools/download-ssl-address.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAE9B,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AACzD,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAA;AAExC,MAAM,QAAQ,GAAG,oDAAoD,CAAA;AAErE;;;;;;;GAOG;AACH,MAAM,gBAAgB,GAAG,IAAI,SAAS,CAAC;IACtC,WAAW,EAAE,aAAa;IAC1B,KAAK,EAAE,IAAI;IACX,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE;CAC1B,CAAC,CAAA;AAgBF;;GAEG;AACH,KAAK,UAAU,iBAAiB;IAC/B,MAAM,IAAI,GAAG,MAAM,gBAAgB,CAAC,KAAK,CAAyB,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC,C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IAAI,EAAE;QACtF,OAAO,IAAI,EAAE,CAAC;YACb,MAAM,IAAI,GAAG,QAAQ,EAAE,CAAA;YAEvB,IAAI,IAAI,IAAI,KAAK,CAAC,MAAM;gBAAE,OAAM;YAChC,MAAM,EAAE,GAAG,KAAK,CAAC,IAAI,CAAE,CAAA;YAEvB,IAAI,CAAC;gBACJ,MAAM,YAAY,CAAC,EAAE,EAAE,MAAM,CAAC,CAAA;gBAC9B,MAAM,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,CAAA;YACtB,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBAChB,QAAQ,EAAE,CAAA;gBACV,MAAM,EAAE,CAAC,OAAO,EAAE,KAAM,KAAe,CAAC,OAAO,EAAE,CAAC,CAAA;YACnD,CAAC;QACF,CAAC;IACF,CAAC,CAAC,CAAA;IAEF,MAAM,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAA;IAE1B,MAAM,EAAE,CAAC,aAAa,KAAK,CAAC,MAAM,GAAG,QAAQ,IAAI,KAAK,CAAC,MAAM,aAAa,QAAQ,SAAS,CAAC,CAAA;IAE5F,OAAO,EAAE,OAAO,EAAE,KAAK,CAAC,MAAM,GAAG,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAA;AAC9D,CAAC"}
|
package/out/types/component.d.ts
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
|
-
* Canonical address component schema for the neural classifier pipeline.
|
|
7
|
-
*
|
|
8
|
-
* This file is the single source of truth for `ComponentTag`. Any change here requires (per #5 of
|
|
9
|
-
* the Mailwoman Neural plan):
|
|
10
|
-
*
|
|
11
|
-
* 1. A written rationale in the commit message.
|
|
12
|
-
* 2. A migration plan for corpus rows tagged with the prior schema.
|
|
13
|
-
* 3. A same-commit check that alignment, training, and inference code is updated to match.
|
|
14
|
-
*
|
|
15
|
-
* The legacy `Classifications` set in `../classification/scheme.ts` is kept independent on purpose:
|
|
16
|
-
* rule classifiers continue to emit those, the neural classifier emits these. The bridge between
|
|
17
|
-
* the two lives in the adapter layer (see #6).
|
|
18
|
-
*/
|
|
19
|
-
/**
|
|
20
|
-
* The canonical address component tag union, ordered by phase and locale.
|
|
21
|
-
*
|
|
22
|
-
* - Universal (Phase 1): country, region, locality, dependent_locality, postcode, subregion
|
|
23
|
-
* - Street-level (Phase 2): house_number, street, street_prefix*, street_suffix, intersection_a/b, unit
|
|
24
|
-
* - Venue-level (Phase 3): venue, attention, po_box
|
|
25
|
-
* - FR-specific: cedex
|
|
26
|
-
* - JP-specific (ACTIVATED at CJK Phase 2, 2026-07-29 — the JP char model's 47-label head trains against them; the Latin
|
|
27
|
-
* model never emits them): prefecture, municipality, district, block, sub_block, building_number, building_name
|
|
28
|
-
*/
|
|
29
|
-
export declare const COMPONENT_TAGS: readonly ["country", "region", "locality", "dependent_locality", "postcode", "subregion", "house_number", "street", "street_prefix", "street_prefix_particle", "street_suffix", "intersection_a", "intersection_b", "unit", "venue", "attention", "po_box", "cedex", "prefecture", "municipality", "district", "block", "sub_block", "building_number", "building_name", "locality_unit"];
|
|
30
|
-
/**
|
|
31
|
-
* Union of every recognized address component tag.
|
|
32
|
-
*/
|
|
33
|
-
export type ComponentTag = (typeof COMPONENT_TAGS)[number];
|
|
34
|
-
/**
|
|
35
|
-
* BIO-encoded label set: one `O` plus a `B-` / `I-` pair per tag.
|
|
36
|
-
*
|
|
37
|
-
* Used as the per-token output alphabet for the sequence-labeling neural model. Inference decodes a stream of these
|
|
38
|
-
* back into character-aligned `ClassificationProposal`s.
|
|
39
|
-
*/
|
|
40
|
-
export declare const BIO_LABELS: readonly ["O", ...("B-country" | "B-region" | "B-locality" | "B-dependent_locality" | "B-postcode" | "B-subregion" | "B-house_number" | "B-street" | "B-street_prefix" | "B-street_prefix_particle" | "B-street_suffix" | "B-intersection_a" | "B-intersection_b" | "B-unit" | "B-venue" | "B-attention" | "B-po_box" | "B-cedex" | "B-prefecture" | "B-municipality" | "B-district" | "B-block" | "B-sub_block" | "B-building_number" | "B-building_name" | "B-locality_unit" | "I-country" | "I-region" | "I-locality" | "I-dependent_locality" | "I-postcode" | "I-subregion" | "I-house_number" | "I-street" | "I-street_prefix" | "I-street_prefix_particle" | "I-street_suffix" | "I-intersection_a" | "I-intersection_b" | "I-unit" | "I-venue" | "I-attention" | "I-po_box" | "I-cedex" | "I-prefecture" | "I-municipality" | "I-district" | "I-block" | "I-sub_block" | "I-building_number" | "I-building_name" | "I-locality_unit")[]];
|
|
41
|
-
/**
|
|
42
|
-
* Union of every BIO label.
|
|
43
|
-
*/
|
|
44
|
-
export type BIOLabel = (typeof BIO_LABELS)[number];
|
|
45
|
-
/**
|
|
46
|
-
* The street-name family in assembly order: prefix, particle, name, suffix. The order is part of the contract — a
|
|
47
|
-
* street surface is assembled by concatenating these tags' values in this order.
|
|
48
|
-
*/
|
|
49
|
-
export declare const STREET_FAMILY_TAGS: readonly ["street_prefix", "street_prefix_particle", "street", "street_suffix"];
|
|
50
|
-
//# sourceMappingURL=component.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../lib/types/component.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH;;;;;;;;;GASG;AACH,eAAO,MAAM,cAAc,2XAqCjB,CAAA;AAEV;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAA;AAE1D;;;;;GAKG;AACH,eAAO,MAAM,UAAU,k5BAAwF,CAAA;AAE/G;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAA;AAElD;;;GAGG;AACH,eAAO,MAAM,kBAAkB,iFAKa,CAAA"}
|
package/out/types/component.js
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
|
-
* Canonical address component schema for the neural classifier pipeline.
|
|
7
|
-
*
|
|
8
|
-
* This file is the single source of truth for `ComponentTag`. Any change here requires (per #5 of
|
|
9
|
-
* the Mailwoman Neural plan):
|
|
10
|
-
*
|
|
11
|
-
* 1. A written rationale in the commit message.
|
|
12
|
-
* 2. A migration plan for corpus rows tagged with the prior schema.
|
|
13
|
-
* 3. A same-commit check that alignment, training, and inference code is updated to match.
|
|
14
|
-
*
|
|
15
|
-
* The legacy `Classifications` set in `../classification/scheme.ts` is kept independent on purpose:
|
|
16
|
-
* rule classifiers continue to emit those, the neural classifier emits these. The bridge between
|
|
17
|
-
* the two lives in the adapter layer (see #6).
|
|
18
|
-
*/
|
|
19
|
-
/**
|
|
20
|
-
* The canonical address component tag union, ordered by phase and locale.
|
|
21
|
-
*
|
|
22
|
-
* - Universal (Phase 1): country, region, locality, dependent_locality, postcode, subregion
|
|
23
|
-
* - Street-level (Phase 2): house_number, street, street_prefix*, street_suffix, intersection_a/b, unit
|
|
24
|
-
* - Venue-level (Phase 3): venue, attention, po_box
|
|
25
|
-
* - FR-specific: cedex
|
|
26
|
-
* - JP-specific (ACTIVATED at CJK Phase 2, 2026-07-29 — the JP char model's 47-label head trains against them; the Latin
|
|
27
|
-
* model never emits them): prefecture, municipality, district, block, sub_block, building_number, building_name
|
|
28
|
-
*/
|
|
29
|
-
export const COMPONENT_TAGS = [
|
|
30
|
-
// Universal
|
|
31
|
-
"country",
|
|
32
|
-
"region",
|
|
33
|
-
"locality",
|
|
34
|
-
"dependent_locality",
|
|
35
|
-
"postcode",
|
|
36
|
-
"subregion",
|
|
37
|
-
// Street-level
|
|
38
|
-
"house_number",
|
|
39
|
-
"street",
|
|
40
|
-
"street_prefix",
|
|
41
|
-
"street_prefix_particle",
|
|
42
|
-
"street_suffix",
|
|
43
|
-
"intersection_a",
|
|
44
|
-
"intersection_b",
|
|
45
|
-
"unit",
|
|
46
|
-
// Venue-level
|
|
47
|
-
"venue",
|
|
48
|
-
"attention",
|
|
49
|
-
"po_box",
|
|
50
|
-
// FR-specific
|
|
51
|
-
"cedex",
|
|
52
|
-
// JP-specific (ACTIVATED at CJK Phase 2 — the stage3-jp label set; Latin models never emit these)
|
|
53
|
-
"prefecture",
|
|
54
|
-
"municipality",
|
|
55
|
-
"district",
|
|
56
|
-
"block",
|
|
57
|
-
"sub_block",
|
|
58
|
-
"building_number",
|
|
59
|
-
"building_name",
|
|
60
|
-
// CN-specific (#2034): the organizational ladder China's rural addresses carry below the named settlement —
|
|
61
|
-
// state-farm sub-farms (分场), production brigades and teams (大队, 队, 生产队), XPCC regiments and companies (团, 连),
|
|
62
|
-
// villager groups (组). ONE contiguous span holds the whole ordinal chain (`三分场八队`); which rung each generic names
|
|
63
|
-
// is a deterministic reading of the suffix, not a label distinction, so the tag stays one and the split is derived.
|
|
64
|
-
// The named head unit (`孟定农场`, `新合`) is `dependent_locality`. Emitted by the CJK sibling model only.
|
|
65
|
-
"locality_unit",
|
|
66
|
-
];
|
|
67
|
-
/**
|
|
68
|
-
* BIO-encoded label set: one `O` plus a `B-` / `I-` pair per tag.
|
|
69
|
-
*
|
|
70
|
-
* Used as the per-token output alphabet for the sequence-labeling neural model. Inference decodes a stream of these
|
|
71
|
-
* back into character-aligned `ClassificationProposal`s.
|
|
72
|
-
*/
|
|
73
|
-
export const BIO_LABELS = ["O", ...COMPONENT_TAGS.flatMap((tag) => [`B-${tag}`, `I-${tag}`])];
|
|
74
|
-
/**
|
|
75
|
-
* The street-name family in assembly order: prefix, particle, name, suffix. The order is part of the contract — a
|
|
76
|
-
* street surface is assembled by concatenating these tags' values in this order.
|
|
77
|
-
*/
|
|
78
|
-
export const STREET_FAMILY_TAGS = [
|
|
79
|
-
"street_prefix",
|
|
80
|
-
"street_prefix_particle",
|
|
81
|
-
"street",
|
|
82
|
-
"street_suffix",
|
|
83
|
-
];
|
|
84
|
-
//# sourceMappingURL=component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../lib/types/component.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC7B,YAAY;IACZ,SAAS;IACT,QAAQ;IACR,UAAU;IACV,oBAAoB;IACpB,UAAU;IACV,WAAW;IACX,eAAe;IACf,cAAc;IACd,QAAQ;IACR,eAAe;IACf,wBAAwB;IACxB,eAAe;IACf,gBAAgB;IAChB,gBAAgB;IAChB,MAAM;IACN,cAAc;IACd,OAAO;IACP,WAAW;IACX,QAAQ;IACR,cAAc;IACd,OAAO;IACP,kGAAkG;IAClG,YAAY;IACZ,cAAc;IACd,UAAU;IACV,OAAO;IACP,WAAW;IACX,iBAAiB;IACjB,eAAe;IACf,4GAA4G;IAC5G,8GAA8G;IAC9G,kHAAkH;IAClH,oHAAoH;IACpH,qGAAqG;IACrG,eAAe;CACN,CAAA;AAOV;;;;;GAKG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,GAAG,EAAE,GAAG,cAAc,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,KAAK,GAAG,EAAE,EAAE,KAAK,GAAG,EAAE,CAAU,CAAC,CAAU,CAAA;AAO/G;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IACjC,eAAe;IACf,wBAAwB;IACxB,QAAQ;IACR,eAAe;CAC4B,CAAA"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|