bab2min / tomotopy

Python package of Tomoto, the Topic Modeling Tool
https://bab2min.github.io/tomotopy
MIT License
548 stars 62 forks source link

Path distribution in HLDA #198

Open Mikedesjardine opened 1 year ago

Mikedesjardine commented 1 year ago

First of all, thank you so much for the work you have done. I have a question about the "path distribution" in HLDA. In the tree structure in HLDA, there are multiple paths (from the root to the leaf) and each path has multiple topics (the number of topics= the depth). Given a document, _doc.path, doc.get_topicdist() give the results of one path and the topic distribution in that one path. How can I get the probability of the document belonging to each path and how can I get the topic distribution of each path? Thank you in advance for your answer.