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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bocluster-0.1.0.tar.gz | 355.0 kB | Without provenance | Details for bocluster-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bocluster-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for bocluster-0.1.0-py3-none-any.whl |
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
|
Security for bocluster 0.1.0
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.