In order to share word vector querying code between different training algos(Word2Vec, Fastext, WordRank, VarEmbed) we have separated storage and querying of word vectors into a separate class KeyedVectors.
Two methods and several attributes in word2vec class have been deprecated. The methods are load_word2vec_format and save_word2vec_format. The attributes are syn0norm, syn0, vocab, index2word . They have been moved to KeyedVectors class.
After upgrading to this release you might get exceptions about deprecated methods or missing attributes.
DeprecationWarning: Deprecated. Use model.wv.save_word2vec_format instead.
AttributeError: 'Word2Vec' object has no attribute 'vocab'
To remove the exceptions, you should useKeyedVectors.load_word2vec_format instead of Word2Vec.load_word2vec_formatword2vec_model.wv.save_word2vec_format instead of word2vec_model.save_word2vec_formatmodel.wv.syn0norm instead of model.syn0normmodel.wv.syn0 instead of model.syn0model.wv.vocab instead of model.vocabmodel.wv.index2word instead of model.index2word
WARNING:gensim.models.word2vec:direct access to syn0 will not be supported in future gensim releases, please use model.wv.syn0--
You received this message because you are subscribed to a topic in the Google Groups "gensim" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gensim/hlYgjqEVocw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gensim+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.