kgrams: Classical k-gram Language Models

Training and evaluating k-gram language models in R, supporting several probability smoothing techniques, perplexity computations, random text generation and more.

Version: 0.2.0
Depends: R (≥ 4.0)
Imports: Rcpp, rlang, methods, utils, RcppProgress (≥ 0.1), Rdpack
LinkingTo: Rcpp, RcppProgress
Suggests: testthat (≥ 3.0.0), covr, knitr, rmarkdown
Published: 2023-10-06
DOI: 10.32614/CRAN.package.kgrams
Author: Valerio Gherardi ORCID iD [aut, cre]
Maintainer: Valerio Gherardi <vgherard840 at>
License: GPL (≥ 3)
NeedsCompilation: yes
Materials: README NEWS
CRAN checks: kgrams results


Reference manual: kgrams.pdf
Vignettes: kgrams


Package source: kgrams_0.2.0.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): kgrams_0.2.0.tgz, r-oldrel (arm64): kgrams_0.2.0.tgz, r-release (x86_64): kgrams_0.2.0.tgz, r-oldrel (x86_64): kgrams_0.2.0.tgz
Old sources: kgrams archive


Please use the canonical form to link to this page.