You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried creating a topic model and vizualizing it with topic_model.visualize_documents. At first it worked. I downgraded to Python 3.11.9 recently (from Python 3.12) and now it doesn't show the axis or the embeddings in the plot. Is there some mismatch of packages that I'm missing?
Looking at the plotly figure it creates, it contains the coordinates of all embeddings like normal. The topics frequency is also correct. When opening the chrome dev console, I see the following error:
(index):2635 Uncaught TypeError: POt.indexOf is not a function
at Object.bqe [as parse] ((index):2635:6608)
at (index):2712:2021
at Array.forEach (<anonymous>)
at Vu.update ((index):2712:1938)
at new Vu ((index):2638:59901)
at bOe.exports [as plot] ((index):2712:10629)
at Kve ((index):25:370736)
at yv.plot ((index):25:369762)
at ld.drawData ((index):25:180565)
at li.syncOrAsync ((index):24:17595)
It seems to be from the plotly package but I cannot seem to pinpoint the exact problem since the code is minified:
Hmmm, this might be related to the number of topics that you have. Could you try it again with more than 2 topics?
Also, it seems that plotly 6.0.0 was released just last week, so that might have something to do with it. I believe this issue might be related. Could you check if upgrading narwhals would fix this issue?
Have you searched existing issues? 🔎
Desribe the bug
I tried creating a topic model and vizualizing it with
topic_model.visualize_documents
. At first it worked. I downgraded to Python 3.11.9 recently (from Python 3.12) and now it doesn't show the axis or the embeddings in the plot. Is there some mismatch of packages that I'm missing?Looking at the plotly figure it creates, it contains the coordinates of all embeddings like normal. The topics frequency is also correct. When opening the chrome dev console, I see the following error:
It seems to be from the plotly package but I cannot seem to pinpoint the exact problem since the code is minified:
Reproduction
Code in question where I create the model:
Versions:
BERTopic Version
0.16.4
The text was updated successfully, but these errors were encountered: