I've got a problem with online updating my Word2Vec model.
I have a document and build model by it. But this document can update with new words, and I need to update vocabulary and model in general.
I know that in gensim 0.13.4.1 we can do this
My code:
model = gensim.models.Word2Vec(size=100, window=10, min_count=5, workers=11, alpha=0.025, min_alpha=0.025, iter=20)
model.build_vocab(sentences, update=False)
model.train(sentences, epochs=model.iter, total_examples=model.corpus_count)
model.save('model.bin')
And after this I have new words. For e.x.:
sen2 = [['absd', 'jadoih', 'sdohf'], ['asdihf', 'oisdh', 'oiswhefo'], ['a', 'v', 'b', 'c'], ['q', 'q', 'q']]
model.build_vocab(sen2, update=True)
model.train(sen2, epochs=model.iter, total_examples=model.corpus_count)
What's wrong and how can I solve my problem?