Skip to content

Commit

Permalink
Add doc2vec ngram builder script
Browse files Browse the repository at this point in the history
  • Loading branch information
peevo committed Mar 22, 2017
1 parent e98355a commit af4e141
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Binary file added ngram_vector_building/doc2vec/doc2vec.txt.7z
Binary file not shown.
7 changes: 7 additions & 0 deletions ngram_vector_building/doc2vec/sec2vec.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import gensim
import sys

if __name__ == '__main__':
documents = gensim.models.doc2vec.TaggedLineDocument(sys.argv[1])
model = gensim.models.doc2vec.Doc2Vec(documents, size=250, window=5, min_count=5, workers=32)
model.wv.save_word2vec_format('doc2vec.txt')

0 comments on commit af4e141

Please sign in to comment.