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

Non-anchor source words that are matched in the shadow algorithm have their...

Non-anchor source words that are matched in the shadow algorithm have their shadow attribute set to the corresponding shadow word.
parent 32ac26f4
No related branches found
No related tags found
1 merge request!84Sc 129/create delay output
......@@ -82,6 +82,7 @@ class AnchorAlgorithm(AlignmentStrategy):
found = True
competing_over = None
src_word.shadowed = True
src_word.shadow = shd_word
shd_word.correct = True
shd_word.source = src_word
else: # If potential shadow is already flagged, store it
......@@ -89,6 +90,7 @@ class AnchorAlgorithm(AlignmentStrategy):
# If true, then competing_over was wrongly flagged as correct:
if competing_over is not None:
competing_over.source.shadowed = False
competing_over.source.shadow = None
competing_over.source = src_word # Shadow to new source word
src_word.shadowed = 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