fix: Segmented filtering of paragraphs with empty parent title content (#2693)
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run

This commit is contained in:
shaohuzhang1 2025-03-26 16:02:26 +08:00 committed by GitHub
parent ca12d653a6
commit db772b1d1c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -344,9 +344,9 @@ class SplitModel:
'content' in item and len(item.get('content').strip()) > 0]
def post_reset_paragraph(self, paragraph: Dict, title_list: List[str]):
result = self.filter_title_special_characters(paragraph)
result = self.content_is_null(paragraph, title_list)
result = self.filter_title_special_characters(result)
result = self.sub_title(result)
result = self.content_is_null(result, title_list)
return result
@staticmethod