You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Path to output file or already opened file-like object. If the object is a file handle,
no special array handling will be performed, all attributes will be saved to the same file.
Could open a PR for this, but some docstrings like gensim.models.poincare.PoincareModel.save() has a different flavor, so I couldn't decide which one should I follow.
Problem description
Wrong parameter docstrings are in
gensim.models.keyedvectors.KeyedVectors.save()
.Steps/code/corpus to reproduce
Its docstrings say it has
fname
as its first parameter,gensim/gensim/models/keyedvectors.py
Lines 760 to 766 in 645c2d1
but
gensim.utils.SaveLoad.save()
'sfname
parameter was changed intofname_or_handle
about 9 years ago(fcf12fa), which can be puzzling.gensim/gensim/utils.py
Lines 724 to 734 in 645c2d1
Could open a PR for this, but some docstrings like
gensim.models.poincare.PoincareModel.save()
has a different flavor, so I couldn't decide which one should I follow.gensim/gensim/models/poincare.py
Lines 387 to 397 in 645c2d1
Could be a nice idea to clean things up, I guess.
Versions
Pretty sure it's not going to matter, but here it is.
The text was updated successfully, but these errors were encountered: