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
5 changes: 5 additions & 0 deletions gensim/models/word2vec.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,11 @@
from gensim.models.keyedvectors import KeyedVectors, pseudorandom_weak_vector
from gensim import utils, matutils

#
# This unused import is "somehow" required to fix #3357
piskvorky marked this conversation as resolved.
Show resolved Hide resolved
#
piskvorky marked this conversation as resolved.
Show resolved Hide resolved
from gensim.models.keyedvectors import Vocab # noqa

from smart_open.compression import get_supported_extensions

logger = logging.getLogger(__name__)
Expand Down