Skip to content

Commit

Permalink
Fix docstring about limited save_word2vec_format
Browse files Browse the repository at this point in the history
  • Loading branch information
tmylk authored Jan 31, 2017
1 parent 933657d commit ae04cda
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gensim/models/doc2vec.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
>>> model.save(fname)
>>> model = Doc2Vec.load(fname) # you can continue training with the loaded model!
The model can also be instantiated from an existing file on disk in the word2vec C format::
The word vectors in the model can also be instantiated from an existing file on disk in the word2vec C format:
NOTE: document vectors are not loaded/saved with .load/save_word2vec_format(). Use .save()/.load() instead.
>>> model = Doc2Vec.load_word2vec_format('/tmp/vectors.txt', binary=False) # C text format
>>> model = Doc2Vec.load_word2vec_format('/tmp/vectors.bin', binary=True) # C binary format
Expand Down

0 comments on commit ae04cda

Please sign in to comment.