'Return all sentences in the corpus or in the specified files/categories.
:param fileids: a list or regexp specifying the ids of the files whose
sentences have to be returned.
:param categories: a list specifying the categories whose sentences
have to be returned.
:return: the given file(s) as a list of sentences. Each sentence is
tokenized using the specified word_tokenizer.
:rtype: list(list(str))'

def sents(self, fileids=None, categories=None):

    fileids = self._resolve(fileids, categories)
    if (fileids is None):
        fileids = self._fileids
    elif isinstance(fileids, string_types):
        fileids = [fileids]
    return concat([self.CorpusView(path, self._read_sent_block, encoding=enc) for (path, enc, fileid) in self.abspaths(fileids, True, True)])
