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.
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 | |
|---|---|---|---|
| fraddress-0.0.4.tar.gz | 15.3 kB | 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
|