Description Usage Arguments Value
This function reads a mallet file into R. the purpose is to enable the full strenght of R to visualize and postprocess sampled data from mallet
1 | read_mallet_statefile(state_file, type = "state")
|
state_file |
Path to a mallet state file with |
type |
What to return from the state file. Can be |
The return value depends on type
.
state
returns the topic indicators, word types and document id in tbl_df
format.
alpha
returns a vector of alpha priors values (in character format).
beta
returns the beta prior (in character format).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.