def _get_read_size(self, subset, char_to_byte, slimit, offset_end):
        """
        @return: the byte size of text that should be read 
        next from the file stream
        @rtype: C{int}
        """
        if len(subset) != 0:
            last1 = subset[len(subset)-1]
            last = last1[1]
            last = char_to_byte.get(last, last)
            read_size = last - slimit
        else:
            elimit = char_to_byte.get(offset_end, offset_end)
            read_size = elimit - slimit
        return read_size
dataset/ETHPy150Open cidles/graf-python/nltk/masc.py/MascCorpusReader._get_read_size/original