get_ngrams: Get a set of n-grams from text

Description Usage Arguments Value Examples

View source: R/ngrams.R

Description

Get a set of n-grams from text

Usage

1
get_ngrams(txt, from = 1, to = 5)

Arguments

txt

Character string from which n-grams are extracted

from

The length of smallest n-gram [1]

to

The length of largest n-gram [5]

Value

A data.frame of the ngrams and their freq in txt

Examples

1
# res <- get_ngrams(text, from = 1, to = 3)

jacob-ogre/ocrerrors documentation built on May 18, 2019, 8:01 a.m.