Skip to the parser
gpu-postal

Experimental address parsing.

Labels US address components in context. Runs locally with a tiny WebGPU model. Full, partial or out of order.

58.7 kB model + runtime (Brotli) · 5.2 ms warm median on M1 Pro

Try a full address

Isolated place names can be ambiguous.

Street addressLocalityCityDistrictStateZIP codeCountry
Enter an address.
npm install gpu-postal@experimental
import { createParser } from 'gpu-postal';

const parser = await createParser();
const { components } = await parser.parse(
  '123 Main Street, Boston MA 02110'
);
// { label: 'city', raw: 'Boston', start: 17, end: 23 }

await parser.dispose();

Returns original text and character offsets. Reuse the parser across calls.

Two small US parsers

Model weights (Brotli quality 11) · Runtime excluded for both

gpu-postal53.4 kB (Brotli)
usaddress50.2 kB (Brotli)

Linear scale. gpu-postal includes its browser runtime in 58.7 kB (Brotli). usaddress additionally requires Python, CRFsuite and feature-extraction code; those are not included above. Measurement data

Multilingual models

libpostal 744.9 MB (Brotli) · Senzing 1255.4 MB (Brotli) · Deepparse 178.0 MB (Brotli). These historical measurements use Brotli quality 5, not the quality 11 comparison above. Includes broader language and feature coverage. Asset inventory

US address benchmark

842 addresses · Whole-address exact match

gpu-postalusaddresslibpostalSenzingDeepparse
Scores & field breakdown
Field F1 · Whole-address exact matchCount / sample · 95% Wilson interval
Inputsgpu-postalusaddresslibpostalSenzingDeepparse
USFull addresses99.2% F198.3% exact828 / 84297.2–99.0%99.4% F198.7% exact831 / 84297.7–99.3%99.0% F197.9% exact824 / 84296.6–98.6%99.3% F198.5% exact829 / 84297.4–99.1%98.4% F196.8% exact815 / 84295.4–97.8%

Whole-address exact match requires every field to match, with no extras. Field F1 credits correctly parsed fields and penalizes missing, wrong and extra fields.

Exact-match F1 by field
Fieldgpu-postalusaddresslibpostalSenzingDeepparse
US · Address block99.3%98.7%98.5%98.9%96.8%
US · Town / city99.0%99.0%98.6%98.9%96.8%
US · State99.0%100.0%99.4%99.5%100.0%
US · ZIP code99.6%100.0%99.5%100.0%100.0%
Method & data

842 addresses across 40 states from the US National Address Database , including 118 with subaddresses. Author-run, structured-address sample; not population-representative. No partial-address cohort in this benchmark.

gpu-postal experimental.3, usaddress 0.5.16, libpostal default, Senzing v1.2 and Deepparse BPEmb + attention. The current gpu-postal model was rerun on the frozen inputs; other parsers’ predictions are retained from the original evaluation. This is not a newly blind test. Training overlap with the expanded US corpus and competitors is unknown.

Scored fields: address block, city, state and ZIP code. Localities join the address block; districts join the state. Case, commas and whitespace are ignored; other punctuation and repeated tokens count. Extra fields are errors.

Source labels may contain mistakes. Confidence intervals describe this sample; competitor training overlap is unknown. The downloadable evidence retains the full original evaluation.

Protocol & reproductionScores, sizes & hashesLabeled inputsgpu-postal predictionsusaddress predictionsWebGPU verification

When the order changes

The same address facts, with fields shuffled or removed. gpu-postal keeps more of these inputs intact; usaddress leads on conventional building and unit formats.

Synthetic variants of 20 public institutional addresses—not hundreds of independent addresses. All seven fields must match; locality is not merged into street.

gpu-postal int5usaddress 0.5.16
Whole-input field match · Correct / cases
Inputgpu-postalusaddress
Complete85.0%17 / 2095.0%19 / 20
Shuffled80.0%368 / 4605.2%24 / 460
Partial81.5%163 / 20078.0%156 / 200
Partial + shuffled78.5%157 / 2004.0%8 / 200
Single field85.0%68 / 8066.3%53 / 80
Lowercase, no commas70.0%14 / 2095.0%19 / 20
Uppercase, multiline85.0%17 / 2095.0%19 / 20
Street-name typo85.0%17 / 2095.0%19 / 20
City-name typo85.0%17 / 2095.0%19 / 20
Messy + partial + shuffled50.0%10 / 200.0%0 / 20
Building prefix12.5%2 / 1693.8%15 / 16
Unit first80.0%4 / 5100.0%5 / 5
Historical US50 sample95.0%95 / 10099.0%99 / 100

On the full 680-address upstream usaddress US50 test, shared coarse-field matches are 675/680 (99.26%) for gpu-postal and 678/680 (99.71%) for usaddress. That scorer merges locality into street and district into state; it differs from the table above. There are 16 exact matches with our training corpus, and competitor exposure is unknown.

Case, commas and whitespace are ignored. The institutional labels were authored before pilot inference; these cases were inspected during development. No pooled accuracy or confidence interval is claimed for correlated variants. Every input and both predictions · Method and sources