Skip to content

Instantly share code, notes, and snippets.

@djokester
Created August 7, 2018 08:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save djokester/35b3f596dcd8352c31ab2c112ab0223f to your computer and use it in GitHub Desktop.
Save djokester/35b3f596dcd8352c31ab2c112ab0223f to your computer and use it in GitHub Desktop.
import gensim
model = gensim.models.Doc2Vec(vector_size= 200, window= 3, min_count= 0, workers=4, epochs= 40)
model.build_vocab(docs)
model.train(docs, total_examples=model.corpus_count, epochs=model.iter)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment