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

Issue with Pickling in Top2Vec v1.0.34 #351

Open
davood-hadiannejad opened this issue Nov 23, 2023 · 0 comments
Open

Issue with Pickling in Top2Vec v1.0.34 #351

davood-hadiannejad opened this issue Nov 23, 2023 · 0 comments

Comments

@davood-hadiannejad
Copy link

davood-hadiannejad commented Nov 23, 2023

I recently upgraded to Top2Vec version 1.0.34 and encountered an issue with pickling the model.
Specifically, I'm getting following error:

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
Cell In[18], line 8
      2 model_name_out = os.path.join(
      3                 stt.DATA_PATH_RESULTS,
      4                 f"{PROJECT_NAME}.pickle")
      7 with open(model_name_out, "wb") as file:
----> 8     pickle.dump(data, file)

AttributeError: Can't pickle local object 'Loader._recreate_base_user_object.<locals>._UserObject'

Here all the information:

Python version: 3.9.12
Top2Vec version : 1.0.34

Question:
Has anyone else encountered this issue with version 1.0.34? Are there any workarounds or known fixes for this problem?

Thank you for your help!

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