fraddress-parser
fraddress is a python library for parsing unstructured FR addresses strings into address components using a custom NLP model that learns from patterns. This library relies on the parserator library.
How to use fraddress
Install fraddress with pip.
pip install fraddress
Then parse some address with parse or tag.
>>> import fraddress
>>> fraddress.parse('51 rue Nationale Paris 75006')
[('51', 'AddressNumber'), ('rue', 'StreetType'), ('Nationale', 'StreetName'), ('Paris', 'City'), ('75006', 'Zipcode')]
>>> fraddress.tag('51 rue Nationale Paris 75006')
OrderedDict([('AddressNumber', '51'), ('StreetType', 'rue'), ('StreetName', 'Nationale'), ('City', 'Paris'), ('Zipcode', '75006')])
Check trained patterns
Go to the training directory and check the file trained_pattern.txt to see which pattern is already known by the model.
How to train a new parser
All you need is some training data to teach your parser about its domain, and then follow the instructions of the U.S version.
Metadata
Release files for fraddress 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| fraddress-0.0.4.tar.gz | 15.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fraddress-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 30.4 kB
Release files / fraddress-0.0.4.tar.gz
| Download URL | fraddress-0.0.4.tar.gz |
|---|---|
| Size | 15.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f60b779afb514d9aaa527bca9c1a625cacd2e59fd3019e0a2a848d691b6ebdf0
|
|
BLAKE2b-256 checksum How to use checksums |
7714804f6a1004ad9f0801c38ae3f9809b670a5c102b80378b58f49dfa853e7a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3
|
Release files / fraddress-0.0.4-py3-none-any.whl
| Download URL | fraddress-0.0.4-py3-none-any.whl |
|---|---|
| Size | 15.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7cf30f8a8f6cd4549d3513c3879a489e66aaca06bd68c56288cd03add16fbd6b
|
|
BLAKE2b-256 checksum How to use checksums |
a4922e6ab8d6c935531769075f8a6843ac4171f34b6b4223427edfc2a7e71476
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3
|
Security for fraddress 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.