yandexdataschool / nlp_course

YSDA course in Natural Language Processing
https://lena-voita.github.io/nlp_course.html
MIT License
9.83k stars 2.61k forks source link

Sem-1 updated gensim.model.vocab call to v.4 style #98

Closed poedator closed 2 years ago

poedator commented 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.

review-notebook-app[bot] commented 2 years ago

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB