Fine-tuning pre-trained Word2Vec model with Gensim 4.0
With Gensim 4.0, we can retrain a word2vec model using the following code:
model = Word2Vec.load_word2vec_format(GoogleNews-vectors-negative300.bin, binary=True)
model.train(my_corpus, total_examples=len(my_corpus), epochs=model.epochs)
However, what I understand is that Gensim 4.0 is no longer supporting Word2Vec.load_word2vec_format
. Instead, I can only load the keyedVectors.
How to fine-tune a pre-trained word2vec model (such as the model trained on GoogleNews) with my domain-specific corpus using Gensim 4.0?
Topic pretraining transfer-learning gensim word2vec
Category Data Science