Update process_single_turn_conversation_construction.py

This commit is contained in:
HongCheng 2024-03-21 16:06:41 +09:00 committed by GitHub
parent 085a01eafa
commit d25a304c4d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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的数据