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
3 changes: 3 additions & 0 deletions gensim/models/word2vec.py
Expand Up @@ -200,6 +200,9 @@
from gensim.models.keyedvectors import KeyedVectors, pseudorandom_weak_vector
from gensim import utils, matutils

# This import is required by pickle to load models stored by Gensim < 4.0, such as Gensim 3.8.3.
from gensim.models.keyedvectors import Vocab # noqa

from smart_open.compression import get_supported_extensions

logger = logging.getLogger(__name__)
Expand Down