Closed grassdew closed 7 years ago
lda.gamma[m]
is the parameter for a Dirichlet distribution, so you can get the expected probability distribution of topics for a particular document m
by simply normalizing that vector.
Each topic is a probability distribution over the entire lexicon, to see, for example, the top 20 words for each topic, simply write showtopics(model, 20)
.
Thanks.
Hi,
The lda.gamma command returns a vector of weights of topics for a document. Can I get a probability distribution of topics instead? Also, can I specify the number of keywords within each topic in the showtopics command? Thank you.