Transforms a wfm to the format used by the lda package
wfm2lda(wfm, dir = NULL, names = c("mult.dat", "vocab.dat"))
wfm | a word frequency matrix |
---|---|
dir | a file to dump the converted data |
names | Names of the data and vocabulary file respectively |
A list containing
zero indexed word frequency information about a set of documents
a vocabulary list
See the documentation of lda
package for the relevant object
structures and file formats.
Will Lowe