Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion entities/learn_e2v/minibatch_a.lua
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ function process_one_line(line, minibatch, mb_index)
-- Still empty ? Get some random words then.
if num_positive_words_this_iter == 0 then
table.insert(positive_words_in_this_iter, get_word_from_id(random_unigram_at_unig_power_w_id()))
num_positive_words_this_iter = num_positive_words_this_iter + 1
end
end

Expand Down Expand Up @@ -153,4 +154,4 @@ function minibatch_to_correct_type(minibatch)
minibatch[1][2] = correct_type(minibatch[1][2])
minibatch[1][3] = correct_type(minibatch[1][3])
minibatch[3][1] = correct_type(minibatch[3][1])
end
end