Closed poedator closed 2 years ago
replaced call to model.vocab with call to model.index_to_key to be compatible with gensim v.4. no extra sorting is needed - index_to_key is effectively coming in the order of keys.
model.vocab
model.index_to_key
gensim v.4
Check out this pull request on
See visual diffs & provide feedback on Jupyter Notebooks.
Powered by ReviewNB
replaced call to
model.vocab
with call tomodel.index_to_key
to be compatible withgensim v.4
. no extra sorting is needed - index_to_key is effectively coming in the order of keys.