I am using the lda package in R (documentation pdf) for its Relational Topic Modeling functionality. The package enables you to determine topic assignments and document links (mainly what I am interested in) for the training set of documents and lets you determine links between documents as well. However, it does not appear to let you determine topic distributions on unseen documents with the trained RTM model. I know that there are ways to do this with different LDA packages and software (MALLET, topicmodels, etc.), but none that I can find with RTM. I am primarily interested in determining new links.
Can someone please explain how to use a trained RTM model to predict the topic distributions on an unseen document? Blei mentioned it very briefly in the paper below in the section about prediction (in section 3), but I am unable to understand / implement it.
Here is the original paper:
- Chang, J, & Blei, DM. Relational Topic Models for Document Networks. Proceedings of the 12th International Conference on Artificial Intelligence and Statistics (AISTATS) 2009, Clearwater Beach, Florida, USA. Volume 5 of JMLR: W&CP 5 (pdf)