Skip to content
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

'Top2Vec' object has no attribute 'documents_indexed' #349

Open
Mri1662 opened this issue Nov 11, 2023 · 2 comments
Open

'Top2Vec' object has no attribute 'documents_indexed' #349

Mri1662 opened this issue Nov 11, 2023 · 2 comments

Comments

@Mri1662
Copy link

Mri1662 commented Nov 11, 2023

Collecting top2vec
Using cached top2vec-1.0.33-py3-none-any.whl (27 kB)
Requirement already satisfied: umap-learn>=0.5.1 in /user/Top2Vec/venv/lib/python3.10/site-packages (from top2vec) (0.5.4)
Requirement already satisfied: pandas in /user/Top2Vec/venv/lib/python3.10/site-packages (from top2vec) (2.1.3)
Requirement already satisfied: wordcloud in /user/Top2Vec/venv/lib/python3.10/site-packages (from top2vec) (1.9.2)
Requirement already satisfied: scikit-learn>=1.2.0 in /user/Top2Vec/venv/lib/python3.10/site-packages (from top2vec) (1.3.2)
Requirement already satisfied: hdbscan>=0.8.27 in /user/Top2Vec/venv/lib/python3.10/site-packages (from top2vec) (0.8.33)
Requirement already satisfied: gensim>=4.0.0 in /user/Top2Vec/venv/lib/python3.10/site-packages (from top2vec) (4.3.2)
Requirement already satisfied: numpy>=1.20.0 in /user/Top2Vec/venv/lib/python3.10/site-packages (from top2vec) (1.26.1)
Requirement already satisfied: scipy>=1.7.0 in /user/Top2Vec/venv/lib/python3.10/site-packages (from gensim>=4.0.0->top2vec) (1.11.3)
Requirement already satisfied: smart-open>=1.8.1 in /user/Top2Vec/venv/lib/python3.10/site-packages (from gensim>=4.0.0->top2vec) (6.4.0)
Requirement already satisfied: joblib>=1.0 in /user/Top2Vec/venv/lib/python3.10/site-packages (from hdbscan>=0.8.27->top2vec) (1.3.2)
Requirement already satisfied: cython<3,>=0.27 in /user/Top2Vec/venv/lib/python3.10/site-packages (from hdbscan>=0.8.27->top2vec) (0.29.36)
Requirement already satisfied: threadpoolctl>=2.0.0 in /user/Top2Vec/venv/lib/python3.10/site-packages (from scikit-learn>=1.2.0->top2vec) (3.2.0)
Requirement already satisfied: numba>=0.51.2 in /user/Top2Vec/venv/lib/python3.10/site-packages (from umap-learn>=0.5.1->top2vec) (0.58.1)
Requirement already satisfied: pynndescent>=0.5 in /user/Top2Vec/venv/lib/python3.10/site-packages (from umap-learn>=0.5.1->top2vec) (0.5.10)
Requirement already satisfied: tbb>=2019.0 in /user/Top2Vec/venv/lib/python3.10/site-packages (from umap-learn>=0.5.1->top2vec) (2021.10.0)
Requirement already satisfied: tqdm in /user/Top2Vec/venv/lib/python3.10/site-packages (from umap-learn>=0.5.1->top2vec) (4.66.1)
Requirement already satisfied: python-dateutil>=2.8.2 in /user/Top2Vec/venv/lib/python3.10/site-packages (from pandas->top2vec) (2.8.2)
Requirement already satisfied: pytz>=2020.1 in /user/Top2Vec/venv/lib/python3.10/site-packages (from pandas->top2vec) (2023.3.post1)
Requirement already satisfied: tzdata>=2022.1 in /user/Top2Vec/venv/lib/python3.10/site-packages (from pandas->top2vec) (2023.3)
Requirement already satisfied: pillow in /user/Top2Vec/venv/lib/python3.10/site-packages (from wordcloud->top2vec) (10.1.0)
Requirement already satisfied: matplotlib in /user/Top2Vec/venv/lib/python3.10/site-packages (from wordcloud->top2vec) (3.8.1)
Requirement already satisfied: llvmlite<0.42,>=0.41.0dev0 in /user/Top2Vec/venv/lib/python3.10/site-packages (from numba>=0.51.2->umap-learn>=0.5.1->top2vec) (0.41.1)
Requirement already satisfied: six>=1.5 in /user/Top2Vec/venv/lib/python3.10/site-packages (from python-dateutil>=2.8.2->pandas->top2vec) (1.16.0)
...
ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: '/user/Top2Vec/venv/lib/python3.10/site-packages/top2vec'
Check the permissions.

Note: you may need to restart the kernel to use updated packages.
Output is truncated. View as a scrollable element or open in a text editor. Adjust cell output settings...

AttributeError Traceback (most recent call last)
/user/Top2Vec/notebooks/CORD-19_top2vec.ipynb Cell 21 line 1
----> 1 top2vec = Top2Vec.load("../input/covid19top2vec/covid19_deep_learn_top2vec")

File /user/Top2Vec/venv/lib/python3.10/site-packages/top2vec/Top2Vec.py:790, in Top2Vec.load(cls, file)
787 top2vec_model = load(file)
789 # load document index
--> 790 if top2vec_model.documents_indexed:
791 if not _HAVE_HNSWLIB:
792 raise ImportError(f"Cannot load document index.\n\n"
793 "Try: pip install top2vec[indexing]\n\n"
794 "Alternatively try: pip install hnswlib")

AttributeError: 'Top2Vec' object has no attribute 'documents_indexed'

I am use 1.0.33 version of top2vec

@Mri1662
Copy link
Author

Mri1662 commented Nov 13, 2023

Hello,
@ddangelov waiting for your reply

@Mri1662
Copy link
Author

Mri1662 commented Nov 20, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant