Given a matrix representing a document term matrix, this function takes each row as term frequencies for one file, and rewrite each row as a text. Some text mining tools other than R accept segmented Chinese texts. If you already convert texts into a matrix, you can use this function to convert it into texts, corpus or create document term matrix again.
a numeric matrix, data frame is not allowed. It must represent a document term
matrix, rather than a term document matrix. Each row of the matrix represents a text. The
matrix should have column names as terms to be written, but if it is
a character vector, each element is a text with repeated
rep) linked by a space.
1 2 3 4
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.