Convert a vector of texts into a vocabulary object
1 2 3 4 5 6 7 | text2vocab(
it,
documentCount,
ngram = c(1L, 3L),
documentMinimum = 10,
stopWords = stopwords()
)
|
it |
a text2vec token iterator |
documentCount |
count of documents in dataset |
ngram |
a list specifying the min/max for ngrams |
documentMinimum |
a word must appear in no less than n documents |
stopWords |
words to eliminate from the vocabulary object (use character(0) for none) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.