Описание
Разборка адреса на типы. Адаптация библиотеки usaddress под украинские адреса
Read this in other language: English, Русский, Український
Требования
- python3
- jackmartin.parserator
Установка
pip3 install uaddress
Установка локально
python3 setup.py install --user
Обучение модели
parserator train training/data.xml uaddress
Когда другое расположение модели
parserator train training/data.xml uaddress --modelfile anotherpath/uaddr.crfsuite
Тестирование модели
parserator label training/raw.csv training/data.xml uaddress
Когда другое расположение модели
parserator label trainig/raw.csv training/data.xml uaddress --modelfile anotherpath/uaddr.crfsuite
Структура
| Файл | Описание |
|---|---|
| training/data.xml | Набор данных для модели |
| training/raw.csv | Список адресов для обучения или проверки |
| uaddress/uaddr.crfsuite | NLP модель |
Примеры
Пример скрипта
python3 example.py
Типы
| Название | Описание |
|---|---|
| Country | Страна |
| RegionType | Тип области |
| Region | Область |
| CountyType | Тип района |
| County | Район |
| SubLocalityType | Тип подрайона |
| SubLocality | Подрайон |
| LocalityType | Тип населённого пункта |
| Locality | Населённый пункт |
| StreetType | Тип улицы |
| Street | Улица |
| HousingType | Тип корпуса |
| Housing | Корпус |
| HostelType | Тип общежития |
| Hostel | Общежитие |
| HouseNumberType | Тип номера дома |
| HouseNumber | Номер дома |
| HouseNumberAdditionally | Дополнительный номер дома |
| SectionType | Тип секции |
| Section | Секция |
| ApartmentType | Тип квартиры |
| Apartment | Квартира |
| RoomType | Тип комнаты |
| Room | Комната |
| Sector | Сектор |
| EntranceType | Тип подъезда |
| Entrance | Номер подъезда |
| FloorType | Тип этажа |
| Floor | Этаж |
| PostCode | Индекс |
| Manually | Набор типов для дальнейшей разборки адреса |
| NotAddress | Не адрес |
| Comment | Комментарий |
| AdditionalData | Дополнительные данные |
Metadata
Release files for uaddress 1.0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| uaddress-1.0.9.tar.gz | 79.8 kB | Without provenance | Details for uaddress-1.0.9.tar.gz |
Release files / uaddress-1.0.9.tar.gz
| Download URL | uaddress-1.0.9.tar.gz |
|---|---|
| Size | 79.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
742a489935923f2ffdda55a0945b1835c4132cfb7c91732a5fa5b28d7971a983
|
|
BLAKE2b-256 checksum How to use checksums |
f0ee30ea2ebaf56f7c88bb9f290f69299464e6c3644fc0aa2e8243143c3f38e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.2
|
Security for uaddress 1.0.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.