简体   繁体   中英

How to load a pre-trained Word2vec MODEL File?

I'm going to use a pre-trained word2vec model, but I don't know how to load it in python.

This file is a MODEL file (703 MB). http://devmount.github.io/GermanWordEmbeddings/

You can use gensim like this:

import gensim

# Load pre-trained Word2Vec model.
model = gensim.models.Word2Vec.load("filename.model")

More info here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM