get_dtm.Rd
Get document-term matrix from a document-feature matrix and a list of tokens
get_dtm(obj_dfm, filtering_tokens)
obj_dfm | a document-feature matrix |
---|---|
filtering_tokens | a list of tokens which are match against the features of the document-feature matrix |
a document-term matrix with nrow == nrow(obj_dfm) and ncol == length(filtering_tokens)