def __len__(self):
        if len(self._offsets) <= len(self._pieces):
            # Iterate to the end of the corpus.
            for tok in self.iterate_from(self._offsets[-1]): pass

        return self._offsets[-1]
dataset/ETHPy150Open nltk/nltk/nltk/corpus/reader/util.py/ConcatenatedCorpusView.__len__/original