
Create a term-document matrix from preprocessed text
Source:R/text_preprocessing.R
create_term_document_matrix.Rd
This function creates a term-document matrix from preprocessed text data. It's a simplified version of create_tdm() for direct use in models.
Examples
if (FALSE) { # \dontrun{
preprocessed <- preprocess_text(article_data, text_column = "abstract")
tdm <- create_term_document_matrix(preprocessed)
} # }