How to load a pre-trained Word2vec MODEL File and reuse it?
<p>I want to use a pre-trained <code>word2vec</code> model, but I don't know how to load it in python.</p>

<p>This file is a MODEL file (703 MB).
It can be downloaded here:<br>
<a href="http://devmount.github.io/GermanWordEmbeddings/" rel="nofollow">http://devmount.github.io/GermanWordEmbeddings/</a></p>

<p>just for loading</p>

<pre><code>import gensim

# Load pre-trained Word2Vec model.
model = gensim.models.Word2Vec.load("modelName.model")
</code></pre>

<p>now you can train the model as usual. also, if you want to be able to save it and retrain it multiple times, here's what you should do</p>

<pre><code>model.train(//insert proper parameters here//)
"""
If you don't plan to train the model any further, calling
init_sims will make the model much more memory-efficient
If `replace` is set, forget the original vectors and only keep the normalized
ones = saves lots of memory!
replace=True if you want to reuse the model
"""
model.init_sims(replace=True)

# save the model for later use
# for loading, call Word2Vec.load()

model.save("modelName.model")
</code></pre>

python file model word2vec