break2sentences

ucca.textutil.break2sentences(passage, lang='en', *args, **kwargs)[source]

Breaks paragraphs into sentences according to the annotation.

A sentence is a list of terminals which ends with a mark from SENTENCE_END_MARKS, and is also the end of a paragraph or parallel scene. :param passage: the Passage object to operate on :param lang: optional two-letter language code :return: a list of positions in the Passage, each denotes a closing Terminal of a sentence.