Description
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()
's fname
parameter was changed into fname_or_handle
about 9 years ago(fcf12fa), which can be puzzling.
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.
Linux-3.10.0-1160.el7.x86_64-x86_64-with-glibc2.17
Python 3.10.12 | packaged by conda-forge | (main, Jun 23 2023, 22:40:32) [GCC 12.3.0]
Bits 64
NumPy 1.26.4
SciPy 1.12.0
gensim 4.3.2
FAST_VERSION 1