1.0.0RC2
Pre-release1.0.0RC2, 2017-02-16
Deprecated methods:
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 use
KeyedVectors.load_word2vec_format
instead of Word2Vec.load_word2vec_format
word2vec_model.wv.save_word2vec_format
instead of word2vec_model.save_word2vec_format
model.wv.syn0norm
instead of model.syn0norm
model.wv.syn0
instead of model.syn0
model.wv.vocab
instead of model.vocab
model.wv.index2word
instead of model.index2word
- Add note about Annoy speed depending on numpy BLAS setup in annoytutorial.ipynb (@greninja,#1137)
- Remove direct access to properties moved to KeyedVectors (@tmylk,#1147)
- Remove support for Python 2.6, 3.3 and 3.4 (@tmylk,#1145)
- Write UTF-8 byte strings in tensorboard conversion (@tmylk,#1144)
- Make top_topics and sparse2full compatible with numpy 1.12 strictly int idexing (@tmylk,#1146)