From 47cb83ce0c016af8c28b723ffaa3bdbe277b4610 Mon Sep 17 00:00:00 2001 From: shaohuzhang1 Date: Fri, 15 Dec 2023 11:53:43 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=88=86=E6=AE=B5=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/common/util/split_model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/common/util/split_model.py b/apps/common/util/split_model.py index 8e305bb27..2a4264f8a 100644 --- a/apps/common/util/split_model.py +++ b/apps/common/util/split_model.py @@ -332,7 +332,7 @@ class SplitModel: :param text: 文本数据 :return: 解析后数据 {content:段落数据,keywords:[‘段落关键词’],parent_chain:['段落父级链路']} """ - result_tree = self.parse_to_tree(text, 0) + result_tree = self.parse_to_tree(text.replace('\r', '\n'), 0) return result_tree_to_paragraph(result_tree, [], [])