Skip to content

Instantly share code, notes, and snippets.

Created August 7, 2021 16:10
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Save and Load dictionary and BOW in Gensim
# Save the Dictionary and BOW'/content/drive/MyDrive/gensim_tutorial/g_dict1.dict')
corpora.MmCorpus.serialize('/content/drive/MyDrive/gensim_tutorial/', g_bow)
# Load the Dictionary and BOW
g_dict_load = corpora.Dictionary.load('/content/drive/MyDrive/gensim_tutorial/g_dict1.dict')
g_bow_load = corpora.MmCorpus('/content/drive/MyDrive/gensim_tutorial/')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment