Skip to content

anandaroop/try-postal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Try Postal

libpostal as a webservice, with a front-end realtime demo.

demo

Build and run locally with docker

$ git clone https://github.com/anandaroop/try-postal.git
$ cd try-postal
$ docker build -t try-postal .
$ docker container run -it -p 5000:5000 try-postal

Deploy with docker-machine

First, generate an access token for your provider, e.g. Digital Ocean.

# provision a decent sized server
$ docker-machine create --driver digitalocean --digitalocean-size s-2vcpu-4gb --digitalocean-access-token XXXXX try-postal

# connect to it
$ docker-machine env try-postal
$ eval $(docker-machine env try-postal)

# build and run
$ docker build -t try-postal .
$ docker container run -d -p 80:5000 try-postal

# ...may take a few seconds to load the ML models...

# visit in your browser
$ docker-machine ip try-postal
$ open http://<ip address here>

About

libpostal webservice and online demo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published