From 7a5bfa2673f93a4e6e29ff667009149f230e8c7d Mon Sep 17 00:00:00 2001 From: shaohuzhang1 <80892890+shaohuzhang1@users.noreply.github.com> Date: Thu, 13 Jun 2024 10:41:52 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=AF=BC=E5=85=A5?= =?UTF-8?q?=E5=B8=A6=E6=9C=89=E8=A1=A8=E6=A0=BC=E6=A0=B7=E5=BC=8F=E7=9A=84?= =?UTF-8?q?md=E6=96=87=E4=BB=B6=E5=88=86=E6=AE=B5=E5=90=8E=E8=A1=A8?= =?UTF-8?q?=E6=A0=BC=E6=A0=BC=E5=BC=8F=E4=B8=A2=E5=A4=B1=20#615=20(#630)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/common/util/split_model.py | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/common/util/split_model.py b/apps/common/util/split_model.py index 10e827c30..6b8fd3695 100644 --- a/apps/common/util/split_model.py +++ b/apps/common/util/split_model.py @@ -335,6 +335,7 @@ class SplitModel: :param text: 文本数据 :return: 解析后数据 {content:段落数据,keywords:[‘段落关键词’],parent_chain:['段落父级链路']} """ + text = text.replace('\r\n', '\n') text = text.replace('\r', '\n') text = text.replace("\0", '') result_tree = self.parse_to_tree(text, 0)