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

View source: R/mallet_state_io.R

save.mallet.stateR Documentation

Save a Mallet state to file

Description

This function writes a current sampling state of mallet to file. The state contain hyperparameters α and β 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.


mallet documentation built on July 20, 2022, 5:08 p.m.