A package for parsing Vietnamese address
Project description
Bộ chuẩn hóa địa chỉ Việt Nam (English below)
A package for parsing Vietnamese address
Tính năng
- Xử lỹ những tên viết tắt thông dụng
- Sửa chính tả
- Sửa lỗi thứ tự tên đơn vị hành chính
- Thêm prefix (xã, huyện, tỉnh, ...)
Cài đặt qua PyPi
pip3 install vnaddress
Testing
from vnaddress import VNAddressStandardizer
address = VNAddressStandardizer(raw_address = "Dicjh Vongj Haaju", comma_handle = True)
address.execute()
# output
# phường Dịch Vọng Hậu, quận Cầu Giấy, thành phố Hà Nội
address = VNAddressStandardizer(raw_address = "Dicjh Vongj Haaju, ", comma_handle = True, detail=True)
address.execute()
# output
# {'result': 'phường Dịch Vọng Hậu, quận Cầu Giấy, thành phố Hà Nội', 'match': {'match_address': 'Dịch Vọng Hậu, Cầu Giấy, Hà Nội', 'match_percent': 100}, 'missing': ['TTP', 'QH'], 'detail': {'PX': 'Dịch Vọng Hậu', 'QH': 'Cầu Giấy', 'TTP': 'Hà Nội'}}
[English]
Features
- Handling common abbreviations
- Edit the spelling
- Correct the order of administrative unit names
- Add prefix (commune, district, province, ...)
Install via PyPi
pip3 install vnaddress
Testing
from vnaddress import VNAddressStandardizer
address = VNAddressStandardizer(raw_address = "Dicjh Vongj Haaju", comma_handle = True)
address.execute()
# output
# phường Dịch Vọng Hậu, quận Cầu Giấy, thành phố Hà Nội
address = VNAddressStandardizer(raw_address = "Dicjh Vongj Haaju, ", comma_handle = True, detail=True)
address.execute()
# output
# {'result': 'phường Dịch Vọng Hậu, quận Cầu Giấy, thành phố Hà Nội', 'match': {'match_address': 'Dịch Vọng Hậu, Cầu Giấy, Hà Nội', 'match_percent': 100}, 'missing': ['TTP', 'QH'], 'detail': {'PX': 'Dịch Vọng Hậu', 'QH': 'Cầu Giấy', 'TTP': 'Hà Nội'}}
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
vnaddress-1.0.4.tar.gz
(927.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vnaddress-1.0.4.tar.gz.
File metadata
- Download URL: vnaddress-1.0.4.tar.gz
- Upload date:
- Size: 927.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db082e7ec179c420e169f94d0f2f348873d9cc5c6f40464fcfed79dd88101c6b
|
|
| MD5 |
abc6a22c58b86dbd54d84f2193d5c4d0
|
|
| BLAKE2b-256 |
eae414ef083c5fb73530dc9a36f63b3e6e0368a029b62393662986c0c0b98b54
|
File details
Details for the file vnaddress-1.0.4-py3-none-any.whl.
File metadata
- Download URL: vnaddress-1.0.4-py3-none-any.whl
- Upload date:
- Size: 1.4 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b896a43d8f1779734ccff09b3ea89100b78ff9a6b14da0f81d1f74dc4e1ab57
|
|
| MD5 |
fdfe58645d47ee9bceac67e66f025c2f
|
|
| BLAKE2b-256 |
41100d1b206e399c887ec223cf67e302171ec3f56af36fcd07f38be5eea30ea6
|