r/Python • u/AutoModerator • 28d ago
Showcase Showcase Thread
Post all of your code/projects/showcases/AI slop here.
Recycles once a month.
21
Upvotes
r/Python • u/AutoModerator • 28d ago
Post all of your code/projects/showcases/AI slop here.
Recycles once a month.
1
u/Vvomero 12d ago
usaddressparses about 8,000 addresses/sec on my machine.fastaddressruns 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, replacingimport usaddresswithimport fastaddressis 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 raiseRepeatedLabelError.The wheel is about 0.8 MB with the model included, so there is no separate model download or C toolchain.
pip install fastaddressThe 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