Skip to content
This repository was archived by the owner on Jan 1, 2021. It is now read-only.
Merged
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
4 changes: 2 additions & 2 deletions examples/word2vec_utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
xfrom collections import Counter
from collections import Counter
import random
import os
import sys
Expand Down Expand Up @@ -81,4 +81,4 @@ def batch_gen(download_url, expected_byte, vocab_size, batch_size,
target_batch = np.zeros([batch_size, 1])
for index in range(batch_size):
center_batch[index], target_batch[index] = next(single_gen)
yield center_batch, target_batch
yield center_batch, target_batch