Skip to content

Commit

Permalink
put back no-op property setter of deprecated vectors_norm
Browse files Browse the repository at this point in the history
  • Loading branch information
piskvorky committed Jul 30, 2020
1 parent 3919b68 commit d40f685
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gensim/models/keyedvectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,10 @@ def vectors_norm(self):
"See https://github.com/RaRe-Technologies/gensim/wiki/Migrating-from-Gensim-3.x-to-4#init_sims"
)

@vectors_norm.setter
def vectors_norm(self, _):
pass # no-op; shouldn't be set

def get_normed_vectors(self):
# TODO: what's the way for users to get from a matrix index (integer) to the
# corresponding key (string)?
Expand Down

0 comments on commit d40f685

Please sign in to comment.