SimpleTopicModel
Easily identifying themes in text
What is this?
This is a package that wraps up common theme identification (Topic Modeling) techniques in Python. SimpleTopicModel is currently under development, and subject to change.
How do I get it?
Currently, you can git clone this repo and import it locally. Be sure to run pip install -r requirements.txt in the repo folder, to ensure you've got the relevant requirements.
I'm working on setting up a pypi release, slated for the near future.
How do I use it?
Use couldn't be easier. Most topic modeling techniques follow the same paradigm:
- Convert your text to numbers (embeddings): The excellent
Sentence-Transformerspackage does this for us, using Microsoft's Mini-LM model. - Reduce Dimensionality: This package uses
UMAP, but you could substitute TSNE or PCA if you wanted to. - Cluster: We're using
HDBSCANto build hierarchial clusters (which we'd like to traverse in a later release), but you could also use a KNN, GMM, etc. - Visualize (Optional): This displays the reduced dimension embeddings in 3d (or 2d) space, so you can get a feel for how "tight" the clusters are.
What's next?
- Clean up/professionalize this repo & releases
- Add automated cluster naming techniques (cTF-IDF, LLM-assisted naming, etc)
- Make a sweet logo & eyecatching graphics
- Fix the docs page
Acknowledgements:
This builds on previous work including Gensim (LDA), BERTopic, Top2Vec, and pyLDAvis. They're all excellent, more mature alternatives to SimpleTopicModel, and I'd encourage you to go check them out!
Metadata
Release files for SimpleTopicModel 0.0.8
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 |
|---|---|---|---|---|
| SimpleTopicModel-0.0.8.tar.gz | 17.0 kB | Without provenance | Details for SimpleTopicModel-0.0.8.tar.gz |
Release files / SimpleTopicModel-0.0.8.tar.gz
| Download URL | SimpleTopicModel-0.0.8.tar.gz |
|---|---|
| Size | 17.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5ce0858691453eb1fd753f547a9c51734a1c90cde7be60c6feae0454d150a586
|
|
BLAKE2b-256 checksum How to use checksums |
e837cffcc304168b6b5d237caa6686ce170b06aad6769e02501994387e4994fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.13
|
Security for SimpleTopicModel 0.0.8
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.