I am trying to continue training on an existing model,
model = gensim.models.Word2Vec.load('model/corpus.zhwiki.word.model')
more_sentences = [['Advanced', 'users', 'can', 'load', 'a', 'model', 'and', 'continue', 'training', 'it', 'with', 'more', 'sentences']]
model.build_vocab(more_sentences, update=True)
model.train(more_sentences, total_examples=model.corpus_count, epochs=model.iter)
but I got an error with the last line:
AttributeError: 'Word2Vec' object has no attribute 'compute_loss'
Some posts said it's caused by using a earlier version of gensim, and I have tried to add this after loading the existing model and before train().
model.compute_loss = False
After that, it didn't give me the AttributeError, but the output of model.train() is 0, and model didn't trained with new sentences.
How to solve this problem?