Replies: 3 comments 3 replies
-
Thank you for sharing this. Since this seems to be an issue (you got an error) I believe this should be posted as an issue instead as there is some information missing that helps me understand the issue (such as reproducible example, BERTopic version, etc.). More specifically, I think this was fixed in the latest version but I'm not sure if that was included in your particular version. |
Beta Was this translation helpful? Give feedback.
-
Hello @MaartenGr and first thnaks a lot for all your answers. |
Beta Was this translation helpful? Give feedback.
-
Hello, I solved the issue but that was not so simple as using the last Bertoptic version 0.16.3 was leading to many compatibility issues (
Hope this will help |
Beta Was this translation helpful? Give feedback.
-
Hello Again,
I'm moving on with Bertopic dans all was running fine.
But today we have a new error as we are trying to build the hierarchical path of clusters :
The code
hierarchical_topics = r_bertopic.hierarchical_topics(tickets)
fig_cluster_hierarchy = r_bertopic.visualize_hierarchy(hierarchical_topics=hierarchical_topics, custom_labels=True)
fig_cluster_hierarchy.write_json(os.path.join(model_path, "hierarchical_topics.json"))
But we have this error fired by the first line : hierarchical_topics = r_bertopic.hierarchical_topics(tickets)
_[null-err-75] [INFO] [dku.utils] - File "/home/ml-app/DATA_DESIGN/code-envs/python/py_39_ticketing/lib/python3.9/site-packages/bertopic/_bertopic.py", line 977, in hierarchical_topics
[null-err-75] [INFO] [dku.utils] - X = validate_distance_matrix(X, embeddings.shape[0])
[null-err-75] [INFO] [dku.utils] - File "/home/ml-app/DATA_DESIGN/code-envs/python/py_39_ticketing/lib/python3.9/site-packages/bertopic/utils.py", line 147, in validate_distance_matrix
[null-err-75] [INFO] [dku.utils] - raise ValueError("Distance matrix cannot contain negative values.")
[null-err-75] [INFO] [dku.utils] - ValueError: Distance matrix cannot contain negative values.
I search the web and didn't found any real help.
So my here are some questions :
Thnaks a lot for all your answers
BR
Stéphane
Beta Was this translation helpful? Give feedback.
All reactions