post_process_sentence¶
-
lexnlp.nlp.en.segments.sentences.
post_process_sentence
(text: str, sent_span: Tuple[int, int]) → Generator[[Tuple[int, int], Any], Any]¶ Post-process sentence span detected by PunktSentenceTokenizer by additionally extracting titles, table of contents entries and other short strings stayed separately between empty lines into separate sentences. :param text: :param sent_span: :return: