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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
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
vnaddress-1.0.1-py3-none-any.whl
(526.9 kB
view details)
File details
Details for the file vnaddress-1.0.1-py3-none-any.whl.
File metadata
- Download URL: vnaddress-1.0.1-py3-none-any.whl
- Upload date:
- Size: 526.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ed73e02aa4982ef8c5788434e9a06c2da8e66ea8a51c2cde664b900adce9f34
|
|
| MD5 |
c8747e325302615652e0af4c8a1e6b02
|
|
| BLAKE2b-256 |
93f23f91a7ff8c2152a55f82ad020c2b9ae63a10ce766c03694e3fa43edd5324
|