diff --git a/umbra/anchor_algorithm.py b/umbra/anchor_algorithm.py index e53f9e923ccce74359ef18cef9b5aa0891fe1769..187e1020b9bbc0dcf824b6ff61d1981ff0e01886 100644 --- a/umbra/anchor_algorithm.py +++ b/umbra/anchor_algorithm.py @@ -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.