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.2.tar.gz
(481.9 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
vnaddress-1.0.2-py3-none-any.whl
(527.0 kB
view details)
File details
Details for the file vnaddress-1.0.2.tar.gz.
File metadata
- Download URL: vnaddress-1.0.2.tar.gz
- Upload date:
- Size: 481.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
82b2f7aaa9b005b3a0b0f0493316611109897f0d7ee0a91597df8dba092c46b3
|
|
| MD5 |
471bd815b5ab8bddb21ffc413e175c4b
|
|
| BLAKE2b-256 |
6aaef0708fb71137fb31aeb68e35d51326066a9319f1bcb7f45be61d55d11e44
|
File details
Details for the file vnaddress-1.0.2-py3-none-any.whl.
File metadata
- Download URL: vnaddress-1.0.2-py3-none-any.whl
- Upload date:
- Size: 527.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d7762916af2a8e930ec04a71e3c3dfac0a44f49336f6b80e77bb8bc809f392a
|
|
| MD5 |
b426d6d3f6c2d8ebb1633ccb7245a478
|
|
| BLAKE2b-256 |
9e4a7e8c299ffa664de6df8248d185a47e85919b57ab56fc67f54b1abf5e7b80
|