chr_ngram_char.Rd
Returns n-grams at the character level
chr_ngram_char(x, n = 3, lower = FALSE, space = FALSE, punct = FALSE)
x | Character vector |
---|---|
n | Number of characters to return per ngram |
lower | Logical indicating whether to lower case all text, defaults to false. |
space | Logical indicating whether to strip space, defaults to false. |
punct | Logical indicating whether to strip punctation, defaults to false. |
List of length equal to input length consisting of ngram vectors.
Thanks to ChrisMuir \(https://github.com/mkearney/chr/issues/1)