-
Hi Maarten, I am using the BERTopic library and have trained a model on my documents. After training, I merged several topics using the Could you please guide me on how to retrieve the full document-topic probability distribution for all topics after performing the merge? I would greatly appreciate any advice or code snippets that would help me calculate and retrieve the correct document-topic probabilities after the merge operation. Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
If you have set |
Beta Was this translation helpful? Give feedback.
If you have set
calculate_probabilities=True
, you can run.transform
on your docs to get the document-topic probabilities. It will not use HDBSCAN / UMAP for that procedure so it should be quite fast.