Super Simple Topic Clustering
Super Simple Topic Clustering is as the name suggests, feed it an array of sentences and it will cluster them with human-readable names.
Quick Start
pip install labelled-topic-clustering
from labelled_topic_clustering import TopicClusterer
HF_TOKEN = '...'
MODEL_ID="sentence-transformers/all-mpnet-base-v2"
sentences = ["the weather is good", "my dog ate my homework"]
clusterer = TopicClusterer(
HF_TOKEN, MODEL_ID,
debug=True,
model_cache_dir="an/absolute/path/that/is/a/good/place/to/store/large/files"
)
clusters = clusterer.get_clusters(sentences, 0.5, 2)
clusters_labelled = clusterer.get_labels_from_clusters(clusters, sentences)
Metadata
Release files for labelled-topic-clustering 1.0.15
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| labelled-topic-clustering-1.0.15.tar.gz | 5.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| labelled_topic_clustering-1.0.15-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.3 kB
Release files / labelled-topic-clustering-1.0.15.tar.gz
| Download URL | labelled-topic-clustering-1.0.15.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bf073db396feecebb84256eaeb70531c3ec305b42155c569349a66cdeb03d349
|
|
BLAKE2b-256 checksum How to use checksums |
a709a075af59802091e1a7b78697c6031e968bbbad92b76c3275afa1877576b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.9.19
|
Release files / labelled_topic_clustering-1.0.15-py3-none-any.whl
| Download URL | labelled_topic_clustering-1.0.15-py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
41321d3d9f1513a65442245432dd921f6b99a08009144e25d91565a9d77d0de6
|
|
BLAKE2b-256 checksum How to use checksums |
a4b217ae997008cd7933792f2fda848939426c9ba074872b6ceb9aa91b6aaa4a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.9.19
|