Get the list of documents affected after doing hierarchical_topics method #2151
-
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.
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.
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.