Skip to content

Commit

Permalink
clean up code
Browse files Browse the repository at this point in the history
  • Loading branch information
Rutu Mulkar-Mehta committed Jun 17, 2015
1 parent f949db3 commit 765d16c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion gensim/models/word2vec.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ def train_sentence_cbow(model, sentence, alpha, work=None, neu1=None):
def train_sg_pair(model, word, word2, alpha, labels, train_w1=True, train_w2=True):
l1 = model.syn0[word2.index]
neu1e = zeros(l1.shape)
# print str(word.index)+ " - "+ str(word2.index)
if model.hs:
# work on the entire tree at once, to push as much work into numpy's C routines as possible (performance)
l2a = deepcopy(model.syn1[word.point]) # 2d matrix, codelen x layer1_size
Expand Down

0 comments on commit 765d16c

Please sign in to comment.