Skip to content

Commit

Permalink
Update word_embedding_distance.py
Browse files Browse the repository at this point in the history
  • Loading branch information
qiyanjun committed Aug 2, 2021
1 parent 0da95d8 commit e98c801
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def _check_constraint(self, transformed_text, reference_text):
i >= len(reference_text.words) or i >= len(transformed_text.words)
for i in indices
):
return false
return False

for i in indices:
ref_word = reference_text.words[i]
Expand Down

0 comments on commit e98c801

Please sign in to comment.