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

embedding_model is not available #339

Open
Keszzz opened this issue Jul 10, 2023 · 1 comment
Open

embedding_model is not available #339

Keszzz opened this issue Jul 10, 2023 · 1 comment

Comments

@Keszzz
Copy link

Keszzz commented Jul 10, 2023

Hello everyone. I was using the model a week ago without any problems. Today I am getting an error when trying to load Top2Vec with embedding_model parameter (without it works fine)

I get error like:
2023-07-10 10:30:20,136 - top2vec - INFO - Pre-processing documents for training C:\Users\pkola\anaconda3\lib\site-packages\sklearn\feature_extraction\text.py:528: UserWarning: The parameter 'token_pattern' will not be used since 'tokenizer' is not None' warnings.warn( 2023-07-10 10:30:20,416 - top2vec - INFO - Downloading universal-sentence-encoder-multilingual model
ValueError: Trying to load a model of incompatible/unknown type. 'C:\Users\...\Temp\tfhub_modules\26c892ffbc8d7b032f5a95f316e2841ed4f1608c' contains neither 'saved_model.pb' nor 'saved_model.pbtxt'.

I've tried reinstall encoders with pip install top2vec[sentence_encoders] but all libraries are satisfied
How to solve this issue?

@Keszzz
Copy link
Author

Keszzz commented Jul 10, 2023

Here is the solution that worked for me:

  1. Error says there is lack of files in location: 'C:\Users...\Temp\tfhub_modules\26c892ffbc8d7b032f5a95f316e2841ed4f1608c (it will be different location for you)
  2. I manually downloaded encoder from "https://tfhub.dev/google/universal-sentence-encoder-multilingual-large/3
  3. Unzip tar gz file twice
  4. Drag and drop saved_model.pl to location from 1st point
  5. Drag and drop files from variables folder to variables folder in 1st point location
    enjoy

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