I would like to perform a LDA in R by means of topicmodels. To make the resulting topics better match the topics I want to see, I would like to input "seed words" for these topics into the LDA, comparable to what the Python guidedlda package does (https://medium.freecodecamp.org/how-we-changed-unsupervised-lda-to-semi-supervised-guidedlda-e36a95f3a164).
In the documentation of the topicmodels package, the author writes:
When Gibbs sampling is used for fitting the model, seed words with their additional weights for the prior parameters can be specified in order to be able to fit seeded topic models.
Optional arguments. For method = "Gibbs" an additional argument seedwords can be specified as a matrix or an object of class "simple_triplet_matrix"; the default is NULL.
- Do I understand correctly that topicmodels allows me to do a seeded LDA comparable to the guidedlda package in Python?
- How exactly does it work, how does the code look like here? Do I simply input another argument "seedwords" into LDA() with a matrix containing two columns (word and weight)?