Write a .ldac file
A function for writing documents out to a .ldac formated file.
A documents object to be written out to a file. Object must be a list of with each element corresponding to a document. Each document is represented as an integer matrix with two rows, and columns equal to the number of unique vocabulary words in the document. The first row contains the 1-indexed vocabulary entry and the second row contains the number of times that term appears
A character string giving the name of the file to be written. This object is passed directly to the argument
This is a simple convenience function for writing out document corpora. Files can be read back into R using
readCorpus or simply used for other programs. The output is a file in the
.ldac sparse matrix format popularized by Dave Blei's C code for LDA.
1 2 3 4 5 6 7 8
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.