ngram: Fast n-Gram 'Tokenization'

An n-gram is a sequence of n "words" taken, in order, from a body of text. This is a collection of utilities for creating, displaying, summarizing, and "babbling" n-grams. The 'tokenization' and "babbling" are handled by very efficient C code, which can even be built as its own standalone library. The babbler is a simple Markov chain. The package also offers a vignette with complete example 'workflows' and information about the utilities offered in the package.

Package details

AuthorDrew Schmidt [aut, cre], Christian Heckendorf [aut]
MaintainerDrew Schmidt <>
LicenseBSD 2-clause License + file LICENSE
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:

Try the ngram package in your browser

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

ngram documentation built on March 18, 2022, 5:15 p.m.