A Python parser for Thai address
Project description
thaiaddress: A Parser for Thai Address
Parser for Thai address. ไลบรารี่เพื่อแยกแยะชื่อ/ที่อยู่/รหัสไปรษณีย์/เบอร์โทรศัพท์
Installing
You can install a recent development (recommended) using pip
directly
from the repository
pip install git+git://github.com/425degree-developers/thaiaddress.git
or stable version from PyPi using
pip install thaiaddress
Example Usage
import thaiaddress
thaiaddress.parse("นายปรายุ้ด จันทร์กะเพรา 099-999-9999 25/25 ถ.พุทธมณฑล สาย 4 ต. ศาลายา อ.พุทธมณฑล จ.นครปฐม 73170")
>>> {
'text': 'นายปรายุ้ด จันทร์กะเพรา 25/25 ถ.พุทธมณฑล สาย 4 ต. ศาลายา อ.พุทธมณฑล จ.นครปฐม 73170',
'name': 'นายปรายุ้ด จันทร์กะเพรา',
'address': '25/25 ถ.พุทธมณฑล สาย 4',
'location': 'ต. ศาลายา อ.พุทธมณฑล จ.นครปฐม',
'province': 'นครปฐม',
'district': 'พุทธมณฑล',
'subdistrict': 'ศาลายา',
'postal_code': '73170',
'phone_number': '0999999999',
'email': ''
}
Display output on Jupyter notebook
Development Plan
- This is an early version of our parser with very little data. We will make a better model relatively soon.
Developers
This repository is developed at 425 Degree Co., Bangkok, Thailand
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
thaiaddress-0.1.3.tar.gz
(198.8 kB
view hashes)