Skip to main content

Text Clustering

This repository contains tools to easily embed and cluster texts as well as label clusters and produce visualizations of those labeled clusters.

Install

Install the library to get started:

pip install --upgrade bocluster

Usage

The pipeline can be used following the code block below.

from datasets import load_dataset
from bocluster.cluster import BoClusterClassifier

# load a Tibetan language text dataset
ds = load_dataset('billingsmoore/LotsawaHouse-bo-en', split='train')

# initilialize a BoClusterClassifier object
bcc = BoClusterClassifier()

# fit the classifier on a set of texts
bcc.fit(ds['bo'][:1000])

# if you want to treat all data points as members of clusters, with no data treated as outliers
bcc.classify_outliers()

# show a visualization of results
bcc.show()

Metadata

Release files for bocluster 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bocluster 0.1.0
File Size Uploaded
bocluster-0.1.0.tar.gz 355.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bocluster 0.1.0
File Interpreter ABI Platform
bocluster-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 710.6 kB

Release files / bocluster-0.1.0.tar.gz

Download URL bocluster-0.1.0.tar.gz
Size 355.0 kB
Tags Source
SHA-256 checksum
How to use checksums
37bb3b4e8a271b09100b086fcd8ddc5c00696a16c66c445c650ad6b90e2fbfd7
BLAKE2b-256 checksum
How to use checksums
f153a9dad21c6794a6c96414e9cfc2a9a28bc340a20612e3c45f7cf7777df15b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Release files / bocluster-0.1.0-py3-none-any.whl

Download URL bocluster-0.1.0-py3-none-any.whl
Size 355.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b71a3faca93d2534156158b4b07ea269e5932aac52dda4d08e8f2bcfb5ef4a90
BLAKE2b-256 checksum
How to use checksums
d6531d1be857043e0f1f46c62067cdb97bc8fec0cf97e4b939cdc425f605ee6c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

0.0.15

2 release files

0.0.14

2 release files

0.0.13

2 release files

0.0.12

2 release files

0.0.11

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

1 release file

0.0.2

2 release files

0.0.1

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