An python client on Vietnamese Address Standardization problem.
This tutorial was writen for MacOSX
or Linux
. To run on Window
, please find corresponding commands.
It requires python
(or python3
), pip
.
Install required packages:
pip install -r requirements.txt
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
python test.py
test.py
# -*- encoding: utf-8 -*-
import stavia
print(stavia.standardize('vinh lai phu tho'))