def _realign_boundaries(self, text, slices):
        realign = 0
        for sl1, sl2 in _pair_iter(slices):
            sl1 = slice(sl1.start + realign, sl1.stop)
            if not sl2:
                if text[sl1]:
                    yield sl1
                continue

            m = self._lang_vars.re_boundary_realignment.match(text[sl2])
            if m:
                yield slice(sl1.start, sl2.start + len(m.group(0).rstrip()))
                realign = m.end()
            else:
                realign = 0
                if text[sl1]:
                    yield sl1
Return the actual dict object
dataset/ETHPy150Open nltk/nltk/nltk/tokenize/punkt.py/PunktSentenceTokenizer._realign_boundaries--crossover with--dataset/ETHPy150Open couchbase/couchbase-python-client/couchbase/items.py/ItemOptionDict.dict