GhuLDA
Funções simples para pré-processar textos e treinar modelos de tópicos LDA (Latent Dirichlet Allocation), construído sobre spaCy e gensim.
Instalação
pip install GhuLDA
Baixe também o modelo de português do spaCy:
python -m spacy download pt_core_news_lg
O que cada parte faz
| Função / Classe | Para que serve |
|---|---|
Tokenizer |
Tokeniza, lematiza e filtra tokens por classe gramatical (substantivo, verbo, adjetivo, nome próprio). |
add_bigram |
Junta pares de palavras que aparecem juntas com frequência (ex.: aprendizado_maquina). |
create_dictionary |
Cria o dicionário de termos, com filtro opcional de palavras muito raras/frequentes. |
create_corpus |
Converte os documentos em bag-of-words. |
ModelLDA |
Treina o modelo LDA (alpha/eta automáticos por padrão). |
calc_coherence |
Calcula a coerência dos tópicos (c_v, u_mass, etc.). |
Requisitos
- Python 3.10+
gensim,spacy,tqdm(instalados automaticamente)
Licença
MIT — Erick Ghuron
Metadata
Release files for GhuLDA 2.0.2
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 |
|---|---|---|---|---|
| ghulda-2.0.2.tar.gz | 3.8 kB | Without provenance | Details for ghulda-2.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ghulda-2.0.2-py3-none-any.whl | Python 3 | none | any | Details for ghulda-2.0.2-py3-none-any.whl |
Total release size: 8.0 kB
Release files / ghulda-2.0.2.tar.gz
| Download URL | ghulda-2.0.2.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e859c08440208898909e66effba3f2b0703e41820af369d2daf4955303e34aff
|
|
BLAKE2b-256 checksum How to use checksums |
a6f1a43f9d2d06273e9f10597c19c944d10d5aafc2fe187776befd31b3e03d91
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Release files / ghulda-2.0.2-py3-none-any.whl
| Download URL | ghulda-2.0.2-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5b2c7d55bde551e3dee1f2f85e0de4aee18492da8ee6adabc00907437fd2e349
|
|
BLAKE2b-256 checksum How to use checksums |
62397ac746845b3f8a1ebf8c9291a88e20487321a1ef4b28e2d4179745b96917
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Security for GhuLDA 2.0.2
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.