Skip to main content

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

  1. Xử lỹ những tên viết tắt thông dụng
  2. Sửa chính tả
  3. Sửa lỗi thứ tự tên đơn vị hành chính
  4. 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

  1. Handling common abbreviations
  2. Edit the spelling
  3. Correct the order of administrative unit names
  4. 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


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.3.tar.gz (927.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vnaddress-1.0.3-py3-none-any.whl (1.4 MB view details)

Uploaded Python 3

File details

Details for the file vnaddress-1.0.3.tar.gz.

File metadata

  • Download URL: vnaddress-1.0.3.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

Hashes for vnaddress-1.0.3.tar.gz
Algorithm Hash digest
SHA256 c2ff8ef4a351b24414c871e506f594321414af21b346860d55f5584c068c0bfd
MD5 8d445f12af2d99d71d929cb61c61fa08
BLAKE2b-256 8c90f35b6fc6ce25443213b408ee7a5ebe15d3af54d6d8802b0699366bad5f2a

See more details on using hashes here.

File details

Details for the file vnaddress-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: vnaddress-1.0.3-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

Hashes for vnaddress-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f5b39fb8285e3be635ba2e6fb23fa0cbebfebcf10d6ff3eded911ff4ab9508f1
MD5 0416caa90960a8e984c70232d7c5c587
BLAKE2b-256 c5a31b338605b74105c6a9edfe140db3fb20bdded238cc3866d0a94f93d99d00

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page