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

Fix bug that prevents loading old models #3359

Merged
merged 8 commits into from Dec 7, 2022
Merged

Conversation

funasshi
Copy link
Contributor

@funasshi funasshi commented Jun 22, 2022

Fixes #3357.

Problem

the model created by gensim 3.8.3 cannot be loaded by load function of gensim 4.2.0 and Attribute error occurs.

How to solve

import Vocab in word2vec.py

gensim/models/word2vec.py Outdated Show resolved Hide resolved
gensim/models/word2vec.py Outdated Show resolved Hide resolved
gensim/models/word2vec.py Outdated Show resolved Hide resolved
@mpenkov
Copy link
Collaborator

mpenkov commented Oct 17, 2022

Not sure why the changes are causing tests to consistently fail. Will need to look into it later.

@piskvorky piskvorky added this to the Next release milestone Nov 19, 2022
@mpenkov mpenkov changed the title fix the problem of loading old gensim model by new gensim model Fix bug that prevents loading old models Dec 7, 2022
@mpenkov mpenkov added the bug Issue described a bug label Dec 7, 2022
@mpenkov
Copy link
Collaborator

mpenkov commented Dec 7, 2022

Thank you @funasshi !

@mpenkov mpenkov merged commit e656d77 into piskvorky:develop Dec 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue described a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How to load 3.8.3 gensim word2vec model by new version 4.2.0 gensim model
3 participants