Description Usage Arguments Details Value See Also
A helper function to read in a MALLET sampling state.
1 | read_mallet_state(filename, doc_ids = NULL)
|
filename |
name of gzip file holding the sampling state |
doc_ids |
character vector of document IDs. If supplied, the
|
Does not require the mallet package. As long as the
supplied file is of the expected format (e.g. from command-line MALLET),
this will do the job. Well, if you have the RAM.
To get a list of stored document IDs from a model object
model, use model$getDocumentNames().
a data frame with three columns, doc, word,
and topic. doc is either a document index or an ID if
doc_ids is supplied; word is the token as a string; and
topic is the topic number (counting from 1, not 0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.