fasttext-wheel
fasttext Python bindings
What it is and what it does
fasttext-wheel is a Python wrapper around Facebook's fastText C++ library for learning word representations and classifying text. It supports two main workflows: unsupervised training (skipgram and CBOW models for word embeddings) and supervised training for text classification. The package depends on pybind11 for C++ bindings, setuptools for installation, and NumPy for numerical operations.
The library trains models on UTF-8 encoded text files and returns model objects that expose learned word vectors, vocabulary, and labels. It includes methods to save/load models, quantize supervised models for compression, and make predictions on new text. However, the package has been abandoned since September 2020 with no ongoing maintenance, meaning it will not receive bug fixes, security updates, or compatibility patches for newer Python or dependency versions.
Use it for:
- Train word embeddings on a corpus to obtain dense vector representations for downstream NLP tasks.
- Build a text classifier by training a supervised model on labeled text data and evaluating precision/recall on test sets.
- Compress trained classification models using quantization to reduce file size for deployment.
- Retrieve word vectors and vocabulary from a trained model for similarity analysis or feature extraction.
- Predict labels for new text using a pre-trained supervised fastText model.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
fasttext-wheel provides Python bindings for fastText, enabling efficient learning of word representations and text classification through unsupervised and supervised training models.
Yes, but with strong caveats. fasttext-wheel is stable and widely used (top 5000 PyPI packages, 2.3M monthly downloads), with no known vulnerabilities and permissive MIT licensing. However, the package is abandoned—last released in 2020 and its repository archived in 2024. Install only if you need fastText specifically and can accept no future maintenance, security patches, or compatibility fixes. For active projects, consider whether a maintained fork or alternative NLP library better suits your risk tolerance.
Install
fasttext-wheel on PyPI
pip
pip install fasttext-wheeluv
uv add fasttext-wheelpoetry
poetry add fasttext-wheelInstalling fasttext-wheel
Before you install
Medium install friction due to C++11 compilation requirements and pybind11 dependency. The package is abandoned (last release 2020-09-03, repository archived as of 2024-03-22), meaning no maintenance or security updates will be provided going forward.
License in practice
MIT license is permissive, allowing commercial and private use with minimal restrictions—you may use, modify, and distribute the package freely provided you include the license notice.
Quickstart
pip install fasttext-wheel
import fasttext
model = fasttext.train_unsupervised('data.txt', model='skipgram')
print(model['king'])
Requires a C++11-capable compiler and pybind11; UTF-8 encoded text input is mandatory; Python 2.7 or 3.4+ support only.
Verify before relying
- Whether wheels for Python 3.7–3.9 and 3.11+ are available or if source compilation is required on those versions.
- Current stability and compatibility with modern NumPy and setuptools versions given the 2020 release date.
- Whether the archived repository will accept security patches or if a maintained fork is recommended for production use.
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | 3 — pybind11, setuptools, numpy |
| Maintenance | abandoned — 2,171 days since the last release |
| Last repo commit | (repository archived) |
| First released | |
| Downloads | 2,359,916/month — #3,104 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: fasttext_wheel-0.9.2-cp27-cp27m-macosx_10_15_x86_64.whl; fasttext_wheel-0.9.2-cp27-cp27m-macosx_10_9_x86_64.whl; fasttext_wheel-0.9.2-cp27-cp27m-macosx_11_1_arm64.whl; fasttext_wheel-0.9.2-cp27-cp27m-manylinux2010_i686.whl; fasttext_wheel-0.9.2-cp27-cp27m-manylinux2010_x86_64.whl; fasttext_wheel-0.9.2-cp27-cp27mu-manylinux2010_i686.whl; fasttext_wheel-0.9.2-cp27-cp27mu-manylinux2010_x86_64.whl; fasttext_wheel-0.9.2-cp310-cp310-macosx_10_9_x86_64.whl; fasttext_wheel-0.9.2-cp310-cp310-macosx_12_0_arm64.whl; fasttext_wheel-0.9.2-cp310-cp310-manylinux2014_aarch64.whl; fasttext_wheel-0.9.2-cp310-cp310-manylinux2014_armv7l.whl; fasttext_wheel-0.9.2-cp310-cp310-manylinux2014_ppc64le.whl; fasttext_wheel-0.9.2-cp310-cp310-manylinux2014_ppc64.whl; fasttext_wheel-0.9.2-cp310-cp310-manylinux2014_s390x.whl; fasttext_wheel-0.9.2-cp310-cp310-manylinux_2_12_i686.manylinux2010_i686.whl; fasttext_wheel-0.9.2-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl; fasttext_wheel-0.9.2-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl; fasttext_wheel-0.9.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; fasttext_wheel-0.9.2-cp310-cp310-win32.whl; fasttext_wheel-0.9.2-cp310-cp310-win_amd64.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
fasttextfastText is a library for learning word…
permissive · top 5,000 on PyPI
fasttext-numpy2fasttext-numpy2 provides Python bindings for…
permissive · top 5,000 on PyPI
fasttext-predictLoads and runs fastText language identification…
permissive · top 5,000 on PyPI
floretfloret trains compact word embeddings using…
permissive · top 15,000 on PyPI
fast-langdetectDetects the language of text using FastText…
permissive · top 5,000 on PyPI
fasttext-langdetectIdentifies the language of UTF-8 text using…
permissive · top 15,000 on PyPI
setfitSetFit fine-tunes Sentence Transformers for…
permissive · top 15,000 on PyPI
model2vecModel2Vec converts sentence transformers into…
permissive · top 5,000 on PyPI
sentence-transformersComputes embeddings and reranking scores for…
permissive · top 1,000 on PyPI
alt-profanity-checkDetects offensive or profane language in text…
permissive · top 15,000 on PyPI