Topic Modeling: How do I use my fitted LDA model to predict new topics for a new dataset in R?

后端 未结 1 719
遇见更好的自我
遇见更好的自我 2020-12-29 16:19

I am using \'lda\' package in R for topic modeling. I want to predict new topics(collection of related words in a document) using a fitted Latent Dirichlet Allocation(LDA) m

相关标签:
1条回答
  • 2020-12-29 16:57

    I don't know how you can achieve this in R but please have a look at a 2009 publication by Wallach et. al. titled 'Evaluation Methods for Topic Models' here. Have a look at section 4, it mentions three methods to calculate P(z|w), one based on importance sampling and other two called 'Chib-style estimator' and 'left-to-right estimator'.

    Mallet has implementation of left-to-right estimator method

    0 讨论(0)
提交回复
热议问题