Comments (3)
From your stack dump, it seems likely your console has shown you the message:
Model load error. Was model saved using code from an older Gensim version? Try loading older model using gensim-3.8.3, then re-saving, to restore compatibility with current code.
Have you tried downgrading your Gensim installation to version 3.8.3, loading your model(s), and if that succeeds, re-saving them to new file paths. Then, upgrading to current Gensim, and loading those new saves?
Note that you can install a specific older version of Gensim by specifying a version to to your usual installation command. (For example, pip install gensim==3.8.3
with pip
or conda install gensim=3.8.3
with conda
.)
Though: rolling back a single package can sometimes create compatibility mismatches with other related packages, so you may want to start in a fresh virtual environment and go from no-Gensim to gensim-3.8.3
(pulling in other matched packages), then move forward (or again use another fresh environment) to use current Gensim.
from gensim.
I will create a new environment with gensim 3.8.3, load and resave the older models. I was hoping there was a cleaner alternate solution, perhaps some kind of legacy parameters for older files.
from gensim.
Note that if your models are old enough, there's a chance you might need to load/save using an even-earlier version, first. (And, there may be a few other special cases of versions/modes/rare-usages that need extra work because of other once-upon-a-time bugs.)
But, 3.8.3 was the last version with a bunch of special-casing for a long range of older models, and (mostly) saves models that current-Gensim can load-forward, so should be the 1st workaround tried, and often is the only intermediate step needed.
from gensim.
Related Issues (20)
- is the summarization module removed in the newest version of gensim, i find it nowhere in the documentation? HOT 1
- Vocabulary size is much smaller than requested HOT 2
- Docs still reference fasttext.build_vocab sentences parameter HOT 1
- EnsembleLDA with pyLDAvis visualisation
- library stubs are missing HOT 1
- Installation Error: Failed building wheel for gensim HOT 6
- Support for python3.12 HOT 2
- It fails to convert non-ascii characters in Turkish wikipedia dump. HOT 1
- Doc2Vec on Wikipedia articles HOT 1
- SyntaxError: future feature annotations is not defined HOT 4
- How can we fix this issue when i use python 3.6? HOT 2
- Please do not hardcode `libc++` HOT 4
- Where are pre-trained doc2vec model w/ recent version of Gensim
- bug about remove_markup HOT 2
- Where are pre-trained doc2vec model w/ recent version of Gensim? HOT 1
- Out-of-Period Terms in LdaSeqModel
- Gensim broken with SciPy 1.13.0 HOT 12
- The triu function is now removed from scipy module HOT 1
- Wrong parameter information in `gensim.models.keyedvectors.KeyedVectors.save()` docstring.
- Bug on Import gensim HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gensim.