From d25a304c4d3990bc6d53c95a8f2dfef233321d99 Mon Sep 17 00:00:00 2001 From: HongCheng Date: Thu, 21 Mar 2024 16:06:41 +0900 Subject: [PATCH] Update process_single_turn_conversation_construction.py --- .../process_single_turn_conversation_construction.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/datasets/processed/process_single_turn_conversation_construction.py b/datasets/processed/process_single_turn_conversation_construction.py index 5c419ab..5dd5a72 100644 --- a/datasets/processed/process_single_turn_conversation_construction.py +++ b/datasets/processed/process_single_turn_conversation_construction.py @@ -6,10 +6,6 @@ file_name = 'single_turn_dataset_2.json' with open(f'/root/StableCascade/emollm2/EmoLLM/datasets/{file_name}', 'rt', encoding='utf-8') as file: format1_data = json.load(file) -# n = 0 -# for i in data: -# i['conversation'][0]['system'] = "你是心理健康助手EmoLLM,由EmoLLM团队打造。你旨在通过专业心理咨询,协助来访者完成心理诊断。请充分利用专业心理学知识与咨询技术,一步步帮助来访者解决心理问题。" - system = "你是心理健康助手EmoLLM,由EmoLLM团队打造。你旨在通过专业心理咨询,协助来访者完成心理诊断。请充分利用专业心理学知识与咨询技术,一步步帮助来访者解决心理问题。" # 转换为格式2的数据 @@ -28,4 +24,4 @@ for item in format1_data: with open(f'./processed_{file_name}', 'wt', encoding='utf-8') as file: json.dump(format2_data, file, ensure_ascii=False, indent=4) -print(format2_data[0]) \ No newline at end of file +print(format2_data[0])