Skip to main content
Address Detector
==============================

How to detect if a user query might be an address and requires to launch a map answer.




Project Modules
------------
The project implements 3 classifiers, using an a la scikit template.

The first classifier is a simple scorer classifier, based on the parsing result of the address parser libpostal (https://github.com/openvenues/libpostal)
According to how the parser manage to work, and which fields are parsed, we make a score and decide if an address or not.

The second classifier is based on the FastText classifier trained on address data. The fasttext makes an embedding of the differents address it sees and therefore when a new address is submitted if it's in a close spaceto what have been learned.
The classifier is pre-trained, and the Fasttext zip model is store within the package.

The third classifier is a voting classifier combining the results of the two previous classifiers.


Project Dependencies
------------
####Installation of Postal:
Before you install `Postal` , make sure you have the following prerequisites:
```
sudo apt-get install curl autoconf automake libtool pkg-config
```

Then to install the C library:

```
git clone https://github.com/openvenues/libpostal
cd libpostal
./bootstrap.sh
./configure --datadir=[...some dir with a few GB of space...]
make
sudo make install

# On Linux it's probably a good idea to run
sudo ldconfig
```
#### Installation of FastText
In order to build `fastText`, use the following:

```
$ git clone https://github.com/facebookresearch/fastText.git
$ cd fastText
$ make
```



=======
History
=======

0.1.0 (2017-10-25)
------------------

* First release on PyPI.

Metadata

Release files for addr-detector 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for addr-detector 0.2.1
File Size Uploaded Provenance Actions
addr_detector-0.2.1.tar.gz 52.8 MB Without provenance Details for addr_detector-0.2.1.tar.gz

Release files / addr_detector-0.2.1.tar.gz

Download URL addr_detector-0.2.1.tar.gz
Size 52.8 MB
Tags Source
SHA-256 checksum
How to use checksums
fa234d7c48d00411ba2c9150297e034daf5b39a50b33e84b2ca6db6b8ea93f94
BLAKE2b-256 checksum
How to use checksums
752b18b4f722085eac23257c491f0539cb1045f8a155301a72a6242e1e543f8e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for addr-detector 0.2.1

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page