-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
AttributeError: 'KeyedVectors' object has no attribute 'next_index' #3114
Comments
Thanks for your report! I suspect you're loading an instance of It may be enough of a temporary workaround for you to manually patch The proper fix for the project is likely to extend the (Separately: I don't see what call to your code, as shown, could really trigger that exception, given the lack of an |
Hi @gojomo! Thank you for your fast reply. Yes, I build my model with Gensim 3.8.3 before. I solved my problem by rebuilding it via word2vec_keyed_vectors = gensim.models.KeyedVectors.load_word2vec_format('C:\foo.txt', binary=False)
word2vec_keyed_vectors.save('C:\foo.bar') Luckily, I didn't changed it in the past so rebuilding was the preferred option for me. |
Yes, if you had the same vectors in plain 'word2vec_format', just reloading from there is a good workaround, too. |
PR #3117 may be a minimal fix for the absence of |
Problem description
I try to add new vectors to a given model.
Steps/code/corpus to reproduce
Relevant traceback:
My code:
Versions
The text was updated successfully, but these errors were encountered: