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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

snakefusion-0.1.4-cp36-abi3-win_amd64.whl (654.4 kB view details)

Uploaded CPython 3.6+ Windows x86-64

snakefusion-0.1.4-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.4-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.4-cp36-abi3-win_amd64.whl.

File metadata

  • Download URL: snakefusion-0.1.4-cp36-abi3-win_amd64.whl
  • Upload date:
  • Size: 654.4 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.4-cp36-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 b8f8e5e8d423aaef1760abef0586de51cf4253e8093e3e217efc7b3aa325f365
MD5 e953a444fa04a130d452dee834188265
BLAKE2b-256 ade6294ee9d5232647f143babdd245e07baecc77f665baef8d7e297bf75db40e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for snakefusion-0.1.4-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 78b7f5b0ea602d42e88e202346fc84409dad887f56e3b8a20d4db4a397ee8be6
MD5 64ea2a767125af67b5f60063b0b15be4
BLAKE2b-256 3e701ccbb92d4851b5f3f49d9026d0cd1b745fa27848589376a5490e67f66051

See more details on using hashes here.

File details

Details for the file snakefusion-0.1.4-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.4-cp36-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 6e3df024cf7f2914618a3c4fa1092687a0c0b4df1244ab48245b6fb5f012db82
MD5 5ff5980c9c0164c6d02de2e71deb44c3
BLAKE2b-256 66df6fe439e4652cd144cbe8899b7647522cc89dec889d328899f98248df6afd

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