

def sents(self, fileids=None):
    '\n        :return: the given file(s) as a list of\n            sentences or utterances, each encoded as a list of word\n            strings.\n        :rtype: list(list(str))\n        '
    if (self._sent_tokenizer is None):
        raise ValueError('No sentence tokenizer for this corpus')
    return concat([self.CorpusView(path, self._read_sent_block, encoding=enc) for (path, enc, fileid) in self.abspaths(fileids, True, True)])

dataset/ETHPy150Open nltk/nltk/nltk/corpus/reader/plaintext.py PlaintextCorpusReader.sents/original