Efficient Learning of Word Representations and Sentence Classification
Overview
An interface to the 'fastText' https://github.com/facebookresearch/fastText library for efficient learning of word representations and sentence classification. The 'fastText' algorithm is explained in detail in (i) "Enriching Word Vectors with subword Information", Piotr Bojanowski, Edouard Grave, Armand Joulin, Tomas Mikolov, 2017, doi:10.1162/tacl_a_00051; (ii) "Bag of Tricks for Efficient Text Classification", Armand Joulin, Edouard Grave, Piotr Bojanowski, Tomas Mikolov, 2017, doi:10.18653/v1/e17-2068; (iii) "FastText.zip: Compressing text classification models", Armand Joulin, Edouard Grave, Piotr Bojanowski, Matthijs Douze, Herve Jegou, Tomas Mikolov, 2016, doi:10.48550/arXiv.1612.03651.
- I fixed a bug in the *'language_identification()'* function where input text that could be interpreted as a directory path (e.g.
"../.."or"data"when adata/folder exists) caused an error. The fix replacesfile.exists()withutils::file_test(op = "-f", ...)to correctly distinguish regular files from directories (see Github issues: https://github.com/mlampros/fastText/issues/6 and https://github.com/mlampros/fastText/issues/3)
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK12 OK2026-04-25
- NOTE12 OK, 2 NOTE2026-04-22
- ERROR11 OK, 2 NOTE, 1 ERROR2026-04-18
Show 1 earlier changeHide 1 earlier change
- NOTE12 OK, 2 NOTE2026-03-10
Documentation
- Help pages
- 19 (4 internal)
- Examples that run
- 80%12 run in a plain check · 3 never run
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 26%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 4
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Issues over time
9 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/mlampros/fasttext on 2026-10-18.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Funding links: GitHub Sponsors
The repository owner accepts GitHub Sponsors
GitHub Pages site last deployed 2026-06-12 · The repository has a site deploy workflow
pkgdown site last built 2026-06-12
Dependencies
Installing fastText adds 19 packages (9 with compiled code, 21 MB of source tarballs). Heaviest: ggplot2 6.0 MB, data.table 5.7 MB, Rcpp 1.8 MB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- 1.0.8Latest
- RR 4.6.0 released · 2026-04-24
- 1.0.72026-02-20 · diff ↗
- 1.0.62026-02-10 · diff ↗
- 1.0.52026-01-09 · diff ↗
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 1.0.42024-02-17 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 1.0.32022-10-08 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 1.0.22022-04-07 · diff ↗
- 1.0.12021-05-27 · diff ↗
- RR 4.1.0 released · 2021-05-18
- 1.0.02021-05-14
- RR 4.0.0 released · 2020-04-24
Package metadata
- First published
- 2021-05-14
- Total releases
- 9 / 5 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 3.2.3
- Download size
- 2.9 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("fastText")The package provides a citation file that builds its entry when R runs it. Run citation() to see it.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-20, which the citation names so these numbers can be found later. More on citing and the projects behind them.