powered by
Convert a list of texts to a matrix.
texts_to_matrix(tokenizer, texts, mode = c("binary", "count", "tfidf", "freq"))
Tokenizer
Vector/list of texts (strings).
one of "binary", "count", "tfidf", "freq".
A matrix
Other text tokenization: fit_text_tokenizer, save_text_tokenizer, sequences_to_matrix, text_tokenizer, texts_to_sequences_generator, texts_to_sequences
fit_text_tokenizer
save_text_tokenizer
sequences_to_matrix
text_tokenizer
texts_to_sequences_generator
texts_to_sequences