write_mallet_statefile: Write a Mallet state from R

Description Usage Arguments Value

Description

Write a Mallet state from R

Usage

1
write_mallet_statefile(state, alpha, beta, state_file)

Arguments

state

a tidy_topic_state object in a one-token-per-row format (see tidytext).

alpha

a numeric vector of length equal one (uniform prior) or to the number of topics. This is the alpha prior for each topic.

beta

A numeric element with the beta prior (single value).

state_file

a character string naming a file.

Value

NULL if file was written successfully.


MansMeg/tidytopics documentation built on May 8, 2019, 3:52 p.m.