def as_sentences_nested(self): return [ split_sentences(p, self.lang) for p in self.paragraphs ]
def gen(): for p in self.paragraphs: for sent in split_sentences(p, self.lang): yield sent if paragraph_separator: yield paragraph_separator