Get the list of documents affected after doing hierarchical_topics method #2151
Answered
by
MaartenGr
stanley-tarce
asked this question in
Q&A
-
Basically, I want to determine the list of documents affected for each left child topic, right child topic, and parent topic (if it has documents listed) after doing this function. hierarchical_topics = topic_model.hierarchical_topics(docs=docs) Any idea how can I get the list of documents for hierarchical topics? Thank you! |
Beta Was this translation helpful? Give feedback.
Answered by
MaartenGr
Sep 15, 2024
Replies: 1 comment 2 replies
-
You would have to extract those manually since you have topic assignments with |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
stanley-tarce
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You would have to extract those manually since you have topic assignments with
topic_model.topics_
. Using those together withhierarchical_topics
you can check which documents might end up merged with documents in another topic.