Description Usage Arguments Value Examples
Get a set of n-grams from text
1 | get_ngrams(txt, from = 1, to = 5)
|
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] |
A data.frame of the ngrams and their freq in txt
1 | # res <- get_ngrams(text, from = 1, to = 3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.