From d40f685e37ef01a437eceaf352197739f4e6c9b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radim=20=C5=98eh=C5=AF=C5=99ek?= Date: Thu, 30 Jul 2020 14:36:10 +0200 Subject: [PATCH] put back no-op property setter of deprecated vectors_norm --- gensim/models/keyedvectors.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gensim/models/keyedvectors.py b/gensim/models/keyedvectors.py index e78beb8f44..84a7a923c4 100644 --- a/gensim/models/keyedvectors.py +++ b/gensim/models/keyedvectors.py @@ -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)?