Created
November 28, 2020 18:19
-
-
Save pranjalAI/131666ad771d1cf99257916fe7f9a44c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
corpus=[dictionary.doc2bow(gen_doc) for gen_doc in gen_docs] | |
tf_idf=gensim.models.TfidfModel(corpus) | |
sims = gensim.similarities.Similarity("workdir/", tf_idf[corpus], num_features=len(dictionary)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment