mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: Segmented filtering of paragraphs with empty parent title content (#2693)
This commit is contained in:
parent
ca12d653a6
commit
db772b1d1c
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue