ngocbh / stavia

An python client on Vietnamese Address Standardization problem.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stavia

An python client on Vietnamese Address Standardization problem.

This tutorial was writen for MacOSX or Linux. To run on Window, please find corresponding commands.

How it works

alt tag

Requirements

Python

It requires python (or python3), pip. Install required packages:

pip install -r requirements.txt
Elasticsearch

Download Elasticsearch here. And extract it.

On Elasticsearch home folder, run this command (This command open a server which is used by our service, hold it on, more information here):

./bin/elasticsearch

On Linux you can use systemctl instead.

systemctl start elasticsearch.service

Testing

python test.py

test.py

# -*- encoding: utf-8 -*-
import stavia
print(stavia.standardize('vinh lai phu tho'))

About

An python client on Vietnamese Address Standardization problem.

License:MIT License


Languages

Language:Python 99.5%Language:Shell 0.5%