thaiaddress: A Parser for Thai Address
Parser for Thai address. ไลบรารี่เพื่อแยกแยะชื่อ/ที่อยู่/รหัสไปรษณีย์/เบอร์โทรศัพท์
Installation
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
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.2.1.tar.gz
(252.4 kB
view details)
File details
Details for the file thaiaddress-0.2.1.tar.gz.
File metadata
- Download URL: thaiaddress-0.2.1.tar.gz
- Upload date:
- Size: 252.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f8c8a936b5ec3b43e84d56d54af71466f9c796b667037583ce32a935c3faa4f
|
|
| MD5 |
d58e0d780429e2f346bef3bb5db7576b
|
|
| BLAKE2b-256 |
2836603c39fad611785dbe1b0c8d022314ec160aa5168ab27c8510f97d90e305
|