reset {sentopics}R Documentation

Re-initialize a topic model

Description

This function is used re-initialize a topic model, as if it was created from LDA(), JST() or another model. The re-initialized model retains its original parameter specification.

Usage

reset(object)

Arguments

object

a model created from the LDA(), JST() or rJST() function and estimated with fit()

Value

a sentopicmodel of the relevant model class, with the iteration count reset to zero and re-initialized assignment of latent variables.

Author(s)

Olivier Delmarcelle

See Also

fit()

Examples

model <- LDA(ECB_press_conferences_tokens)
model <- fit(model, 10)
reset(model)

[Package sentopics version 0.7.3 Index]