FastText lite
A pure1 Python FastText interface, to ensure that FastText model stay usable for as long as possible.
- This is slower than the original FastText, for some methods by orders of magnitude. It's the price to pay for not using Cython or compiled code. These methods are also not usually bottlenecks in standard uses of FastText.
- Support for training is not planned, if you want to train new models, I would advise starting a new library from scratch to avoid being stuck in FastText's historical cruft, and take inspiration from Floret instead. You can save models using FastText lite, but you'll have to change the weights etc manually.
FastText has been in maintenance mode for some time, with no indication that it will ever change. In the absence of further releases, it will stay stuck in increasingly obsolete Python versions and get increasingly hard to rebuild. Gensim has a working re-implementation that is easier to use, but it too has a relatively slow release pace and does not necessarily keep up with the rest of the Python ecosystem. This project provides a path to keep using FastText models for longer and at low cost, by extracting the relevant parts from Gensim and converting the Cython parts back to pure Python (and optimising them as well as I can). So far it supports loading the binary models and use them for word embedding purposes.
Licence
This software is released under the LGPL v2.1 Licence, see LICENCE.md for the details.
-
The only non-pure Python dependency is NumPy 2, which can reasonably be expected to be available. ↩
Metadata
Release files for fasttextlt 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fasttextlt-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Release files / fasttextlt-0.2.0-py3-none-any.whl
| Download URL | fasttextlt-0.2.0-py3-none-any.whl |
|---|---|
| Size | 20.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7ca4ff2f0986e85670770e758f064392f7b1e07977b6219207ab0791e60b8dcb
|
|
BLAKE2b-256 checksum How to use checksums |
82cded87d2cdd3ec7ecfa51d7ca49f8952faa3152e8821c3bab74f062ad84613
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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 Jun 1, 2025.
Transparency log