Read and use many word embedding formats
Project description
🐍 snakefusion
Introduction
snakefusion
is a Python package for reading, writing, and using finalfusion,
fastText, floret, GloVe, and word2vec embeddings. This package is a thin
wrapper around the Rust finalfusion crate.
snakefusion
supports the same types of embeddings as finalfusion
:
- Vocabulary:
- No subwords
- Subwords
- Embedding matrix:
- Array
- Memory-mapped
- Quantized
- Format:
- fastText
- finalfusion
- floret
- GloVe
- word2vec
Building from source
Building snakefusion
from source requires a Rust toolchain that is installed
through rustup and setuptools-rust
:
$ pip install --upgrade setuptools-rust
You can then build and install snakefusion
in your environment:
$ pip install .
Documentation
Read the snakefusion documentation for a quickstart and API reference.
You use finalfrontier to train new embeddings, or download some pretrained embeddings.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file snakefusion-0.1.5.tar.gz
.
File metadata
- Download URL: snakefusion-0.1.5.tar.gz
- Upload date:
- Size: 86.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d702e499bee9bbe0ab65084eab11cad71a362dec55010c16f4dc96d996cb967 |
|
MD5 | e4101c7886fc3157400b2e11703cb67c |
|
BLAKE2b-256 | 8b66865608d57f8f896c072f53f50c1c5367561ebfd1853f2b4e8a77c4bae785 |
File details
Details for the file snakefusion-0.1.5-cp36-abi3-win_amd64.whl
.
File metadata
- Download URL: snakefusion-0.1.5-cp36-abi3-win_amd64.whl
- Upload date:
- Size: 654.2 kB
- Tags: CPython 3.6+, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb181fb18963793b877d81172a82a48540448b361af67c4a1b12bcb265efa7af |
|
MD5 | 99edb1174378ea926ad9510b4e318d14 |
|
BLAKE2b-256 | b83894a8a6b4119b00098a4354d8e24a529f1fb323f6650fcaa344c74d66c202 |
File details
Details for the file snakefusion-0.1.5-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: snakefusion-0.1.5-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 5.4 MB
- Tags: CPython 3.6+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 785ee03039a8f679154c131c0442f94445ad33994683627509edce888160b49a |
|
MD5 | 225687bfe65b9a5bacd65b50f88ff71d |
|
BLAKE2b-256 | e41d4846a9f4103a149aac5bc5d232a719f5827f1d505c25c5542b82292daf0f |
File details
Details for the file snakefusion-0.1.5-cp36-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
.
File metadata
- Download URL: snakefusion-0.1.5-cp36-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
- Upload date:
- Size: 1.5 MB
- Tags: CPython 3.6+, macOS 10.9+ universal2 (ARM64, x86-64), macOS 10.9+ x86-64, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c50b4fcb46417fe092c9e82f22e2efbe4307d0a203e53ac0abf9300c81ecb3b2 |
|
MD5 | d225b8d228d940776f20ba3edb6723a6 |
|
BLAKE2b-256 | 8acf49eff451f367b071538339d48a8bd57020f14607353bdbd16f822830a623 |