openvenues / libpostal

A C library for parsing/normalizing street addresses around the world. Powered by statistical NLP and open geo data.
MIT License
4.08k stars 421 forks source link

The web application hanging after installing libpostal package #432

Open Anupam124jain opened 5 years ago

Anupam124jain commented 5 years ago

Hi!

I was checking out libpostal package. And using it django web application. It is giving perfect result when I install postal package in python environment. But django development server is taking time to restart after installing this package.

Why it is talking time. Is it happening lot of training data in libpostal package?

Please help to clear my above query.

Thanks

antimirov commented 5 years ago

There are use cases when using the python api is not the best idea. For example, when you have to load/reload your application often. For this use case I suggest you use libpostal via REST API - https://github.com/johnlonganecker/libpostal-rest-docker So, start libpostal service inside a docker container and use requests module to send queries using the expand/parse API calls. This way you don't have any delays during restarts of your django application and you don't have to build/install libpostal manually.