View source: R/bt_td_matrix_preprocess.R
bt_td_matrix_preprocess | R Documentation |
Requires Keras to work.
bt_td_matrix_preprocess(
num_words = 15000,
max_length = 100,
text,
tokeniser = NULL,
as.df = T
)
num_words |
Desired size of vocabulary. |
max_length |
Desired length of each doc. Shorter will be chopped. Longer will be zero-padded. |
text |
The document corpus. |
as.df |
Do you want a dataframe? If false, a matrix is returned. |
sparse document TD matrix, as a dataframe, or matrix if as.df=F
www.globaltradealert.org
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.