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
Metadata
Release files for thaiaddress 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| thaiaddress-0.2.1.tar.gz | 252.4 kB | Details |
Release files / thaiaddress-0.2.1.tar.gz
| Download URL | thaiaddress-0.2.1.tar.gz |
|---|---|
| Size | 252.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1f8c8a936b5ec3b43e84d56d54af71466f9c796b667037583ce32a935c3faa4f
|
|
BLAKE2b-256 checksum How to use checksums |
2836603c39fad611785dbe1b0c8d022314ec160aa5168ab27c8510f97d90e305
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|