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
C:\Path_to_gensim\keyedvectors.py:877: FutureWarning: arrays to stack must be passed as a "sequence" type such as list or tuple. Support for non-sequence iterables such as generators is deprecated as of NumPy 1.16 and will raise an error in the future.
vectors = vstack(self.word_vec(word, use_norm=True) for word in used_words).astype(REAL)
In general, you don't have to worry about such DeprecationWarning messages - they don't affect functionality, and will be fixed when the functionality breaks.
But, in this case the code has already been fixed to avoid passing a generator to vstack – before, after – so the warning against this usage won't appear when using the next gensim release (4.0.0).
Problem description
I followed this instruction to load GloVe model. When I run:
model.doesnt_match("breakfast cereal dinner lunch".split())
from the tutorial, it produces FutureWarning on thevstack
function. It seems that I am not the first person to encounter this error as well. It might also be similar to Issue 2432. The error reads:Steps/code/corpus to reproduce
Versions
The text was updated successfully, but these errors were encountered: