# VNAddressCorrector
Correct name of 3 level division: ward (Phường/Xã), district (Quận/Huyện), province(Tỉnh/Thành Phố) in Vietnam address.
## Installation
```bash
pip install vnac
```
## Usage
```python
>>> from vnac.corrector import AddressCorrector
>>> # Address must be in string format "..., {ward}, {district}, {province}" (split by ',')
>>> address = "Số 36A Đường 29, Ấp Tân Tiến, Tân Thìng Hội, Củ Chí, HCM"
>>> corrector = AddressCorrector()
>>> corrected = corrector.correct(address)
>>> corrected
Address(country=None, province=Division(name='HCM', code=79), district=Division(name='Củ Chi', code=None), ward=Division(name='Tân Thông Hội', code=None), street=Division(name='Số 36A Đường 29, Ấp Tân Tiến', code=None))
>>>str(corrected)
"Số 36A Đường 29, Ấp Tân Tiến, Tân Thông Hội, Củ Chi, HCM"
```
Raw data
{
"_id": null,
"home_page": "https://github.com/jasonntn/VNAddressCorrector",
"name": "vnac",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8,<4.0",
"maintainer_email": "",
"keywords": "Vietnam,division,address,locality",
"author": "Ng\u00f4 Tr\u1ea7n Ng\u1ecdc S\u01a1n",
"author_email": "ntns1607@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/90/83/7bcaa08c69d63800938cca1ebb9c2e783b2d436dbad93e0d719a5fc70c3a/vnac-0.1.2.tar.gz",
"platform": null,
"description": "# VNAddressCorrector\n\nCorrect name of 3 level division: ward (Ph\u01b0\u1eddng/X\u00e3), district (Qu\u1eadn/Huy\u1ec7n), province(T\u1ec9nh/Th\u00e0nh Ph\u1ed1) in Vietnam address.\n\n## Installation\n```bash\npip install vnac\n```\n## Usage\n```python\n>>> from vnac.corrector import AddressCorrector\n>>> # Address must be in string format \"..., {ward}, {district}, {province}\" (split by ',')\n>>> address = \"S\u1ed1 36A \u0110\u01b0\u1eddng 29, \u1ea4p T\u00e2n Ti\u1ebfn, T\u00e2n Th\u00ecng H\u1ed9i, C\u1ee7 Ch\u00ed, HCM\"\n>>> corrector = AddressCorrector()\n>>> corrected = corrector.correct(address)\n>>> corrected\nAddress(country=None, province=Division(name='HCM', code=79), district=Division(name='C\u1ee7 Chi', code=None), ward=Division(name='T\u00e2n Th\u00f4ng H\u1ed9i', code=None), street=Division(name='S\u1ed1 36A \u0110\u01b0\u1eddng 29, \u1ea4p T\u00e2n Ti\u1ebfn', code=None))\n>>>str(corrected)\n\"S\u1ed1 36A \u0110\u01b0\u1eddng 29, \u1ea4p T\u00e2n Ti\u1ebfn, T\u00e2n Th\u00f4ng H\u1ed9i, C\u1ee7 Chi, HCM\"\n```\n",
"bugtrack_url": null,
"license": "",
"summary": "",
"version": "0.1.2",
"project_urls": {
"Homepage": "https://github.com/jasonntn/VNAddressCorrector",
"Repository": "https://github.com/jasonntn/VNAddressCorrector"
},
"split_keywords": [
"vietnam",
"division",
"address",
"locality"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "c628bb05a7c6e02ab453eed36596a390c88487ce8dd287e97c540ab91d23041d",
"md5": "ce33809ab95dc6a271b2ac202ec77e6c",
"sha256": "e11ae934c70dd5d78876fd23b21f9a63b05e3a259cdc1ae5d6bba5d2c9957dd9"
},
"downloads": -1,
"filename": "vnac-0.1.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "ce33809ab95dc6a271b2ac202ec77e6c",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8,<4.0",
"size": 4657,
"upload_time": "2023-08-07T01:27:54",
"upload_time_iso_8601": "2023-08-07T01:27:54.248557Z",
"url": "https://files.pythonhosted.org/packages/c6/28/bb05a7c6e02ab453eed36596a390c88487ce8dd287e97c540ab91d23041d/vnac-0.1.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "90837bcaa08c69d63800938cca1ebb9c2e783b2d436dbad93e0d719a5fc70c3a",
"md5": "0747c4111ca328b61e299e1da7c6e92f",
"sha256": "0dda49e5daf1cfb61b4dc958cc88798bf9c92fde9f9ba02a29f8fbf28deac418"
},
"downloads": -1,
"filename": "vnac-0.1.2.tar.gz",
"has_sig": false,
"md5_digest": "0747c4111ca328b61e299e1da7c6e92f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8,<4.0",
"size": 3891,
"upload_time": "2023-08-07T01:27:56",
"upload_time_iso_8601": "2023-08-07T01:27:56.120090Z",
"url": "https://files.pythonhosted.org/packages/90/83/7bcaa08c69d63800938cca1ebb9c2e783b2d436dbad93e0d719a5fc70c3a/vnac-0.1.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-08-07 01:27:56",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "jasonntn",
"github_project": "VNAddressCorrector",
"github_not_found": true,
"lcname": "vnac"
}