fasttext-reducer
A tiny package (and standalone script) for downloading any pretrained fasttext word vector model to any desired location and then reducing its number of dimensions.
Installation
Either run the following to install from PyPI:
pip install fasttext-reducer
Or clone the repository and install the package using pip install .
Example usage
To download the English pretrained model, reduce it to 30 dimensions, and save it to /Users/admin/, you can run the following command:
fasttext-reduce --root_dir /Users/admin --lang en --dim 30
You can also use the package within Python:
from fasttext_reducer.reduce_fasttext_models import reduce_fasttext_models
reduce_fasttext_models('/Users/admin', 'en', 30)
Release files for fasttext-reducer 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fasttext_reducer-0.1.3.tar.gz | 3.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fasttext_reducer-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.9 kB
Release files / fasttext_reducer-0.1.3.tar.gz
| Download URL | fasttext_reducer-0.1.3.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
49cf2fc214bd82138a174a833085ea0741f912c50fefd43dc91c684779672e44
|
|
BLAKE2b-256 checksum How to use checksums |
164d62a336d4a5656b2db8066bdd052a34476b617cd6346fd06268e42c105616
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|
Release files / fasttext_reducer-0.1.3-py3-none-any.whl
| Download URL | fasttext_reducer-0.1.3-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4763c7a6f8babe4074d2849a1c6f10c3e4fe885f32cdb72bbf2640407e97a126
|
|
BLAKE2b-256 checksum How to use checksums |
126accd38b5ba9ca2e422c4c7f3a31d966419ab04c8fa72428d1ea71ffdccb72
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|