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

sentences = ["the weather is good", "my dog ate my homework"] # json.load(f)
HF_TOKEN = '...'
MODEL_ID="sentence-transformers/all-mpnet-base-v2"

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)
print(clusters)

clusters_labelled = clusterer.get_labels_from_clusters(clusters, sentences)
print(clusters_labelled)

Metadata

Release files for labelled-topic-clustering 1.0.14

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.14
File Size Uploaded
labelled_topic_clustering-1.0.14.tar.gz 5.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for labelled-topic-clustering 1.0.14
File Interpreter ABI Platform
labelled_topic_clustering-1.0.14-py3-none-any.whl Python 3 none any Details

Total release size: 11.4 kB

Release files / labelled_topic_clustering-1.0.14.tar.gz

Download URL labelled_topic_clustering-1.0.14.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
b4737c558fdcb0a652a19541b88604e3c237bef93d9cfa8d0d8696bae77dc602
BLAKE2b-256 checksum
How to use checksums
038cb60323b3e33846a57303b1defc50ca7f8bc1021072fcd95aa452341e2622
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.14-py3-none-any.whl

Download URL labelled_topic_clustering-1.0.14-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d540681eecbdab856f72a9f7ee844237d3f428ccd13ec72dbd5812f9bc3cb2f7
BLAKE2b-256 checksum
How to use checksums
4e516d44c60de4fd6b3c8ff55c086309472ed190d3de349db8cea31031d4b1cf
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

1.0.15

2 release files

This release

1.0.14 This release

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