View source: R/text_preprocessing.R
extract_ngrams | R Documentation |
This function extracts n-grams (sequences of n words) from text.
extract_ngrams(text, n = 1, min_freq = 2)
text |
Character vector of texts to process |
n |
Integer specifying the n-gram size (1 for unigrams, 2 for bigrams, etc.) |
min_freq |
Minimum frequency to include an n-gram |
A data frame containing n-grams and their frequencies
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.