New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
datamap visulisation does not work. #1956
Comments
PS: I had a similar error on Colab last week. What works for me: Ensure you install and load datamapplot ## Install DataMapPlots: Below for Colab or if working inline within Notebook
!pip install datamapplot
## load library
import datamapplot You should be able to execute Should BERTopic datamap not work, you can attempt working with datamap directly. datamapplot.create_plot(
reduced_embeddings05,
docs_info.Name,
...
...)
## where docs_info.Name or ocs_info['Name'] comes from topic_model_.get_document_info |
Also, make sure that you install BERTopic v0.16.1 (or higher when it releases) since it was supported first in v0.16.1. If BERTopic suggests that it does not have this function, then it is either what was previously stated or simply install the latest version. |
I also have issues getting datamapplot to work. Here is my code: import datamapplot
print(bertopic.__version__)
0.16.1
topic_model.visualize_document_datamap(docs, embeddings=embeddings, title='', width=1200, height=1200,) Error output:
|
@emilbakke Assuming |
You are absolutely correct, solved it. The good old reboot. Thanks! |
other visualisation works except for this. It suggests BERTopic does not have this method.
The text was updated successfully, but these errors were encountered: