fastfloret: fastText + floret for your Python needs
This library is a fork of floret modified to build and run in modern (>3.13) Python.
A rough overview of the changes:
- Fix the build
- Allow using numpy 2 and up and make it mandatory
- Generate and upload updated wheels to Pypi
For compatibility, you may import it as floret:
import fastfloret as floret
Or not, I won't judge.
The original floret README is provided below for reference.
floret: fastText + Bloom embeddings for compact, full-coverage vectors with spaCy
floret is an extended version of fastText that can produce word representations for any word from a compact vector table. It combines:
- fastText's subwords to provide embeddings for any word
- Bloom embeddings ("hashing trick") for a compact vector table
Installation
pip install floret
Usage
Train floret vectors using the options:
mode:"floret", storing both words and subwords in the same compact hash tablehashCount: store each entry in 1-4 rows in the hash table (recommended:2)bucket: in combination withhashCount>1, the size of the hash table can be greatly reduced (recommended:25000--100000, reduced from the fastText default of2000000)minn: min length of char ngram (default:3)maxn: max length of char ngram (default:6)
import floret
# train vectors
model = floret.train_unsupervised(
"data.txt",
model="cbow",
mode="floret",
hashCount=2,
bucket=50000,
minn=3,
maxn=6,
)
# query vector
model.get_word_vector("broccoli")
# save full model
model.save_model("vectors.bin")
# export standard word-only vector table
model.save_vectors("vectors.vec")
# export floret vector table
model.save_floret_vectors("vectors.floret")
Note: with the default setting mode="fasttext", floret trains original
fastText vectors.
Use floret vectors in spaCy
Import floret vectors into spaCy v3.2+:
spacy init vectors LANG vectors.floret spacy_vectors_model --mode floret
Notes
floret contains all features of the original fasttext
module. See the fasttext
docs for more information.
The fasttext and floret binary formats saved with
model.save_model("model.bin") are not compatible.
Metadata
Release files for fastfloret 0.11.0
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 |
|---|---|---|---|---|
| fastfloret-0.11.0.tar.gz | 79.4 kB | With provenance | Details for fastfloret-0.11.0.tar.gz |
Built distributions (wheels)
Total release size: 5.6 MB
Release files / fastfloret-0.11.0.tar.gz
| Download URL | fastfloret-0.11.0.tar.gz |
|---|---|
| Size | 79.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2d601cb4610161cd7c26b5b6a97deef4709c813476f17b2ac470505fd448eb01
|
|
BLAKE2b-256 checksum How to use checksums |
9d5ab120d5af312d4a455ff8764540bccbd00844f84488e16ffac2766b246b97
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.
Transparency logRelease files / fastfloret-0.11.0-cp315-cp315t-musllinux_1_2_x86_64.whl
| Download URL | fastfloret-0.11.0-cp315-cp315t-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 817.6 kB |
| Tags | CPython 3.15 CPython 3.15 free-threading Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
4c458a76b1d7d5dc45c97d8ebfe0965154bdd066587f247ff3690a6c6a66dc3b
|
|
BLAKE2b-256 checksum How to use checksums |
2b270f5a2cbe0ea4cbee650838c50c90c8f3e3a9c983019f3a18925e776784f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.
Transparency logRelease files / fastfloret-0.11.0-cp315-cp315t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | fastfloret-0.11.0-cp315-cp315t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 323.2 kB |
| Tags | CPython 3.15 CPython 3.15 free-threading Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
3640e43b5c3774122a8826aeae066b1caad02b14b71dbb71c70e728e1f4159be
|
|
BLAKE2b-256 checksum How to use checksums |
acff499b1751346e58df55eec46a716b10b0e641e20f8986ee33a3cec43e6008
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.
Transparency logRelease files / fastfloret-0.11.0-cp315-cp315t-macosx_11_0_arm64.whl
| Download URL | fastfloret-0.11.0-cp315-cp315t-macosx_11_0_arm64.whl |
|---|---|
| Size | 235.6 kB |
| Tags | CPython 3.15 CPython 3.15 free-threading macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
ec287a1703eb1c97b946a550c1ff2029b2df54df34e93f1dfb379df3c78b6201
|
|
BLAKE2b-256 checksum How to use checksums |
b611bd26147c864215f1f609a998c64f784067d3618a580d15c53ad27ff94601
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.
Transparency logRelease files / fastfloret-0.11.0-cp314-cp314t-musllinux_1_2_x86_64.whl
| Download URL | fastfloret-0.11.0-cp314-cp314t-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 817.2 kB |
| Tags | CPython 3.14 CPython 3.14 free-threading Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
36bd291461627f03c08a6fca5818b2b23b56dcb45034138ba8453df941c7c20d
|
|
BLAKE2b-256 checksum How to use checksums |
409bf5bc55b8fd4c0d9fe72630ae156dc2a1de3adf5dff6c77c63aad8dd7bdfc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.
Transparency logRelease files / fastfloret-0.11.0-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | fastfloret-0.11.0-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 323.0 kB |
| Tags | CPython 3.14 CPython 3.14 free-threading Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
6507a3a5fe62236b2ddc2628dddecfbdf7b6f01295a82335b8ca031406595ac1
|
|
BLAKE2b-256 checksum How to use checksums |
5dce116078fd8c7431fa540d165a9d4df841db3bd26740439cea8b1928e3878a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.
Transparency logRelease files / fastfloret-0.11.0-cp314-cp314t-macosx_11_0_arm64.whl
| Download URL | fastfloret-0.11.0-cp314-cp314t-macosx_11_0_arm64.whl |
|---|---|
| Size | 235.4 kB |
| Tags | CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
e478dfc9ed4c0c65c465c1b13912557333f675037a184393818e18b6d0fd3145
|
|
BLAKE2b-256 checksum How to use checksums |
61257b7c04c573fbe4674e0cd0822f456fb8fc68cf24339c5dcd5e8385e51d0c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.
Transparency logRelease files / fastfloret-0.11.0-cp312-abi3-musllinux_1_2_x86_64.whl
| Download URL | fastfloret-0.11.0-cp312-abi3-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 812.4 kB |
| Tags | CPython 3.12 Linux musl 1.2+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
63e6e45771091998541b737285fdab6faa72482a2b4e1fa3c20892dcde0afca0
|
|
BLAKE2b-256 checksum How to use checksums |
5da4a752ef00d579d68e6b52f6ce207ac61a82feeb71699903ddeb35e362e077
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.
Transparency logRelease files / fastfloret-0.11.0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | fastfloret-0.11.0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 317.5 kB |
| Tags | CPython 3.12 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
8b3adbbbfcd01c2a2e9ee07df7c98a23ed180a316fb53b46892b72b542c0b7fd
|
|
BLAKE2b-256 checksum How to use checksums |
b8912fd688d693345c0637b42795b82de75ba668f388a7992f8c6fceca9e7e5b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.
Transparency logRelease files / fastfloret-0.11.0-cp312-abi3-macosx_11_0_arm64.whl
| Download URL | fastfloret-0.11.0-cp312-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 230.8 kB |
| Tags | CPython 3.12 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
91e2705423342282256f8b794e3bb8fdbda4991e4db3b291df0b55389129f6bf
|
|
BLAKE2b-256 checksum How to use checksums |
ac89cf7036ae559dcd385d6808e072f0477726604d387e30263ba5016aae436a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.
Transparency logRelease files / fastfloret-0.11.0-cp311-cp311-musllinux_1_2_x86_64.whl
| Download URL | fastfloret-0.11.0-cp311-cp311-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 817.5 kB |
| Tags | CPython 3.11 Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
ce50e2d3df7ba2bfbd2540d7e2285014242cb1c63602a0042e9fa98b25294e81
|
|
BLAKE2b-256 checksum How to use checksums |
1acce5d3e3770bced6b7383d35a9c628c02b8bf9f89375399a27b514b8b45a59
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.
Transparency logRelease files / fastfloret-0.11.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | fastfloret-0.11.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 323.2 kB |
| Tags | CPython 3.11 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
0c866d36d9c94e7fa8fce434a6b61550199939fec1a7dd513017912a0d9eb985
|
|
BLAKE2b-256 checksum How to use checksums |
de586ab65d61b59a3b6e78a03dba2722fd8e794624b50f77b605432205ac150f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.
Transparency logRelease files / fastfloret-0.11.0-cp311-cp311-macosx_11_0_arm64.whl
| Download URL | fastfloret-0.11.0-cp311-cp311-macosx_11_0_arm64.whl |
|---|---|
| Size | 232.5 kB |
| Tags | CPython 3.11 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
0b1c4c3c26f4743ee3f7abbe66dc55db502f2d86df78cf4dca1b2ceaa35c0009
|
|
BLAKE2b-256 checksum How to use checksums |
9c6b0c42a44a6f4283fc6d8feeacf703ed7f42bb1d96c33b6718256aa1eb2760
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.
Transparency logSecurity for fastfloret 0.11.0
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.
Full provenance
All 13 files in this release have been uploaded with provenance metadata.
Attestation for fastfloret-0.11.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.
Transparency logA 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.