diff --git a/umbra/anchor_algorithm.py b/umbra/anchor_algorithm.py index 711d47116b2e3384381d60ac886c7f74467ac494..282cec7dbac8c9cc00fef9e034cc9e740b468b63 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