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

Now the anchor algorithm also searches after the last anchor.

parent 014681cd
No related branches found
No related tags found
1 merge request!46Sc 113/implement repetition mistakes
......@@ -43,8 +43,11 @@ class AnchorAlgorithm(AlignmentStrategy):
shd_index)
shd_last_anchor = self._shadow.index(word.anchor) + 1
src_last_anchor = src_index + 1
elif src_index == len(self._source):
print("TESTESTSETSET")
elif src_index == len(self._source)-1:
shd_index = len(self._shadow)-1
self._search_between_anchors(src_last_anchor,
shd_last_anchor, src_index,
shd_index)
def _search_between_anchors(self, src_start, shd_start, src_end, shd_end):
"""Search for shadowed words between two anchored pairs of words.
......
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