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.

Package details

AuthorValerio Gherardi [aut, cre] (<>)
MaintainerValerio Gherardi <>
LicenseGPL (>= 3)
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:

Try the kgrams package in your browser

Any scripts or data that you put into this service are public.

kgrams documentation built on April 18, 2023, 5:08 p.m.