Skip to main content

Read and use many word embedding formats

Project description

🐍 snakefusion

Documentation Status pypi Version

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

snakefusion-0.1.5.tar.gz (86.4 kB view details)

Uploaded Source

Built Distributions

snakefusion-0.1.5-cp36-abi3-win_amd64.whl (654.2 kB view details)

Uploaded CPython 3.6+ Windows x86-64

snakefusion-0.1.5-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.4 MB view details)

Uploaded CPython 3.6+ manylinux: glibc 2.17+ x86-64

snakefusion-0.1.5-cp36-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (1.5 MB view details)

Uploaded CPython 3.6+ macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64

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

Hashes for snakefusion-0.1.5.tar.gz
Algorithm Hash digest
SHA256 3d702e499bee9bbe0ab65084eab11cad71a362dec55010c16f4dc96d996cb967
MD5 e4101c7886fc3157400b2e11703cb67c
BLAKE2b-256 8b66865608d57f8f896c072f53f50c1c5367561ebfd1853f2b4e8a77c4bae785

See more details on using hashes here.

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

Hashes for snakefusion-0.1.5-cp36-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 eb181fb18963793b877d81172a82a48540448b361af67c4a1b12bcb265efa7af
MD5 99edb1174378ea926ad9510b4e318d14
BLAKE2b-256 b83894a8a6b4119b00098a4354d8e24a529f1fb323f6650fcaa344c74d66c202

See more details on using hashes here.

File details

Details for the file snakefusion-0.1.5-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for snakefusion-0.1.5-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 785ee03039a8f679154c131c0442f94445ad33994683627509edce888160b49a
MD5 225687bfe65b9a5bacd65b50f88ff71d
BLAKE2b-256 e41d4846a9f4103a149aac5bc5d232a719f5827f1d505c25c5542b82292daf0f

See more details on using hashes here.

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

File hashes

Hashes for snakefusion-0.1.5-cp36-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 c50b4fcb46417fe092c9e82f22e2efbe4307d0a203e53ac0abf9300c81ecb3b2
MD5 d225b8d228d940776f20ba3edb6723a6
BLAKE2b-256 8acf49eff451f367b071538339d48a8bd57020f14607353bdbd16f822830a623

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page