Using R's LDA package, how do I find the probability that a topic is assigned
to a given document? The "top.topic.documents" feature lists the most likely
documents for each topic. How do I retrieve the original values that this
ranking is based off of?

For example, this code below would tell me the top 10 documents for each
topic. How do I get the original values this top 10 ranking is based off of?
require(lda)
result <- lda.collapsed.gibbs.sampler(text$documents,...)
topdocs <- top.topic.documents(result$document_sums,  num.documents=10) 



--
View this message in context: 
http://r.789695.n4.nabble.com/probability-topic-is-assigned-in-given-document-tp4701586.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to