I am trying to find the words that are shared across the topics and words unique to a topic using LDA model in R. Is there any package or function?
Thanks
Cross Validated is a question and answer site for people interested in statistics, machine learning, data analysis, data mining, and data visualization. It only takes a minute to sign up.
Sign up to join this communityI am trying to find the words that are shared across the topics and words unique to a topic using LDA model in R. Is there any package or function?
Thanks
All words are shared among all topics, just with different probabilities, since a topic is just a probability distribution over the words.
Of course it is customary to display TOP-$n$ words to quote a topic. You may ask then which words in the TOP-10 or TOP-20 are shared between some topics. I don't know how to do this in R, I'd use a hash in perl or python to achieve this goal.