r/Python 28d ago

Showcase Showcase Thread

Post all of your code/projects/showcases/AI slop here.

Recycles once a month.

21 Upvotes

136 comments sorted by

View all comments

1

u/Vvomero 12d ago
fastaddress: a drop-in replacement for usaddress that runs the same model 11x faster

usaddress parses about 8,000 addresses/sec on my machine. fastaddress runs the same trained CRF model in Rust and does about 90,000/sec on one core and 360,000/sec on eight threads.

The API is the same: parse(), tag(), tag_mapping, RepeatedLabelError. In most cases, replacing import usaddress with import fastaddress is enough.

I checked output parity across 20,738 real county addresses at four levels: tokens, features, serialized attributes, and final tags. Zero differences. The parity suite is in the repo.

It also adds per-token and per-parse confidence scores, plus tag_native() for cases that would otherwise raise RepeatedLabelError.

The wheel is about 0.8 MB with the model included, so there is no separate model download or C toolchain.

pip install fastaddress

The model is DataMade's and is redistributed unmodified under its license. The repo includes the benchmarks, parity tests, and the full retraining results.

https://github.com/vinvomero/fastaddress