From db772b1d1c85e43215532148b1fe7d419e3f8601 Mon Sep 17 00:00:00 2001 From: shaohuzhang1 <80892890+shaohuzhang1@users.noreply.github.com> Date: Wed, 26 Mar 2025 16:02:26 +0800 Subject: [PATCH] fix: Segmented filtering of paragraphs with empty parent title content (#2693) --- apps/common/util/split_model.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/common/util/split_model.py b/apps/common/util/split_model.py index 5194bffea..81b253531 100644 --- a/apps/common/util/split_model.py +++ b/apps/common/util/split_model.py @@ -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