Topic Modeling Toolkit - Python Library
This library aims to automate Topic Modeling research-related activities.
Data preprocessing and dataset computing
Model training (with parameter grid-search), evaluating and comparing
Graph building
Computing KL-divergence between p(c|t) distributions
Datasets/models/kl-distances reporting
tests |
|
|---|---|
package |
Overview
This library serves as a higher level API around the BigARTM (artm python interface) library and exposes it conviniently through the command line.
Key features of the Library:
Flexible preprocessing pipelines
Optimization of classification scheme with an evolutionary algorithm
Fast model inference with parallel/multicore execution
Persisting of models and experimental results
Visualization
Installation
$ git clone https://github.com/boromir674/topic-modeling-toolkit.git $ chmod +x topic-modeling-toolkit/build_artm.sh $ # build and install BigARTM library in /usr/local and create python3 wheel $ topic-modeling-toolkit/build_artm.sh $ ls bigartm/build/python/bigartm*.whl
python -m pip install bigartm/build/python/path-python-wheel
$ cd topic-modeling-toolkit $ pip install .
If the above fails try again including manual installation of dependencies
$ cd topic-modeling-toolkit $ pip install -r requirements.txt $ pip install .
Usage
A sample example is below.
$ current_dir=$(echo $PWD) $ export COLLECTIONS_DIR=$current_dir/datasets-dir $ mkdir $COLLECTIONS_DIR $ transform posts pipeline.cfg my-dataset $ train my-dataset train.cfg plsa-model --save $ make-graphs --model-labels "plsa-model" --allmetrics --no-legend $ xdg-open $COLLECTIONS_DIR/plsa-model/graphs/plsa*prpl*
Citation
Vorontsov, K. and Potapenko, A. (2015). Additive regularization of topic models. Machine Learning, 101(1):303–323.
Metadata
Release files for topic-modeling-toolkit 0.5.6
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 | |
|---|---|---|---|---|
| topic-modeling-toolkit-0.5.6.tar.gz | 10.8 MB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| topic_modeling_toolkit-0.5.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.8 MB
Release files / topic-modeling-toolkit-0.5.6.tar.gz
| Download URL | topic-modeling-toolkit-0.5.6.tar.gz |
|---|---|
| Size | 10.8 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
654818986aaaf12b96b02d408f37684ea3691e515d8e736f6293eb73fd6fe999
|
|
BLAKE2b-256 checksum How to use checksums |
a9605af5385f7c3ebbb25fe5611df20c89d2a5bb3654885b81b1c71f4819d8b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
|
Release files / topic_modeling_toolkit-0.5.6-py3-none-any.whl
| Download URL | topic_modeling_toolkit-0.5.6-py3-none-any.whl |
|---|---|
| Size | 15.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
da3b5c6d4122c65c472c8214a042358e05023d91dca4be05f0cfd279b7586fd4
|
|
BLAKE2b-256 checksum How to use checksums |
3ded644f0d0e707f0367b6b2df944b498ff9359708ce86d295a512fc6e9c6e0f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
|
Security for topic-modeling-toolkit 0.5.6
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.