-
-
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
Trouble re-loading Doc2Vec Model Generated In earlier Version #1977
Comments
Hello, can you share your model (or install current |
Hi I tried with the Not sure what you mean by sharing my model, but here's the code I used to create it.
This was done a few months ago and now when I try to re-load the model I'm getting the error reported above. |
@fsfeng about "sharing model" I mean load it What's a gensim version you are used? CC: @manneshiva probably this is a bug, please fix it ASAP. |
I encountered the same error. I trained my model with gensim version 1.0.1 and I'm trying to reload it with gensim version 3.4.0. Unfortunately, I cannot share my model. |
@marlohaering that's expected behavior, we don't have so long backward compatibility for models. |
@fsfeng I'm still waiting for a model from you (this needed for reproducing an error), also, what's gensim version you used for training? |
Hi, I fixed this just by re-installing Gensim version 2.3.
…On Thu, Mar 22, 2018 at 8:41 AM, Menshikh Ivan ***@***.***> wrote:
@fsfeng <https://github.com/fsfeng> I'm still waiting for a model from
you (this needed for reproducing an error), also, what's gensim version you
used for training?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1977 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AKKbOITGhvpo6uG0edHhR0oRPcrcIganks5tg5vhgaJpZM4Soqlr>
.
|
I also cannot share the model unfortunately, all is stored on a secure
university virtual server.
…On Thu, Mar 22, 2018 at 1:15 PM, Fiona Sijie Feng ***@***.***> wrote:
Hi, I fixed this just by re-installing Gensim version 2.3.
On Thu, Mar 22, 2018 at 8:41 AM, Menshikh Ivan ***@***.***>
wrote:
> @fsfeng <https://github.com/fsfeng> I'm still waiting for a model from
> you (this needed for reproducing an error), also, what's gensim version you
> used for training?
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#1977 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AKKbOITGhvpo6uG0edHhR0oRPcrcIganks5tg5vhgaJpZM4Soqlr>
> .
>
|
@fsfeng thanks for the information, now I understand what happens. |
…g old Gensim versions. Fix #2000, #1977 (#2012) * adds default values for attributes * ignore values for attributes that do not exist * adds unit test * fixes default values for missing attributes for older gensim models * adds unit test cases for loading really old gensim models * adds test cases for loading all old models * adds more tests post loading * handles loading d2v models saved using version <=0.12.2 * fix `max_rawint` value and PEP8 errors * adds saving and loading back tests * adds comments and fixes `max_rawint` * fix PEP8
fixed in #2012 |
…g old Gensim versions. Fix piskvorky#2000, piskvorky#1977 (piskvorky#2012) * adds default values for attributes * ignore values for attributes that do not exist * adds unit test * fixes default values for missing attributes for older gensim models * adds unit test cases for loading really old gensim models * adds test cases for loading all old models * adds more tests post loading * handles loading d2v models saved using version <=0.12.2 * fix `max_rawint` value and PEP8 errors * adds saving and loading back tests * adds comments and fixes `max_rawint` * fix PEP8
I trained a Doc2Vec model in an earlier version of gensim and now can not load it. I tried both
Doc2Vec.load(fname)
andDoc2Vec.load(fname, mmap = 'r')
. Both produce the same errors:AttributeError: Can't get attribute 'DocvecsArray' on <module 'gensim.models.doc2vec' from 'DIR/python/miniconda3/lib/python3.6/site-packages/gensim/models/doc2vec.py'>
AttributeError: 'Doc2Vec' object has no attribute 'running_training_loss'
Any help would be much appreciated. Thanks!
The text was updated successfully, but these errors were encountered: