Skip to content

Commit

Permalink
fix reference
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Dowling committed Jun 23, 2015
1 parent 179924b commit 8047ef8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions resources/gensim/gensim_word2vec.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,9 @@
os.system("taskset -p 0xff %d" % os.getpid())






def read_corpus(path_to_corpus, output_path, min_count=10, size=500, window=10):
workers = multiprocessing.cpu_count()
sentences = PreprocessingLineSentence(path_to_corpus)
sentences = gensim.models.word2vec.PreprocessingLineSentence(path_to_corpus)
model = gensim.models.Word2Vec(sentences, min_count=min_count, size=size, window=window, sg=1, workers=workers)
model.save(output_path)

Expand Down

0 comments on commit 8047ef8

Please sign in to comment.