{"id":21476536,"url":"https://github.com/zehengl/ez-address-parser","last_synced_at":"2025-06-22T19:08:35.261Z","repository":{"id":54999854,"uuid":"232398635","full_name":"zehengl/ez-address-parser","owner":"zehengl","description":"A parser for Canadian postal addresses","archived":false,"fork":false,"pushed_at":"2025-06-10T15:12:34.000Z","size":4411,"stargazers_count":19,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-22T19:08:08.482Z","etag":null,"topics":["address-parser","canadian","conditional-random-fields","python"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/ez-address-parser/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zehengl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-01-07T19:17:40.000Z","updated_at":"2025-06-10T15:12:19.000Z","dependencies_parsed_at":"2023-11-27T17:26:17.008Z","dependency_job_id":"cfd789df-f1dd-4db8-a827-a714ba84a2bf","html_url":"https://github.com/zehengl/ez-address-parser","commit_stats":{"total_commits":95,"total_committers":3,"mean_commits":"31.666666666666668","dds":"0.021052631578947323","last_synced_commit":"09f2a55e43d319ee7b8b6db9e0e9dd188be2670f"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/zehengl/ez-address-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zehengl%2Fez-address-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zehengl%2Fez-address-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zehengl%2Fez-address-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zehengl%2Fez-address-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zehengl","download_url":"https://codeload.github.com/zehengl/ez-address-parser/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zehengl%2Fez-address-parser/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261348751,"owners_count":23145313,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["address-parser","canadian","conditional-random-fields","python"],"created_at":"2024-11-23T11:09:23.746Z","updated_at":"2025-06-22T19:08:30.238Z","avatar_url":"https://github.com/zehengl.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"https://cdn2.iconfinder.com/data/icons/seo-and-website/100/SEO_search_word-512.png\" alt=\"logo\" height=\"128\"\u003e\n\u003c/div\u003e\n\n# ez-address-parser\n\n[![pytest](https://github.com/zehengl/ez-address-parser/actions/workflows/pytest.yml/badge.svg)](https://github.com/zehengl/ez-address-parser/actions/workflows/pytest.yml)\n![coding_style](https://img.shields.io/badge/code%20style-black-000000.svg)\n![PyPI - License](https://img.shields.io/pypi/l/ez-address-parser)\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/ez-address-parser)\n![PyPI - Wheel](https://img.shields.io/pypi/wheel/ez-address-parser)\n[![Downloads](https://static.pepy.tech/badge/ez-address-parser)](https://pepy.tech/project/ez-address-parser)\n[![GitHub Pages](https://github.com/zehengl/ez-address-parser/actions/workflows/gh-deploy.yml/badge.svg)](https://github.com/zehengl/ez-address-parser/actions/workflows/gh-deploy.yml)\n\nA parser for Canadian postal addresses\n\n## Install\n\nFrom [PyPi](https://pypi.org/project/ez-address-parser/)\n\n    pip install ez-address-parser\n\nFrom [GitHub](https://github.com/zehengl/ez-address-parser)\n\n    pip install git+https://github.com/zehengl/ez-address-parser.git\n\n## Usage\n\n### Command Line\n\n    python -m ez_address_parser --address \u003csome-address\u003e\n\n### Code (with pretrained model)\n\n```python\nfrom ez_address_parser import AddressParser\n\nap = AddressParser()\n\naddress = input(\"Address: \")\nresult = ap.parse(address)\nfor token, label in result:\n    print(f\"{token:20s} -\u003e {label}\")\n```\n\n### Code (without pretrained model)\n\n```python\nfrom ez_address_parser import AddressParser\n\nap = AddressParser(use_pretrained=False)\n\ndata = [\n    [\n        ('123', 'StreetNumber'),\n        ('Main', 'StreetName'),\n        ('St', 'StreetType'),\n        ('E', 'StreetDirection')\n    ],\n    ...\n] # list of list of (\u003ctoken\u003e, \u003clabel\u003e) tuple\n\nap.train(data)\n\naddress = input(\"Address: \")\nresult = ap.parse(address)\nfor token, label in result:\n    print(f\"{token:20s} -\u003e {label}\")\n```\n\n## Credits\n\n- [Icon][1] by [Rakhmat Setiawan][2]\n\n[1]: https://www.iconfinder.com/icons/3059893/find_magnifier_search_seo_word_icon\n[2]: https://www.iconfinder.com/rsetiawan93\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzehengl%2Fez-address-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzehengl%2Fez-address-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzehengl%2Fez-address-parser/lists"}