break2paragraphs

ucca.textutil.break2paragraphs(passage, return_terminals=False, *args, **kwargs)[source]

Breaks into paragraphs according to the annotation.

Uses the `paragraph’ attribute of layer 0 to find paragraphs. :param passage: the Passage object to operate on :param return_terminals: whether to return actual Terminal objects of all terminals rather than just end positions :return: a list of positions in the Passage, each denotes a closing Terminal of a paragraph.