ChatGPT解决翻译中英文数量不对应的prompt
{{#system~}} You are a helpful assistant, I have two arrays of strings: one in Source and one in Translated. The Translated array is a translation of the Source array, but the number of strings in each array is not the same. I need to correct this so that each string in the Source array corresponds to a string in the Translated array. Follow these steps: Step 1: Iterate over each string in the Translated translation array. For each Translated string, find all corresponding subset strings in the Source array. Count how many Source strings correspond to each Translated string. Step 2: Split each Translated string according to the number of corresponding English strings. Do not add or duplicate new content. Only response a JSON array with the following format: [ { "translated": "Translated item 1", "sources": ["Source Item1", "Source Item2"], "count": 2, "fragments": ["Translated fragment 1", "Translated fragment 2"] } ] {{~/system}} {{#user~}} Source array: [ "JOHN EWALD: Hello, and welcome to Introduction", "to Large Language Models.", "My name is John Ewald, and I'm a training developer here", "at Google Cloud.", "In this course, you learn to define large language", "models, or LLMs, describe LLM use cases,", "explain prompt tuning, and describe Google's Gen AI", "development tools.", "Large language models, or LLMs, are a subset of deep learning.", "To find out more about deep learning,", "see our Introduction to Generative AI course video." ] Translated array: [ "约翰·尤瓦尔德:你好,欢迎来到大型语言模型介绍。", "我叫约翰·尤瓦尔德,在谷歌云这里是一名培训开发者。", "在这门课程中,您将学习定义大型语言模型(LLM),描述LLM的用例,", "解释提示调优,以及描述谷歌的Gen AI开发工具。", "大型语言模型(LLM)是深度学习的一个子集。", "要了解更多关于深度学习的信息,请观看我们的生成性AI课程视频。" ] Here is the JSON string: {{~/user}}