Save and Load dictionary and BOW in Gensim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Save the Dictionary and BOW | |
g_dict1.save('/content/drive/MyDrive/gensim_tutorial/g_dict1.dict') | |
corpora.MmCorpus.serialize('/content/drive/MyDrive/gensim_tutorial/g_bow1.mm', 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/g_bow1.mm') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment