Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

tomba

Built with spaCy CI

Identifique endereços, bairros e outras localizações brasileiras em um texto. 🏘

Não sabe o que é o Tomba?


Essa biblioteca é experimental e está no seu estágio inicial de desenvolvimento.

Objetivo:

import tomba


tomba.get_locations(
    "Contratação de empresa de engenharia para executar obras "
    "de pavimentação localizados no CEP 44100-000, no bairro Tomba."
)

Saída:

[
    {"type": "zipcode", "start": 92, "end": 123},
    {"type": "neighborhood", "start": 113, "end": 118}
]

Desenvolvimento

Utilizamos o poetry para empacotamento e gerenciamento das dependências.

Para instalar as dependências, execute poetry install.

Para configurar o spacy em português, execute:

poetry run python -m spacy download pt_core_news_sm

Para rodar os testes:

poetry run pytest

Para gerar um novo modelo:

poetry run python tomba/models.py

Metadata

Release files for tomba 0.1.1a1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tomba 0.1.1a1
File Size Uploaded
tomba-0.1.1a1.tar.gz 16.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tomba 0.1.1a1
File Interpreter ABI Platform
tomba-0.1.1a1-py3-none-any.whl Python 3 none any Details

Total release size: 33.1 kB

Release files / tomba-0.1.1a1.tar.gz

Download URL tomba-0.1.1a1.tar.gz
Size 16.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b6de9955d9b94492767d0c67529597f74163f5a359cc65793b9d95502f2717bb
BLAKE2b-256 checksum
How to use checksums
818f260720aec70add0a98c05c7ecec2cd5486ec3bcf3b05f397a0222621518a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/3.8.5 Linux/4.19.104-microsoft-standard

Release files / tomba-0.1.1a1-py3-none-any.whl

Download URL tomba-0.1.1a1-py3-none-any.whl
Size 17.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f8feaa9e454eef1d41d27ef6ad509e26e973f54b43008ca650f061481d851ee5
BLAKE2b-256 checksum
How to use checksums
efd46d2e487c229ec7beecf482d9fa77f114ee68680797dfffda14e7e931ef11
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/3.8.5 Linux/4.19.104-microsoft-standard

Release history Release notifications | RSS feed

This release

0.1.1a1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page