Skip to main content

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)

Source distribution for labelled-topic-clustering 1.0.15
File Size Uploaded
labelled-topic-clustering-1.0.15.tar.gz 5.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for labelled-topic-clustering 1.0.15
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

1.1.0

2 release files

1.0.19

2 release files

1.0.18

2 release files

1.0.17

2 release files

This release

1.0.15 This release

2 release files

1.0.14

2 release files

1.0.12

2 release files

1.0.11

2 release files

1.0.10

2 release files

1.0.9

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.4

2 release files

1.0.3

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