hamedR96 / ANTM

Aligned Neural Topic Model (ANTM) for Exploring Evolving Topics: a dynamic neural topic model that uses document embeddings (data2vec) to compute clusters of semantically similar documents at different periods, and aligns document clusters to represent topic evolution.
MIT License
33 stars 7 forks source link

Questions about running the ANTM model example #5

Closed zdf737477 closed 10 months ago

zdf737477 commented 10 months ago

Sorry to bother you, I encountered the following problem when running the ANTM model example. How can I solve it? Thank you very much.

Aligned Dimension Reduction is initialized... Traceback (most recent call last): File "D:\TopicModel\ANTM-main\ExampleDemo\123.py", line 17, in topics_per_period=model.fit(save=True) ^^^^^^^^^^^^^^^^^^^^ File "D:\TopicModel\ANTM-main\antm\main.py", line 85, in fit self.umap_embeddings_clustering, self.umap_embeddings_visulization = aligned_umap( ^^^^^^^^^^^^^ File "D:\TopicModel\ANTM-main\antm\aligned_clustering_layer.py", line 11, in aligned_umap model_umap_clustering = umap.aligned_umap.AlignedUMAP( ^^^^^^^^^^^^^^^^^ AttributeError: module 'umap' has no attribute 'aligned_umap'

Process finished with exit code 1

Allaa-boutaleb commented 10 months ago

Hey there! Have you installed umap using umap-learn?

Try these following commands:

pip uninstall umap
pip install umap-learn

Let me know if it works. :)

zdf737477 commented 10 months ago

Hey there! Have you installed umap using umap-learn?

Try these following commands:

pip uninstall umap
pip install umap-learn

Let me know if it works. :)

I ran these commands“ > pip uninstall umap

pip install umap-learn”,but still got the following error: Aligned Dimension Reduction is initialized... Traceback (most recent call last): File "D:\TopicModel\ANTM-main\ExampleDemo\123.py", line 17, in topics_per_period=model.fit(save=True) ^^^^^^^^^^^^^^^^^^^^ File "D:\TopicModel\ANTM-main\antm\main.py", line 85, in fit self.umap_embeddings_clustering, self.umap_embeddings_visulization = aligned_umap( ^^^^^^^^^^^^^ File "D:\TopicModel\ANTM-main\antm\aligned_clustering_layer.py", line 11, in aligned_umap model_umap_clustering = umap.aligned_umap.AlignedUMAP( ^^^^^^^^^^^^^^^^^ AttributeError: module 'umap' has no attribute 'aligned_umap'

Process finished with exit code 1

zdf737477 commented 10 months ago

I ran these commands“ > pip uninstall umap

pip install umap-learn”,but still got the following error: Aligned Dimension Reduction is initialized... Traceback (most recent call last): File "D:\TopicModel\ANTM-main\ExampleDemo\123.py", line 17, in topics_per_period=model.fit(save=True) ^^^^^^^^^^^^^^^^^^^^ File "D:\TopicModel\ANTM-main\antm\main.py", line 85, in fit self.umap_embeddings_clustering, self.umap_embeddings_visulization = aligned_umap( ^^^^^^^^^^^^^ File "D:\TopicModel\ANTM-main\antm\aligned_clustering_layer.py", line 11, in aligned_umap model_umap_clustering = umap.aligned_umap.AlignedUMAP( ^^^^^^^^^^^^^^^^^ AttributeError: module 'umap' has no attribute 'aligned_umap'

Process finished with exit code 1