[R] Retaining the original document id in #topicmodels in R

2014-06-24 Thread 张伦
Hi all, I am currently using package "topicmodels" to find the topics of a given text. The dataset contains 8523 documents. I would like to see which documents belong to which topic. Here is my code: get the documentTermMatrix# tdm=DocumentTermMatrix(corpus,control)

[R] Retaining the original document id in #topicmodels in R

2014-06-24 Thread 张伦
Hi all, I am currently using package "topicmodels" to find the topics of a given text. The dataset contains 8523 documents. I would like to see which documents belong to which topic. Here is my code: get the documentTermMatrix# tdm=DocumentTermMatrix(corpus,control)