Skip to content
Snippets Groups Projects
Commit 67653870 authored by Vriezen, E.C. (Emma)'s avatar Vriezen, E.C. (Emma)
Browse files

Changed an equality test of words in anchor algorithm. Mistake was introduced...

Changed an equality test of words in anchor algorithm. Mistake was introduced during merging at some point.
parent a4ac97d8
No related branches found
No related tags found
1 merge request!46Sc 113/implement repetition mistakes
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment