View source: R/preprocessing.R
sequences_to_matrix | R Documentation |
Convert a list of sequences into a matrix.
sequences_to_matrix(
tokenizer,
sequences,
mode = c("binary", "count", "tfidf", "freq")
)
tokenizer |
Tokenizer |
sequences |
List of sequences (a sequence is a list of integer word indices). |
mode |
one of "binary", "count", "tfidf", "freq". |
A matrix
Other text tokenization:
fit_text_tokenizer()
,
save_text_tokenizer()
,
text_tokenizer()
,
texts_to_matrix()
,
texts_to_sequences()
,
texts_to_sequences_generator()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.