From e98c801ecaf0e89c409f67be8244d97690b390fa Mon Sep 17 00:00:00 2001 From: Yanjun Qi Date: Mon, 2 Aug 2021 11:48:06 -0400 Subject: [PATCH] Update word_embedding_distance.py --- textattack/constraints/semantics/word_embedding_distance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/textattack/constraints/semantics/word_embedding_distance.py b/textattack/constraints/semantics/word_embedding_distance.py index 4eb48abf..b17a1109 100644 --- a/textattack/constraints/semantics/word_embedding_distance.py +++ b/textattack/constraints/semantics/word_embedding_distance.py @@ -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]