Learn R Programming

mallet (version 1.3.0)

save.mallet.state: Save a Mallet state to file

Description

This function writes a current sampling state of mallet to file. The state contain hyperparameters \(\alpha\) and \(\beta\) together with topic indicators.

The state file can be read into R using the function

Usage

save.mallet.state(topic.model, state.file)

Arguments

topic.model

A cc.mallet.topics.RTopicModel object created by MalletLDA.

state.file

File path (.gz format) to store the mallet state file to.