From 67653870ac77a1d2bced98096cb29f292a7278ac Mon Sep 17 00:00:00 2001 From: "Vriezen, E.C. (Emma)" <e.vriezen@student.ru.nl> Date: Mon, 2 Dec 2019 12:02:28 +0100 Subject: [PATCH] Changed an equality test of words in anchor algorithm. Mistake was introduced during merging at some point. --- umbra/anchor_algorithm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umbra/anchor_algorithm.py b/umbra/anchor_algorithm.py index 711d4711..282cec7d 100644 --- a/umbra/anchor_algorithm.py +++ b/umbra/anchor_algorithm.py @@ -81,7 +81,7 @@ class AnchorAlgorithm(AlignmentStrategy): competing_over = None for shadow_index in range(shd_start, shd_end): shd_word = self._shadow[shadow_index] - if src_word.__eq__(shd_word) and not found: + if src_word.word == shd_word.word and not found: if 0.05 < src_word.get_difference(shd_word) < 3.0: if not shd_word.correct: found = True -- GitLab