From c8cade35db24b0ccc4a02f840a003a8baba1872c Mon Sep 17 00:00:00 2001 From: awwaawwa <8493196+awwaawwa@users.noreply.github.com> Date: Sat, 29 Jun 2024 06:12:40 +0800 Subject: [PATCH] update core_functional.py --- core_functional.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/core_functional.py b/core_functional.py index 078e1696c1..4bc02b994c 100644 --- a/core_functional.py +++ b/core_functional.py @@ -67,18 +67,18 @@ def get_core_functions(): "AutoClearHistory": True, "Prefix": r"Help me ensure that the grammar and the spelling is correct. " r"Do not try to polish the text, if no mistake is found, tell me that this paragraph is good. " - r"If you find grammar or spelling mistakes, please list mistakes you find in a two-column markdown table, " + r"If you find grammar or spelling mistakes, please list mistakes you find in a three-column markdown table, " r"put the original text the first column, " r"put the corrected text in the second column and highlight the key words you fixed. " r"Finally, please provide the proofreaded text.""\n\n" r"Example:""\n" r"Paragraph: How is you? Do you knows what is it?""\n" - r"| Original sentence | Corrected sentence |""\n" - r"| :--- | :--- |""\n" - r"| How **is** you? | How **are** you? |""\n" - r"| Do you **knows** what **is** **it**? | Do you **know** what **it** **is** ? |""\n\n" + r"| Original sentence | Corrected sentence | Explanation |""\n" + r"| :--- | :--- | :--- |""\n" + r"| How **is** you? | How **are** you? | some explanation |""\n" + r"| Do you **knows** what **is** **it**? | Do you **know** what **it** **is** ? | some explanation |""\n\n" r"Below is a paragraph from an academic paper. " - r"You need to report all grammar and spelling mistakes as the example before." + r"You need to report all grammar and spelling mistakes as the example before. 请使用中文撰写Explanation,其他内容使用原始语言。" + "\n\n", "Suffix": r"", "PreProcess": clear_line_break, # 预处理:清除换行符