counterix
A small toolkit to generate count-based PPMI-weighed SVD Distributional Semantic Models.
Install
pip install counterix
or, after a git clone:
python3 setup.py install
Use
Generate
To generate a raw count matrix from a tokenized corpus, run:
counterix generate \
--corpus /abs/path/to/corpus/txt/file \
--min-count frequency_threshold \
--win-size window_size
If the --output parameter is not set, the output files will be saved to the corpus directory.
Weigh
To weigh a raw count model with PPMI, run:
counterix weigh --model /abs/path/to/raw/count/npz/model
SVD
To apply SVD on a PPMI-weighed model, with k=10000, run:
counterix svd \
--model /abs/path/to/ppmi/npz/model \
--dim singular_vectors_final_dim
To control the number of threads used during SVD, run counterix with env OMP_NUM_THREADS=1
Metadata
Release files for counterix 1.2.2
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 |
|---|---|---|---|---|
| counterix-1.2.2.tar.gz | 6.4 kB | Without provenance | Details for counterix-1.2.2.tar.gz |
Release files / counterix-1.2.2.tar.gz
| Download URL | counterix-1.2.2.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
20f6a1eab665c5d27cbd97aea8272d3461abd62041bed39c11c5e347657dc1cc
|
|
BLAKE2b-256 checksum How to use checksums |
a6fda2a94766afe726f8e1502bdd2b6a963fe07c066e9449429130b45fb868b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.5
|
Security for counterix 1.2.2
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.