Skip to content

Commit

Permalink
Merge pull request #401 from frankwhzhang/fix_w2c_0323
Browse files Browse the repository at this point in the history
fix word2vec reader
  • Loading branch information
seemingwang authored Mar 23, 2021
2 parents 4a6006e + d85651e commit 758799e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/recall/word2vec/word2vec_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ def __iter__(self):
for idx, target_id in enumerate(word_ids):
context_word_ids = self.get_context_words(word_ids,
idx)
output = []
for context_id in context_word_ids:
output = []
output.append(
np.array([int(target_id)]).astype('int64'))
output.append(
Expand Down

0 comments on commit 758799e

Please sign in to comment.