model = Word2Vec.load_word2vec_format('wikipedia-pubmed-and-PMC-w2v.bin',binary=True)
model.init_sims(replace=True)
model.save('bio_word')
#later load the model
Word2Vec.load('bio_word',mmap='r')I saw in the documentation that 'init_sims' can save a lot of memory. So if I first use this function ,and then save this model, and then later I load this model using mmap='r', will it save a lot of time?
Thanks a lot.
model = KeyedVectors.load('GoogleNews-vectors-gensim-normed.bin', mmap='r')instead of model = Word2Vec.load('GoogleNews-vectors-gensim-normed.bin', mmap='r')