A data processing method and related equipment

By obtaining and adjusting the source objects in the translation prompt template, multi-task fine-tuning technology is used to improve the translation quality and accuracy of the large language model, solving the problem of low translation quality in the existing technology and achieving higher quality translation results.

CN118194887BActive Publication Date: 2024-08-23TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410617618.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-17
Publication Date
2024-08-23
Estimated Expiration
2044-05-17

AI Technical Summary

Technical Problem

Existing large language models have problems with low translation quality and inaccurate translation during the text translation process, which are affected by factors such as training data.

Method used

By obtaining the source object to be translated and the translation prompt template, inserting the source object to generate translation prompt information, performing translation processing and obtaining quality indication information, and adjusting the translation object according to the quality indication information to improve translation quality and accuracy.

Benefits of technology

The translation quality and accuracy are significantly improved. Through multi-task fine-tuning technology, the model has quality prediction and adjustment capabilities, and generates high-quality target translation objects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118194887B
    Figure CN118194887B
Patent Text Reader

Abstract

The embodiment of the present application provides a data processing method and related equipment, wherein the method includes: obtaining a source object to be translated; obtaining a translation prompt template, and inserting the source object into the translation prompt template according to the instructions of the translation prompt template to obtain translation prompt information; according to the translation prompt information, translating the source object to obtain a translation object of the source object; obtaining quality indication information corresponding to the translation object, and adjusting the translation object according to the quality indication information corresponding to the translation object to obtain a target translation object of the source object. The embodiment of the present application can improve the translation quality and translation accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Internet technology, and in particular to a data processing method and related equipment. Background Art

[0002] With the development of Internet technology, more and more artificial intelligence models have emerged, such as the Large Language Model (LLM). The LLM is a natural language processing model based on deep learning technology that can generate natural language text. The LLM requires a large amount of training data and computing resources to train and learn the laws and patterns of language. The LLM can be used in technologies such as text generation, machine translation, speech recognition, and computer vision.

[0003] However, existing large language models are affected by factors such as training data, and there are problems with low translation quality and inaccurate translation during the text translation process. Summary of the invention

[0004] The embodiments of the present application provide a data processing method and related devices, which can improve translation quality and translation accuracy.

[0005] On the one hand, an embodiment of the present application provides a data processing method, the method comprising:

[0006] Get the source object to be translated;

[0007] Obtaining a translation prompt template, and inserting a source object into the translation prompt template according to instructions of the translation prompt template to obtain translation prompt information;

[0008] According to the translation prompt information, the source object is translated to obtain the translation object of the source object;

[0009] The quality indication information corresponding to the translation object is obtained, and the translation object is adjusted according to the quality indication information corresponding to the translation object to obtain a target translation object of the source object.

[0010] On the one hand, an embodiment of the present application provides a data processing device, the device comprising:

[0011] An acquisition unit, used for acquiring a source object to be translated;

[0012] The acquisition unit is also used to acquire the translation prompt template;

[0013] A processing unit, used for inserting the source object into the translation prompt template according to the instruction of the translation prompt template to obtain translation prompt information;

[0014] The processing unit is further used to translate the source object according to the translation prompt information to obtain a translation object of the source object;

[0015] The processing unit is further used to obtain quality indication information corresponding to the translation object, and adjust the translation object according to the quality indication information corresponding to the translation object to obtain a target translation object of the source object.

[0016] In one aspect, an embodiment of the present application provides a computer device, the computer device comprising:

[0017] a processor suitable for executing a computer program;

[0018] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned data processing method is implemented.

[0019] On the one hand, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program, and the computer program is loaded by a processor and executes the above-mentioned data processing method.

[0020] On the one hand, an embodiment of the present application provides a computer program product, which includes a computer program or computer instructions, and the computer program or computer instructions implement the above-mentioned data processing method when executed by a processor.

[0021] In an embodiment of the present application, a source object to be translated is obtained, and a translation prompt template is obtained, and then the source object is inserted into the translation prompt template according to the instructions of the translation prompt template to obtain translation prompt information; according to the translation prompt information, the source object is translated to obtain a translation object of the source object; the quality indication information corresponding to the translation object is obtained, and according to the quality indication information corresponding to the translation object, the translation object is adjusted to obtain a target translation object of the source object. It can be seen that after translating the source object, the embodiment of the present application further indicates the quality of the translation object through the quality indication information corresponding to the translation object, so as to guide the adjustment of the translation object according to the quality indication information corresponding to the translation object, which can improve the translation quality when translating the source object and improve the accuracy of the translation of the source object. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0023] Figure 1 A schematic diagram of a translation reasoning framework provided in an embodiment of the present application;

[0024] Figure 2 An architectural diagram of a data processing system provided in an embodiment of the present application;

[0025] Figure 3 A flowchart of a data processing method provided in an embodiment of the present application;

[0026] Figure 4 A schematic diagram of generating translation prompt information provided in an embodiment of the present application;

[0027] Figure 5 Another schematic diagram of generating translation prompt information provided in an embodiment of the present application;

[0028] Figure 6 A schematic diagram of generating modification prompt information provided in an embodiment of the present application;

[0029] Figure 7 A flowchart of a model training method provided in an embodiment of the present application;

[0030] Figure 8 A schematic diagram of the structure of a data processing device provided in an embodiment of the present application;

[0031] Fig. 9 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0032] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0033] First, the relevant technical terms involved in the embodiments of the present application are explained.

[0034] 1. Artificial Intelligence (AI)

[0035] AI is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technology in computer science that attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a similar way to human intelligence. Artificial intelligence is to study the design principles and implementation methods of various intelligent machines so that machines have the functions of perception, reasoning and decision-making.

[0036] Artificial intelligence technology is a comprehensive discipline that covers a wide range of fields, including both hardware-level and software-level technologies. Basic artificial intelligence technologies generally include sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, pre-trained model technology, operation / interaction systems, mechatronics, etc. Among them, the pre-trained model is also called a large language model or a basic model. After fine-tuning, it can be widely used in downstream tasks in various major directions of artificial intelligence.

[0037] 2. Large Language Model

[0038] A large language model refers to a deep neural network (DNN) with large parameters. It is trained on a large amount of unlabeled data. The function approximation ability of the large parameter DNN is used to enable the PTM to extract common features from the data. After fine tuning, parameter efficient fine tuning (PEFT), prompt-tuning and other technologies, it is suitable for downstream tasks. Therefore, the pre-trained model can achieve ideal results in few-shot or zero-shot scenarios. According to the data modality processed, PTM can be divided into language models (ELMO, BERT, GPT), visual models (swin-transformer, ViT, V-MOE), speech models (VALL-E), multimodal models (ViBERT, CLIP, Flamingo, Gato), etc., among which the multimodal model refers to a model that establishes two or more data modality feature representations. The pre-trained model is an important tool for outputting artificial intelligence generated content (AIGC), and can also be used as a general interface to connect multiple specific task models.

[0039] In an embodiment of the present application, a large language model can be fine-tuned in multiple tasks to obtain an object translation model, which can translate the source object to be translated and predict the quality of the translated translation object, and adjust the translation object based on the quality prediction result of the translation object, so as to obtain a more accurate and higher quality target translation object.

[0040] 3. Multi-task fine-tuning

[0041] Fine-tuning is a machine learning technique that aims to optimize a model’s ability to perform given instructions by training it on specific instructions or a specific task description, and is typically used for large language models.

[0042] In an embodiment of the present application, multi-task fine-tuning refers to fine-tuning a large language model through multiple tasks at the same time, thereby obtaining an object translation model. The multiple tasks here include: translation tasks, quality assessment tasks, and translation adjustment tasks. The translation task can be responsible for providing basic multilingual knowledge for the large language model, and can ensure that the subsequent model is correctly translated. The quality prediction task can help the model understand the gap between different translation qualities, so that the model has the ability to distinguish the pros and cons of translations and can make quality predictions for the translation objects translated by the model; the translation adjustment task enables the model to modify and improve different translation objects differently according to the quality prediction results. In the embodiment of the present application, through multi-task fine-tuning, the final object translation model can make quality predictions for the source object, and adjust the translation object of the source object according to the quality prediction.

[0043] 4. Source Object and Target Object

[0044] The source object refers to an article, a sentence, a word, etc. to be translated. Schematically, the source object can be a sentence, in which case the source object can be called a source sentence. The language type of the source object can include, but is not limited to, Chinese, English, Japanese, etc. The translation object refers to the translation of the source object, that is, the translation object is a translation of a source object of a certain language type into a translation object of another language type, such as translating a source object of Japanese into Chinese. In an embodiment of the present application, the translation object can be called a draft, and the target translation object is obtained by adjusting the draft.

[0045] The present application embodiment provides a data processing solution, which mainly generates a high-quality final translation by guiding a large language model to evaluate, reflect on and modify the translation results generated by itself. The data processing solution may include the following two parts: (1) a large language model machine translation reasoning process; (2) a multi-task fine-tuning process for the large language model. Please refer to Figure 1 , is a schematic diagram of a translation reasoning framework provided in an embodiment of the present application. Figure 1 The large language model machine translation inference process consists of two stages (i.e. Figure 1 Inference Phase 1 and Inference Phase 2), where:

[0046] Reasoning stage 1: Perform a preliminary translation on the source object to be translated to obtain a translation object (i.e., a draft) of the source object, and perform a quality prediction on the translation object; specifically, the source object can be inserted into the translation prompt template according to the instructions of the translation prompt template to obtain translation prompt information, and the translation prompt information can prompt the object translation model to translate the source object and perform a quality prediction on the translation object obtained by the translation; then the translation prompt information is input into a large language model (hereinafter referred to as the object translation model) for translation processing to obtain the translation object of the source object and the quality indication information corresponding to the translation object.

[0047] Inference stage 2: According to the quality indicator information corresponding to the translation object, the translation object is adjusted, that is, the quality indicator information (such as quality score, quality level, etc.) can guide the object translation model to polish the translation object into a more fluent, accurate, and high-quality target translation object. Through the above two stages, the object translation model is clearly required to predict the quality of the translation object it generates, and modify the translation object according to the predicted quality indicator information, which can improve the translation quality and accuracy.

[0048] exist Figure 1 In order to ensure that the object translation model can have the above-mentioned two-stage reasoning ability, the embodiment of the present application performs multi-task instruction fine-tuning on the large language model. The multi-task fine-tuning process of the large language model includes three sub-tasks: 1) Translation task (Basic Translation): This task is responsible for providing the model with basic multilingual knowledge, which is the basis for the model to perform correct translation; specifically, the first sample subset can be constructed from a parallel corpus consisting of a number of source objects and manually written translation objects in the WMT (Workshop on Machine Translation) development set, that is, the first sample subset includes each first sample object, which can be the source object in the above-mentioned parallel prediction, and the reference translation object in the parallel corpus is used as the supervised translation object; the large language model is fine-tuned by the first sample subset, so that multilingual knowledge can be provided to the large language model, that is, through source objects and translation objects of different language types, the large language model can have multilingual knowledge.

[0049] 2) Quality Prediction Task: The quality prediction task can help the model understand the gap between different translation qualities, so that the model has the ability to distinguish between good and bad translations and can make quality predictions on the translation objects translated by the model; specifically, for any source object in the parallel corpus, multiple translation systems can output translation objects with different quality indication information. In the embodiment of the present application, these source objects, the translation objects corresponding to the source objects, and the quality indication information of the translation objects can be used as supervision data to construct a second sample subset, and the large language model is fine-tuned through the second sample subset, so that the model can make quality predictions on the translation objects of the source objects.

[0050] 3) Draft Refinement: This task ensures that the model has the ability to modify and improve different drafts differently according to the different results of quality assessment. Specifically, for any source sentence in the WMT development set, the translation object with the highest score output by multiple translation systems can be selected as the reference translation object for the translation adjustment task, and the translation objects corresponding to the remaining scores can be used as the translation objects to be adjusted to construct a third sample subset, and the large language model is fine-tuned through the third sample subset, so that the model can modify and improve different translation objects differently according to the quality prediction results, so that the model has the ability to modify and improve the translation objects obtained by the initial translation. In the embodiment of the present application, through multi-task fine-tuning, the final object translation model can make quality predictions for the source object, and adjust the translation object of the source object according to the quality indication information obtained by the quality prediction.

[0051] It should be noted here that in the subsequent description of the embodiments of the present application, the large language model before multi-task fine-tuning is referred to as the initial translation model, and the large language model after multi-task fine-tuning is referred to as the object translation model.

[0052] Next, a schematic diagram of the architecture of the data processing system provided in an embodiment of the present application is provided.

[0053] See also Figure 2 , is an architecture diagram of a data processing system provided in an embodiment of the present application, the data processing system includes a terminal device 201 and a server 202. It should be understood that the embodiment of the present application does not impose any limitation on the number of terminal devices and servers. The terminal device 201 and the server 202 can be directly or indirectly connected via wired or wireless communication. Among them:

[0054] The terminal device 201 can provide a translation interface, in which the object can input the source object to be translated, such as a sentence, an article, a word, etc. The terminal device 201 can display the target translation object obtained after translating the source object in the translation interface. Among them, the terminal device can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart car, a smart wearable device, etc.

[0055] The server 202 can be used to translate the source object to be translated. An object translation model can be deployed in the server 202. The server 202 can call the object translation model to translate the source object input in the terminal device 201 and predict the quality of the translation object of the source object, and adjust the translation object through the object translation model to obtain the target translation object of the source object. The server 202 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms.

[0056] In one embodiment, in combination Figure 2 The terminal device and the server shown illustrate the data processing flow between the terminal device and the server, and the data processing flow may include the following two parts: a multi-task fine-tuning stage for the model and a model reasoning stage.

[0057] (1) Multi-task fine-tuning of the model: Specifically, the server 202 may obtain a sample set, and perform multi-task fine-tuning on the initial translation model through the sample set to obtain the object translation model. The initial translation model may be any open source large language model. It should be understood that how to perform multi-task fine-tuning will be described in subsequent embodiments.

[0058] (2) Model inference stage

[0059] ① When the object wants to translate, the source object to be translated (such as an English sentence) can be input in the translation interface provided by the terminal device 201. The terminal device 201 responds to the input source object, can generate a translation request based on the source object, and send the translation request to the server 202.

[0060] ② The server 202 receives the translation request and responds to the translation request, obtains a translation prompt template, and then inserts the source object into the translation prompt template according to the translation prompt template to obtain translation prompt information, which can prompt the source object to be translated and make a quality prediction for the translation object obtained by the translation.

[0061] ③ The server 202 translates the source object according to the translation prompt information, and obtains the translation object of the source object and the quality indication information of the translation object. In one implementation, the server 202 inputs the translation prompt information into the object translation model to translate the source object and predicts the quality of the translation object obtained by the translation, and obtains the translation object output by the object translation model and the quality indication information corresponding to the translation object. The quality indication information can be used to indicate the quality of the translation object translated by the object translation model.

[0062] ④ The server 202 adjusts the translation object according to the quality indication information corresponding to the translation object to obtain the target translation object of the source object. In one implementation, the server 202 can obtain a modification prompt template, and insert the source object, the translation object, and the quality indication information of the translation object into the modification prompt template according to the instruction of the modification prompt template to obtain the modification prompt information, and input the modification prompt information into the object translation model to adjust the translation object to obtain the target translation object output by the object translation model.

[0063] ⑤ The server 202 may return the target translation object to the terminal device 201, and the terminal device 201 may output the target translation object in the translation interface.

[0064] In summary, the embodiments of the present application can perform multi-task fine-tuning on the initial translation model, so that the object translation model finally obtained has the ability to predict the quality of the translation object and adjust the translation object according to the quality indication information; further, in the reasoning stage, the source object to be translated can be directly input into the object translation model for translation and quality prediction, and the translation object of the source object and the quality indication information corresponding to the translation object can be obtained, and the translation object can be adjusted according to the quality indication information, so that the concept or knowledge about the translation quality can be explicitly introduced without changing the model architecture of the initial translation model, which makes the reasoning process explainable, thereby improving the translation quality and translation accuracy.

[0065] It should be noted that the interactive process of the above data processing is only used for example and does not limit the specific execution process of the terminal device and the server. Optionally, the terminal device 201 can perform multi-task fine-tuning on the initial translation model and translate the source object and predict the quality of the translation object obtained by the translation, and then adjust the translation object according to the quality indication information. Alternatively, the server 202 can perform multi-task fine-tuning on the initial translation model to obtain the object translation model, and deploy the object translation model on the terminal device 201, that is, the terminal device 201 calls the object translation model to translate the source object and predict the quality of the translation object obtained by the translation, and then adjust the translation object according to the quality indication information.

[0066] It can be understood that the system architecture diagram described in the embodiment of the present application is for more clearly illustrating the technical solution of the embodiment of the present application, and does not constitute a limitation on the technical solution provided in the embodiment of the present application. A person of ordinary skill in the art can know that with the evolution of the system architecture and the emergence of new business scenarios, the technical solution provided in the embodiment of the present application is also applicable to similar technical problems.

[0067] Next, the data processing method provided in the embodiment of the present application is described.

[0068] See also Figure 3 , is a flow chart of a data processing method provided in an embodiment of the present application. The data processing method can be executed by a computer device, which can be a terminal device or a server in the above system. The data processing method can include the following steps S301-S305:

[0069] S301: Obtain a source object to be translated.

[0070] The source object may be a sentence, a word, an article, etc. The source object corresponds to a language type, such as Chinese, Japanese, English, etc. For example, the source object may be a Chinese sentence "The weather is very good today". In the embodiment of the present application, a translation interface may be provided, and the object may input the source object to be translated in the translation interface, and the source object to be translated may be obtained in response to the input source object.

[0071] S302: Obtain a translation prompt template, and insert a source object into the translation prompt template according to instructions of the translation prompt template to obtain translation prompt information.

[0072] In one implementation, the translation prompt template includes a first area and a second area, and the first area includes first indication information; the first indication information is used to indicate the language type of the source object and the language type of the translation object corresponding to the source object. The second area is used to insert the source object. In one implementation, the second area may include object insertion indication information, and the object insertion indication information is used to indicate the insertion of the source object; inserting the source object into the translation prompt template according to the instructions of the translation prompt template to obtain translation prompt information includes: inserting the language type of the source object and the language type of the translation object corresponding to the source object in the first area according to the instructions of the first indication information, and inserting the source object in the second area to obtain translation prompt information. The translation prompt information is used to prompt the source object to be translated.

[0073] For illustration, see Figure 4 , is a schematic diagram of generating translation prompt information provided in an embodiment of the present application. Figure 4 In the example, the translation prompt template 41 includes a first area 411 and a second area 412; the first area 411 includes first indication information 4111 (i.e., translating [the language type of the source object] into [the language type of the translation object]). Assuming that the source object to be translated is "Why can XX easily run through a mountain road", according to the instruction of the first indication information, the language type of the source object (i.e., Chinese is entered in area 411) and the language type of the corresponding translation object (such as English is entered in area 411) can be inserted in the first area, and "Why can XX easily run through a mountain road" can be inserted in the second area 412, and finally the translation prompt information 42 is obtained. It should be understood that inserting the language type of the source object and the language type of the translation object corresponding to the source object in the first area according to the first indication information means instructing to translate the source object from one language type to another language type.

[0074] In another implementation, the translation prompt template includes a first area, a second area, and a third area, and the first area includes first indication information; the first indication information is used to indicate the language type of the source object and the language type of the translation object corresponding to the source object. The second area is used to insert the source object, and the third area includes second indication information, and the second indication information is used to indicate the quality prediction of the translation object obtained by translating the source object. At this time, inserting the source object into the translation prompt template according to the instructions of the translation prompt template to obtain the translation prompt information includes: inserting the language type of the source object and the language type of the translation object corresponding to the source object at the first area according to the instructions of the first indication information, and inserting the source object at the second area to obtain the translation prompt information, and at this time the translation prompt information includes the second indication information. Among them, the translation prompt information is used to prompt the source object to be translated and the translation object obtained by translating the source object is predicted.

[0075] Indicatively, Figure 5 As shown, the translation prompt template 51 includes a first area 511, a second area 512 and a third area 513. The first area 511 includes first indication information 5111; the first indication information 5111 is used to indicate the language type of the source object and the language type of the translation object corresponding to the source object. The second area 512 is used to insert the source object, and the third area 513 includes second indication information 5131; the source object to be translated is "Why can XX easily run a section of mountain road", according to the instructions of the first indication information, the language type of the source object and the language type of the corresponding translation object can be inserted in the first area, and "Why can XX easily run a section of mountain road" can be inserted in the second area, and finally the translation prompt information 52 is obtained.

[0076] It should be understood that the second area may include object insertion indication information for indicating the insertion of the source object. In this case, the translation prompt template may be: [the language type of the source object] is translated into [the language type of the target object], and the labels of the quality indication information obtained by the quality prediction are the first quality level, the second quality level, and the third quality level;. [Source object]. In one implementation, the translation prompt template can be expressed in English, and the translation prompt template is Translate from [source object language type] to [target object language type], and the quality indicator information label the translation quality as "Good", "Medium" or "Bad". [source object]; where . [Source object] is the object insertion instruction information, which is used to indicate the insertion of the source object.

[0077] Optionally, in addition to prompting the quality prediction of the target object obtained by translating the source object, the second indication information 5131 can be used to prompt the type of quality indication information obtained by performing quality prediction on the target object, such as Figure 5 In the example, the second indication information 5131 is used to indicate that the type of quality indication information obtained by performing quality prediction on the translation object is a quality label, and the quality label may include a first quality level (such as Good), a second quality level (Medium), and a third quality level (Bad). Of course, the second indication information 5131 may also be used to indicate that the type of quality indication information obtained by performing quality prediction on the translation object is a quality score, and the embodiment of the present application does not impose any limitation on this.

[0078] S303: Translate the source object according to the translation prompt information to obtain a translation object of the source object.

[0079] In one implementation, step S303 may specifically include: calling the object translation model, translating the source object according to the translation prompt information, and obtaining a translation object of the source object.

[0080] S304: Obtain quality indication information corresponding to the translation object.

[0081] Among them, the quality indication information may include a quality score or a quality label (i.e., a quality grade). That is to say, in an embodiment of the present application, when the quality indication information includes a quality score, a quality prediction is performed on the translation object to obtain a quality score of the translation object. This process may also be referred to as quality evaluation (Quality Estimation, QE). When the quality indication information includes a quality label, the quality label may include a first quality grade, a second quality grade, and a third quality grade. Schematically, the first quality grade is Good, the second quality grade is medium, and the third quality grade is Bad. At this point, a quality prediction is performed on the translation object to obtain a quality label of the translation object. This process may be referred to as text classification (Text Classification, TC).

[0082] According to different contents of the translation prompt information, step S304 includes the following implementation methods:

[0083] Method (1): When the translation prompt information is used to prompt the translation of the source object and to predict the quality of the translated object of the source object, the specific implementation method of step S304 includes: according to the instructions of the translation prompt information, predicting the quality of the translated object of the source object, and obtaining the quality indication information corresponding to the translated object. In one implementation, the translation prompt information is generated according to the translation prompt template, and the translation prompt information includes second indication information. According to the instructions of the second indication information, the quality of the translated object of the source object is predicted, and the quality indication information corresponding to the translated object is obtained; wherein the quality indication information includes any one of the following: a first quality level, a second quality level, and a third quality level. Or the quality indication information is a quality score.

[0084] It should be understood that in method (1), the translation of the source object and the quality prediction of the target object of the source object are performed at the same stage, that is, the source object is translated and the quality prediction of the target object obtained by the translation is performed, and the quality indication information of the target object obtained here can be a character-type quality indication information.

[0085] In one implementation, the object translation model can be called to translate the source object based on the translation prompt information and to perform quality prediction on the translation object obtained by the translation, thereby obtaining the translation object of the source object and the quality indication information of the translation object. Figure 1 In the process, the object translation model is called to translate “Why can XX easily run a mountain road” based on the translation prompt information 17 and to predict the quality of the translated text object. Finally, the following is obtained: Figure 1 The translation object shown in 18 is "Why can XX effortlessly traverse a mountainous trail", and the quality indication information of the translation object is the second quality level (Medium). The process of calling the object translation model, translating the source object based on the translation prompt information, and predicting the quality of the translation object obtained by the translation, and obtaining the translation object of the source object and the quality indication information of the translation object can be described by the following formula:

[0086] Formula 1

[0087] In formula 1, y represents the translation object of the source object. represents the quality indicator information of the target object, x represents the source object, Indicates the translation hint template. represents the model parameters of the object translation model, ) represents the probability distribution of the translation object and quality indicator information under the object translation model. The calculation formula of the probability distribution is as follows:

[0088]

[0089] In formula 2, Indicates that the translation object includes m tokens (which can be words, parts of words, or characters). The probability of indicating the quality of the translation object, Represents the probability distribution of the translation object; Represents the probability product of m words in the object translation model. That is to say, in the embodiment of the present application, the object translation model is called, the source object is translated based on the translation prompt information, and the quality of the translation object obtained by the translation is predicted, the probability distribution of the tokens in the translation object and the probability of the quality indication information are obtained, and the translation object of the object and the quality indication information of the translation object can be determined according to the probability distribution of the tokens in the translation object and the probability of the quality indication information. It can be understood that the object translation model here implements the text generation task, and the quality indication information of the translation object obtained can be a character-type quality indication information or a discrete quality indication information.

[0090] Mode (2): When the above translation prompt information is used to prompt the translation of the source object, at this time, the quality prediction of the translation object can be performed separately to obtain the quality indication information corresponding to the translation object. In one implementation, a quality prediction prompt template for quality prediction can be provided separately, and the specific implementation method of step S304 includes: obtaining the quality prediction prompt template; according to the indication of the quality prediction prompt template, inserting the translation object of the source object into the quality prediction prompt template to obtain the quality prediction prompt information; according to the quality prediction prompt information, performing quality prediction on the translation object of the source object to obtain the quality indication information corresponding to the translation object.

[0091] It should be noted here that, in the case of method (2), translating the source object and predicting the quality of the translated object of the source object are two independent stages, that is, the first stage performs translation and the second stage performs pure quality prediction. At this time, the quality indication information of the translated object obtained can be floating-point quality indication information, which can be expressed as a continuous quality score.

[0092] In one implementation, the object translation model can be called to perform quality prediction on the source object according to the quality prediction indication information, and obtain the quality indication information corresponding to the translation object. In order to obtain the indication information of the translation object, the embodiment of the present application can modify the output layer of the initial translation model, and divide the output layer into a first output module and a second output module for separate training, wherein the first output module can be used for text generation tasks, and the second output module can be used for regression tasks, that is, for pure quality prediction. Specifically, in the embodiment of the present application, the target translation object of the source object is obtained by translating the source object by calling the object translation model, and the object translation model includes an output layer, and the output layer includes a first output module and a second output module. The first output module can be used to output the translation object corresponding to the source object and the target translation object, and the second output module is used to output the quality indication information corresponding to the translation object.

[0093] It should be understood that the first output module includes a first hidden layer and a first connection layer. The first hidden layer can be used to output a K-dimensional vector corresponding to the source object (such as K is 4096), and the first connection layer can be used to convert the K-dimensional vector corresponding to the source object into an R-dimensional vector according to the dictionary size, wherein R is associated with the dictionary size. Schematically, the size of the dictionary is 1 million, then R=1 million, and the dictionary contains descriptions of a large number of words. Then, each dimension of the R-dimensional vector corresponds to the probability of a token in the final translation object and the probability of quality indication information; the second output module includes a second hidden layer and a second connection layer. The second hidden layer can be used to output a K-dimensional vector corresponding to the source object (such as K is 4096), and the second connection layer can be used to directly convert the K-dimensional vector into one-dimensional quality indication information, and a continuous quality indication information representation can be obtained through the second connection layer.

[0094] In another implementation, the object translation model includes a translation sub-model and a quality prediction sub-model. The translation sub-model can be used to translate the source object according to the translation prompt information to obtain the translation object of the source object and adjust the translation object according to the quality indication information corresponding to the translation object to obtain the target translation object of the source object; the quality prediction sub-model is used to obtain the quality indication information corresponding to the translation object, that is, the quality prediction sub-model can predict the quality of the translation object based on the quality prediction indication information to obtain the quality indication information corresponding to the translation object.

[0095] S305: Adjust the translation object according to the quality indication information corresponding to the translation object to obtain a target translation object of the source object.

[0096] Wherein, step S305 may include the following steps s11-s12:

[0097] s11. Obtain a modification prompt template, and insert the source object, the translation object of the source object, and the quality indication information corresponding to the translation object into the modification prompt template according to the instruction of the modification prompt template to obtain modification prompt information.

[0098] The modification prompt template includes a first modification prompt area, a second modification prompt area and a third modification prompt area, the first modification prompt area includes first modification indication information; the first modification indication information is used to indicate the language type of the inserted source object and the language type of the translated object corresponding to the source object, the second modification prompt area is used to insert the source object; the third modification prompt area includes second modification indication information, the second modification indication information is used to indicate the quality indication information corresponding to the inserted translated object; according to the indication of the modification prompt template, the source object, the translated object and the quality indication information corresponding to the translated object are inserted into the modification prompt template to obtain the modification prompt information, which may include: according to the indication of the first modification indication information, inserting the language type of the source object and the language type of the translated object corresponding to the source object in the first modification prompt area; inserting the source object in the second modification prompt area, and inserting the translated object and the corresponding quality indication information in the third modification prompt area according to the indication of the second modification indication information to obtain the modification prompt information.

[0099] For illustration, see Figure 6 , is a schematic diagram of generating modification prompt information provided in an embodiment of the present application. Figure 6 In the modification prompt template 61, the modification prompt area 61 includes a first modification prompt area 611, a second modification prompt area 612, and a third modification prompt area 613. The first modification prompt area 611 includes first modification indication information 6111, which is used to indicate the language type of the inserted source object and the language type of the translation object corresponding to the source object; the third modification prompt area 613 includes second modification indication information 6131, which is used to indicate the quality indication information corresponding to the inserted translation object. Suppose the source object is "Why can XX effortlessly traverse a mountainous trail", the translation object corresponding to the source object is "Why can XX effortlessly traverse a mountainous trail", and the quality indication information of the translation object is [second quality level]. According to the instruction of the modification prompt template, the language type of the source object inserted in the first modification prompt area 611 is Chinese (chinese), and the language type of the translation object of the source object is English (English), which means that the Chinese source object is translated into English. The source object “Why can XX easily run through a mountain road” is inserted into the second modification prompt area 612, and the quality indication information “second quality level” and the translation object corresponding to the translation object are inserted into the third modification prompt area according to the instruction of the second modification instruction information, so as to obtain the following: Figure 6 The modification indication information 62 is shown.

[0100] It should be understood that the second modification prompt area may include object insertion prompt information for prompting the insertion of the source object. The modification prompt template may be: translate [the language type of the source object] into [the language type of the target object]. [Source object] ###; In one implementation, the modification prompt template can be expressed in English, and the modification prompt template is: Translate from [language type of source object] to [language type of target object]. [Source object] ### Tips: Quality indicators of translated objects: [Quality indication information] [Translation object]. Indicates carriage return and line feed.

[0101] In addition, the modification indication template may also include a fourth modification prompt area, such as Figure 6 The fourth modification prompt area shown includes third modification indication information 614, which is used to prompt that the final translation obtains an error-free target translation object and avoids generating a low-quality target translation object.

[0102] s12. According to the modification prompt information, the translation object is adjusted to obtain the target translation object of the source object.

[0103] In one implementation, the modification prompt information can be input into the object translation model to adjust the translation object and obtain the target translation object of the source object. Figure 1 In the example, the modification prompt information 19 is input into the object translation model, and the target translation object 20 output by the object translation model can be obtained. The process of inputting the modification prompt information into the object translation model to adjust the translation object can be described by the following formula:

[0104] Formula 3

[0105] In formula 3, Represents the target translation object, that is, the final translation object after adjustment by the object translation model. It represents the probability distribution of the target translation object after the object translation model modifies the translation object under the modification prompt information. The probability distribution includes the probability of each token in the target translation object. y represents the translation object of the source object. Indicates modification prompt information, x indicates the source object, Represents the model parameters of the object translation model. The calculation formula for the probability distribution of the target translation object is as follows:

[0106] = Formula 4

[0107] Indicates the target translation object, 1:n means the target translation object includes n tokens, and n represents the sequence length of the target translation object; represents the probability distribution of n tokens in the target translation object when the model parameter of the object translation model is θ and the quality indicator information of the translation object y is q; Represents the probability product of n tokens in the object translation model. That is, the probability distribution of the n tokens included in the target translation object can be output through the object translation model, and the target translation object can be determined according to the probability distribution of the n tokens included in the target translation object.

[0108] In the embodiment of the present application, a source object to be translated is obtained, and a translation prompt template is obtained, and then the source object is inserted into the translation prompt template according to the instructions of the translation prompt template to obtain translation prompt information; according to the translation prompt information, the source object is translated to obtain a translation object of the source object; the quality indication information corresponding to the translation object is obtained, and according to the quality indication information corresponding to the translation object, the translation object is adjusted to obtain a target translation object of the source object. It can be seen that the embodiment of the present application adjusts the translation object through the quality indication information corresponding to the translation object, which can improve the translation quality of the source object and improve the accuracy of the translation of the source object.

[0109] In some embodiments, the target translation object of the source object is obtained by translating the source object by calling the object translation model. That is to say, in the embodiments of the present application, the source object can be translated by the object translation model, and the quality of the translation object obtained by translation is predicted to obtain the quality indication information of the translation object. Further, the translation object is adjusted based on the quality indication information of the translation object by the object translation model to obtain the target translation object of the source object. In order to enable the above-mentioned object translation model to have the ability to predict the quality of the translation object and adjust the translation object, the embodiments of the present application provide a model training method. Please refer to Figure 7 , is a flow chart of a model training method provided in an embodiment of the present application. The model training method can be executed by a computer device, and the model training method can include the following steps S701-S702:

[0110] S701: Obtain a sample set.

[0111] The sample set may come from a target development set (such as a WMT development set), which includes a number of parallel corpora consisting of source objects and manually written translation objects. Specifically, the sample set may include a first sample subset, a second sample subset, and a third sample subset, wherein the first sample subset includes a plurality of first sample objects, and each first sample object corresponds to a supervised translation object; the second sample subset includes a plurality of second sample objects, and each second sample object corresponds to sample supervision data, and the sample supervision data includes at least one supervised sample translation object and supervision quality indication information of each supervised sample translation object; the third sample subset includes a plurality of third sample objects, at least one sample translation object corresponding to each third sample object, and sample quality indication information of each sample translation object; each third sample object corresponds to a reference translation object. Illustratively, in an embodiment of the present application, the development set of WMT and the output translation objects of multiple existing translation systems can be used to construct a first sample subset, a second sample subset, and a third sample subset for multiple tasks. The sample subsets in the embodiment of the present application may involve sample objects in four directions, namely, Chinese to English, English to Chinese, German to English, and English to German. Of course, other translation directions may also be included, and the embodiment of the present application does not impose any limitations.

[0112] The first sample object in the first sample subset may be a source object (such as a source sentence) in a parallel corpus included in a target development set (such as a WMT development set), and the supervised translation object of the first sample object may be a translation object in the parallel corpus.

[0113] The second sample object in the second sample subset can also come from the target development set. For any source object in the target development set, multiple translation systems can be used to translate to obtain translation objects of different qualities. Some of these translation objects may be close to the standard reference translation object, while others may have serious errors. In an embodiment of the present application, the COMET indicator can be used to calculate the scores of translation objects obtained by translating the source objects in the target development set by different translation systems. COMET is a performance indicator for model translation evaluation. The larger the score of the translation object, the more accurate the translation of the translation object. In one implementation, the translation objects corresponding to the same source object can be classified according to the scores of the translation objects. For the same source object, the translation objects corresponding to the same source object can be sorted in descending order according to the scores of the translation objects corresponding to the same source object, and the top K (such as 10)% of the translation objects are obtained, and the quality labels of the top K% of the translation objects are set to the first quality level; the bottom L% (such as the bottom 50%) of the translation objects are obtained, and the quality labels of the bottom L% of the translation objects are set to the translation objects of the third quality level, and the quality labels of the remaining translation objects are set to the second quality level. That is, the source object corresponds to at least one translation object, and the quality label of each translation object can be used as the supervision quality indication information of the translation object. At this time, the source object in the target development set can be used as the second sample object, and the translation object of the source object and the supervision quality indication information of the translation object can be used as the sample supervision data of the second sample object to construct the second sample subset. Schematically, for source object 1 in the target development set, source object 1 is obtained through four translation systems to obtain four translation objects (i.e., translation object 1, translation object 2, translation object 3, and translation object 4), and one translation system translates source object 1 to obtain one translation object; the score of translation object 1 is 20, the score of translation object 2 is 50, the score of translation object 3 is 40, and the score of translation object 4 is 30; the four translation objects are sorted from large to small according to the scores: translation object 2, translation object 3, translation object 4, translation object 1. The top K (e.g., 25)% of the translation objects are obtained, i.e., translation object 2 is obtained, and the quality label of translation object 2 is set to the first quality level; the bottom L% (e.g., the bottom 50%) of the translation objects are obtained, i.e., translation object 1 and translation object 4 are obtained, and the quality labels of translation object 1 and translation object 4 are set to translation objects of the third quality level; the quality label of the remaining translation object 3 is set to the second quality level.

[0114] Optionally, you can specify the target text according to [target text] [category label]” constitutes the sample supervision data of the second sample object in the text generation fine-tuning process (i.e., the initial translation model fine-tuning).

[0115] In another implementation, in addition to using a quality label to represent the supervision quality indication information of the second sample object, a specific quality score may be used to represent the supervision quality indication information of the second sample object. Specifically, the scores of each translated object corresponding to the same source object may be multiplied by a target value (such as 100) and rounded down to obtain the quality score of the translated object, and the quality score of the translated object may be used as the supervision quality indication information of the translated object. In this case, the source object in the target development set may be used as the second sample object, and the translated object of the source object and the supervision quality indication information of the translated object may be used as the sample supervision data of the second sample object. Optionally, the “[translation object] [quality score]” constitutes the sample supervision data of the second sample object in the text generation fine-tuning process.

[0116] Specifically, for any source object in the target development set, the embodiment of the present application can select the translation object with the highest score among the translation objects corresponding to the source object as the reference translation object to modify other translation objects corresponding to the source object, that is, other translation objects corresponding to the source object can be used as translation objects to be adjusted. At this time, the source object in the target development set can be used as the third sample object, and then the third sample subset can be constructed according to the third sample object, at least one sample translation object corresponding to the third sample object, the sample quality indication information of each sample translation object, and the reference translation object corresponding to each third sample object (i.e., supervision data).

[0117] S702, performing multi-task fine-tuning processing on the initial translation model through the sample set to obtain an object translation model; wherein the multi-task includes a translation task, a quality prediction task, and a translation adjustment task.

[0118] (1) The multi-task includes a translation task: using the sample set to perform multi-task fine-tuning on the initial translation model to obtain an object translation model, including: using the first sample subset to perform fine-tuning on the initial translation model to obtain the object translation model. Specifically, using the first sample subset to perform fine-tuning on the initial translation model to obtain the object translation model may include the following steps:

[0119] Step 1, obtain a prompt template. The prompt template may be as follows: [language type of the first sample object] is translated into [language type of the translation object corresponding to the first sample object]. [First sample object]. It can be seen that Figure 1In the example, the prompt template may include a language type prompt area 111, which is used to prompt the language type of the first sample object to be inserted and the language type of the translation object corresponding to the first sample object. In addition, the prompt template may also include a sample object input area 112, which is used to insert the first sample object. Optionally, the prompt template includes a model prompt area 113, which includes model translation prompt information (such as Figure 1 In the example, the model translation prompt information is: Note: A translation with no error could be; of course, the model translation prompt information can be expressed in English, i.e., Note: A translation with no error could be); the model translation prompt information is used to prompt the first sample object to be translated and the translated object to be obtained by translating as much as possible without errors.

[0120] Step 2: insert each first sample object in the first sample subset into the prompt template according to the instruction of the prompt template to obtain prompt information of each first sample object. Assume that the first sample object is "car models with various configurations can be purchased", the language type of the first sample object is Chinese (i.e., Chinese), and the language type of the translated object of the first sample object is English; according to the instruction of the prompt template, the first sample object "car models with various configurations can be purchased" can be inserted into the prompt template to obtain prompt information 11 of the first sample object, the language type of the first sample object inserted in the language type prompt area of ​​the prompt information 11 is Chinese, the language type of the translated object of the first sample object is English, and the first sample object "car models with various configurations can be purchased" is inserted into the sample object input area 112.

[0121] Step 3: calling the initial translation model, translating each first sample object according to the prompt information of each first sample object, and obtaining a translation object of each first sample object.

[0122] Specifically, the prompt information of each first sample object is input into the initial translation model, and the first sample object is translated to obtain the translation object of each first sample object output by the initial translation model, such as Figure 1 In the example, the prompt information 11 of the first sample object is input into the initial translation model, and the first sample object "all configured models will be available" is translated to obtain a translation object 14 of the first sample object, and the translation object 14 is "All configured models will be available".

[0123] Step 4: fine-tune the initial translation model according to the translation object of each first sample object and the corresponding supervised translation object to obtain the object translation model. Specifically, the first model loss of the initial translation model is determined according to the translation object of each first sample object and the corresponding supervised translation object, and the initial translation model is fine-tuned according to the first model loss to obtain the object translation model.

[0124] (2) Multi-task including quality prediction task:

[0125] In this implementation, a sample set is used to perform multi-task fine-tuning on the initial translation model to obtain the object translation model, which may include steps A to D:

[0126] Step A, obtaining a translation prompt template.

[0127] Step B, according to the instructions of the translation prompt template, insert each second sample object into the translation prompt template to obtain translation prompt information of each second sample object, and the translation prompt information of each second sample object is used to prompt the translation of the corresponding second sample object and to predict the quality of the translation object obtained by translating the second sample object. Figure 1 In the example, the second sample object is "Das Wetter ist schön". According to the prompt of the translation prompt template, the second sample object is inserted into the translation prompt template, and the following is obtained: Figure 1 Translation prompt information in 12.

[0128] Step C, calling the initial translation model, translating each second sample object and predicting the quality of the translation object obtained by translating each second sample object according to the translation prompt information of each second sample object, and obtaining the translation object corresponding to each second sample object and the sample quality indication information corresponding to the translation object of each second sample object. Specifically, the translation prompt information of each second sample object is input into the initial translation model, translating each second sample object and predicting the quality of the translation object obtained by translating each second sample object, and obtaining the translation object corresponding to each second sample object and the sample quality indication information corresponding to the translation object of each second sample object; schematically, as Figure 1 As shown, the translation prompt information 12 of the second sample object is input into the initial translation model (i.e. Figure 1 In the large language model shown in FIG. 1 , the second sample object is translated and the quality of the translated object is predicted, and the following is obtained: Figure 1 The translation object shown in 15 includes "The weather is nice", and the sample quality indication information corresponding to the translation object is the second quality level.

[0129] Step D: fine-tune the initial translation model according to the translation objects corresponding to each second sample object, the sample quality indication information corresponding to the translation objects, and the sample supervision data corresponding to each second sample object, so as to obtain the object translation model. Specifically, the second model loss of the initial translation model is determined according to the translation objects corresponding to each second sample object, the sample quality indication information corresponding to the translation objects, and the sample supervision data corresponding to each second sample object, and the initial translation model is fine-tune according to the second model loss to obtain the object translation model.

[0130] (3) Multi-tasks include: translation adjustment tasks

[0131] In this implementation, the sample set is used to perform multi-task fine-tuning on the initial translation model to obtain the object translation model, including the following steps ① to ④:

[0132] Step ①, obtain the modification prompt template.

[0133] Step ②, according to the instruction of the modification prompt template, insert each third sample object, the sample translation object corresponding to each third sample object, and the sample quality indication information corresponding to the sample translation object into the modification prompt template to obtain the sample modification prompt information of each sample translation object. Figure 1 , the third sample object is “The weather isnice”, the sample translation object corresponding to the third sample object is “The weather is nice”, and the sample quality indication information of the sample translation object is the second quality level (“Medium”). Then, according to the instruction of the modification prompt template, the second sample object “Theweather is nice”, the translation object of the second sample object “The weather is nice” and the sample quality indication information “second quality level” are inserted into the modification prompt template to obtain the sample modification prompt information 13 of the sample translation object.

[0134] Step ③, calling the initial translation model, adjusting the corresponding sample translation object based on the sample modification prompt information of each sample translation object, and obtaining the modified translation object of each sample translation object. Specifically, the sample modification prompt information of each sample object is input into the initial translation model, and the sample translation object is adjusted to obtain the modified translation object of each sample translation object output by the initial translation model, schematically, as shown in FIG. Figure 1 In the example, the sample modification prompt information 13 of the sample translation object is input into the initial translation model, and the sample translation object is adjusted to obtain the modified translation object 16 output by the initial translation model.

[0135] Step ④, fine-tune the initial translation object according to the modified translation object of each sample translation object and the reference translation object corresponding to each sample translation object to obtain an object translation model. Specifically, the third model loss of the initial translation model can be determined according to the modified translation object of each sample translation object and the corresponding reference translation object, and the model parameters of the initial translation model can be adjusted according to the third model loss to obtain an object translation model.

[0136] It should be understood that when the above three tasks are completed, the multi-task fine-tuning of the initial translation model can be achieved, and the object translation model is finally obtained. The object translation model may include but is not limited to: BLOOMZ-MT-7b1 and LLaMA-2.

[0137] In summary, the embodiment of the present application introduces a large number of sample objects related to quality assessment when fine-tuning the model for multiple tasks, which enables the model to have a more comprehensive understanding of the different quality levels of the translation objects. This knowledge can ensure that the model can complete the quality prediction task more accurately and help the model output the final translation object that meets the high-quality evaluation standards. In addition, in the process of model fine-tuning, fine-tuning is directly performed on the original model without introducing a new network structure, which can reduce the additional overhead caused by the model training and deployment process to a certain extent.

[0138] It should be understood that the data processing method and multi-task fine-tuning of the model proposed in the embodiment of the present application have been effectively verified on the public test set of the machine translation competition WMT. Among them, the object translation models we selected are BLOOMZ-MT-7b1 and LLaMA-2, and the large language models for machine translation used for comparison are ParroT, TIM and Bayling. The comparison results between the object translation model provided in the embodiment of the present application and ParroT, TIM and Bayling can be shown in Tables 1 and 2:

[0139] Table 1 Performance of the test set provided by the embodiment of the present application when LLaMA is selected as the object translation model

[0140]

[0141] Table 2 Performance of the method provided in the embodiment of the present application on the test set when BLOOZ is selected as the object translation model

[0142]

[0143] Among them, the above Comet and BLEU are both index parameters for text generation evaluation. The full name of Bleu is Bilingual Evaluation Understudy, which means bilingual evaluation replacement. It is an evaluation index for measuring the accuracy of a model with multiple correct output results. The core idea of ​​BLEU is to compare the degree of overlap of n-grams in the candidate translation object and the reference translation object. The higher the degree of overlap, the higher the translation quality is considered to be, and it is mostly used for translation quality evaluation. The above "=>" means translation, such as En=>Zh means English translation into Chinese, and De=>En means German translation into English. From Table 1 and Table 2, the object translation model provided in the embodiment of the present application has an average value of Comet and BLEU in the two index parameters greater than the average value of the comparison model (such as TIM, ParroT, etc.) in the two index parameters of Comet and BLEU. It can be seen that the translation quality of the final translation object (i.e., the target translation object) obtained by the translation of the object translation model provided in the embodiment of the present application is higher than the compared model, and the translation accuracy is higher.

[0144] In summary, the data processing method proposed in the embodiment of the present application can rely on the object translation model itself, without introducing any additional network structure, and the data processing method provided in the embodiment of the present application explicitly requires the model to predict the quality of the translation object generated by itself, and adjust the translation object according to the quality indication information obtained by the prediction. And in the corresponding multi-task fine-tuning process, we introduced a large number of sample objects related to quality assessment, which enables the model to have a more comprehensive understanding of the different quality levels of the translation. This knowledge can ensure that the object translation model completes the quality prediction task more accurately, and helps the model output the final translation result that meets the high-quality evaluation criteria.

[0145] Next, the data processing device provided in the embodiment of the present application is described.

[0146] See also Figure 8 , Figure 8 is a structural diagram of a data processing device provided in an embodiment of the present application. The data processing device may be a computer program (including program code) in a computer device. For example, the data processing device may be an application software in a computer device. The data processing device may be used to execute Figure 3 or Figure 7 Some or all of the steps in the method embodiment shown. Figure 8 , the data processing device comprises the following units:

[0147] An acquisition unit 801 is used to acquire a source object to be translated;

[0148] The acquisition unit 801 is also used to acquire a translation prompt template;

[0149] The processing unit 802 is used to insert the source object into the translation prompt template according to the instruction of the translation prompt template to obtain translation prompt information;

[0150] The processing unit 802 is further used to translate the source object according to the translation prompt information to obtain a translation object of the source object;

[0151] The processing unit 802 is further configured to obtain quality indication information corresponding to the translation object, and adjust the translation object according to the quality indication information corresponding to the translation object to obtain a target translation object of the source object.

[0152] In one implementation, the translation prompt template includes a first area and a second area, the first area includes first indication information; the first indication information is used to indicate the language type of the source object and the language type of the translation object corresponding to the source object, and the second area is used to insert the source object; the processing unit 802 can be specifically used to:

[0153] According to the instruction of the first instruction information, the language type of the source object and the language type of the translation object corresponding to the source object are inserted in the first area, and the source object is inserted in the second area to obtain translation prompt information.

[0154] In one implementation, the translation prompt information is used to indicate the quality prediction of the translation object obtained by translating the source object; the processing unit 802 may be specifically used to:

[0155] According to the instructions of the translation prompt information, quality prediction is performed on the translation object of the source object to obtain quality indication information corresponding to the translation object;

[0156] The quality indication information includes any one of the following: a first quality level, a second quality level, and a third quality level.

[0157] In one implementation, the processing unit 802 may be specifically configured to:

[0158] Get the quality prediction prompt template;

[0159] According to the instruction of the quality prediction prompt template, the translation object of the source object is inserted into the quality prediction prompt template to obtain quality prediction prompt information;

[0160] According to the quality prediction prompt information, quality prediction is performed on the translation object of the source object to obtain quality indication information corresponding to the translation object.

[0161] In one implementation, the processing unit 802 may be specifically configured to:

[0162] Get the modification prompt template;

[0163] According to the instruction of the modification prompt template, the source object, the target object and the quality indication information corresponding to the target object are inserted into the modification prompt template to obtain the modification prompt information;

[0164] According to the modification prompt information, the translation object is adjusted to obtain the target translation object of the source object.

[0165] In one implementation, the modification prompt template includes a first modification prompt area, a second modification prompt area, and a third modification prompt area, the first modification prompt area includes first modification indication information; the first modification indication information is used to indicate the language type of the inserted source object and the language type of the translation object corresponding to the source object, the second modification prompt area is used to insert the source object; the third modification prompt area includes second modification indication information, the second modification indication information is used to indicate the quality indication information corresponding to the inserted translation object; the processing unit 802 can be specifically used to:

[0166] According to the instruction of the first modification instruction information, inserting the language type of the source object and the language type of the translation object corresponding to the source object in the first modification prompt area;

[0167] The source object is inserted into the second modification prompt area, and the translation object and the corresponding quality indication information are inserted into the third modification prompt area according to the instruction of the second modification indication information, so as to obtain the modification prompt information.

[0168] In one implementation, the target translation object of the source object is obtained by translating the source object by calling an object translation model, the object translation model includes an output layer, the output layer includes a first output module and a second output module; the first output module is used to output the translation object corresponding to the source object and the target translation object; the second output module is used to output quality indication information corresponding to the translation object.

[0169] In one implementation, the target translation object of the source object is obtained by translating the source object by calling the object translation model. The processing unit 802 may also be used to:

[0170] Acquire a sample set; the sample set includes a first sample subset, a second sample subset and a third sample subset, the first sample subset includes a plurality of first sample objects, and supervised translation objects corresponding to each first sample object; the second sample subset includes a plurality of second sample objects, and sample supervision data corresponding to each second sample object, and the sample supervision data includes at least one supervised sample translation object and supervision quality indication information of each supervised sample translation object; the third sample subset includes a plurality of third sample objects, at least one sample translation object corresponding to each third sample object, and sample quality indication information of each sample translation object; each third sample object corresponds to a reference translation object;

[0171] The sample set is used to perform multi-task fine-tuning on the initial translation model to obtain an object translation model; the multi-tasks include: translation task, quality prediction task and translation adjustment task.

[0172] In one implementation, the multiple tasks include: a quality prediction task, and the processing unit 802 may be specifically configured to:

[0173] Get the translation hint template;

[0174] Inserting each second sample object into the translation prompt template according to the instruction of the translation prompt template to obtain translation prompt information of each second sample object;

[0175] Calling the initial translation model, translating each second sample object and predicting the quality of the translation object obtained by translating each second sample object according to the translation prompt information of each second sample object, and obtaining the translation object corresponding to each second sample object and the sample quality indication information corresponding to the translation object of each second sample object;

[0176] The initial translation model is fine-tuned according to the translation objects corresponding to each second sample object, the sample quality indication information corresponding to the translation object, and the sample supervision data corresponding to each second sample object to obtain an object translation model.

[0177] In one implementation, the multiple tasks include: a translation adjustment task, and the processing unit 802 may be specifically configured to:

[0178] Get the modification prompt template;

[0179] According to the instruction of the modification prompt template, each third sample object, the sample translation object corresponding to each third sample object, and the sample quality indication information corresponding to the sample translation object are inserted into the modification prompt template to obtain the sample modification prompt information of each sample translation object;

[0180] The initial translation model is called to adjust the corresponding sample translation objects based on the sample modification prompt information of each sample translation object to obtain the modified translation objects of each sample translation object;

[0181] According to the modified translation objects of each sample translation object and the reference translation objects corresponding to each sample translation object, the initial translation model is fine-tuned to obtain an object translation model.

[0182] In an embodiment of the present application, a source object to be translated is obtained, and a translation prompt template is obtained, and then the source object is inserted into the translation prompt template according to the instructions of the translation prompt template to obtain translation prompt information; according to the translation prompt information, the source object is translated to obtain a translation object of the source object; the quality indication information corresponding to the translation object is obtained, and according to the quality indication information corresponding to the translation object, the translation object is adjusted to obtain a target translation object of the source object. It can be seen that after translating the source object, the embodiment of the present application further indicates the quality of the translation object through the quality indication information corresponding to the translation object, so as to adjust the translation object according to the quality indication information corresponding to the translation object, which can improve the translation quality when translating the source object and improve the accuracy of the translation of the source object.

[0183] Next, the computer device provided in the embodiment of the present application is described.

[0184] Furthermore, the present application embodiment also provides a schematic diagram of the structure of a computer device. The schematic diagram of the structure of the computer device can be found in Fig. 9 The computer device may include: a processor 901, an input device 902, an output device 903 and a memory 904. The processor 901, the input device 902, the output device 903 and the memory 904 are connected via a bus. The memory 904 is used to store a computer program, the computer program includes program instructions, and the processor 901 is used to execute the program instructions stored in the memory 904.

[0185] In one embodiment, the processor 901 performs the following operations by running the program instructions in the memory 904:

[0186] Get the source object to be translated;

[0187] Obtaining a translation prompt template, and inserting a source object into the translation prompt template according to instructions of the translation prompt template to obtain translation prompt information;

[0188] According to the translation prompt information, the source object is translated to obtain the translation object of the source object;

[0189] The quality indication information corresponding to the translation object is obtained, and the translation object is adjusted according to the quality indication information corresponding to the translation object to obtain a target translation object of the source object.

[0190] In one implementation, the translation prompt template includes a first area and a second area, the first area includes first indication information; the first indication information is used to indicate the language type of the source object and the language type of the translation object corresponding to the source object, and the second area is used to insert the source object;

[0191] When the processor 901 inserts the source object into the translation prompt template according to the instruction of the translation prompt template and obtains the translation prompt information, the processor 901 may specifically perform the following operations:

[0192] According to the instruction of the first instruction information, the language type of the source object and the language type of the translation object corresponding to the source object are inserted in the first area, and the source object is inserted in the second area to obtain translation prompt information.

[0193] In one implementation, the translation prompt information is used to indicate the quality prediction of the target object obtained by translating the source object; when the processor 901 obtains the quality indication information corresponding to the target object, it may specifically perform the following operations:

[0194] According to the instructions of the translation prompt information, quality prediction is performed on the translation object of the source object to obtain quality indication information corresponding to the translation object;

[0195] The quality indication information includes any one of the following: a first quality level, a second quality level, and a third quality level.

[0196] In one implementation, when the processor 901 obtains the quality indication information corresponding to the translation object, it may specifically perform the following operations:

[0197] Get the quality prediction prompt template;

[0198] According to the instruction of the quality prediction prompt template, the translation object of the source object is inserted into the quality prediction prompt template to obtain quality prediction prompt information;

[0199] According to the quality prediction prompt information, quality prediction is performed on the translation object of the source object to obtain quality indication information corresponding to the translation object.

[0200] In one implementation, when the processor 901 adjusts the translation object according to the quality indication information corresponding to the translation object to obtain the target translation object of the source object, the processor 901 may specifically perform the following operations:

[0201] Get the modification prompt template;

[0202] According to the instruction of the modification prompt template, the source object, the target object and the quality indication information corresponding to the target object are inserted into the modification prompt template to obtain the modification prompt information;

[0203] According to the modification prompt information, the translation object is adjusted to obtain the target translation object of the source object.

[0204] In one implementation, the modification prompt template includes a first modification prompt area, a second modification prompt area, and a third modification prompt area, the first modification prompt area includes first modification indication information; the first modification indication information is used to indicate the language type of the inserted source object and the language type of the translation object corresponding to the source object, the second modification prompt area is used to insert the source object; the third modification prompt area includes second modification indication information, the second modification indication information is used to indicate the quality indication information corresponding to the inserted translation object;

[0205] The processor 901 inserts the source object, the target object and the quality indication information corresponding to the target object into the modification prompt template according to the instruction of the modification prompt template. When the modification prompt information is obtained, the processor 901 may specifically perform the following operations:

[0206] According to the instruction of the first modification instruction information, inserting the language type of the source object and the language type of the translation object corresponding to the source object in the first modification prompt area;

[0207] The source object is inserted into the second modification prompt area, and the translation object and the corresponding quality indication information are inserted into the third modification prompt area according to the instruction of the second modification indication information, so as to obtain the modification prompt information.

[0208] In one implementation, the target translation object of the source object is obtained by translating the source object by calling an object translation model, the object translation model includes an output layer, the output layer includes a first output module and a second output module; the first output module is used to output the translation object corresponding to the source object and the target translation object; the second output module is used to output quality indication information corresponding to the translation object.

[0209] In one implementation, the target translation object of the source object is obtained by translating the source object by calling the object translation model. The processor 901 may further perform the following operations:

[0210] Acquire a sample set; the sample set includes a first sample subset, a second sample subset and a third sample subset, the first sample subset includes a plurality of first sample objects, and supervised translation objects corresponding to each first sample object; the second sample subset includes a plurality of second sample objects, and sample supervision data corresponding to each second sample object, and the sample supervision data includes at least one supervised sample translation object and supervision quality indication information of each supervised sample translation object; the third sample subset includes a plurality of third sample objects, at least one sample translation object corresponding to each third sample object, and sample quality indication information of each sample translation object; each third sample object corresponds to a reference translation object;

[0211] The sample set is used to perform multi-task fine-tuning on the initial translation model to obtain an object translation model; the multi-tasks include: translation task, quality prediction task and translation adjustment task.

[0212] In one implementation, the multi-task includes: a quality prediction task. When the processor 901 uses the sample set to perform multi-task fine-tuning on the initial translation model to obtain the object translation model, the processor 901 may specifically perform the following operations:

[0213] Get the translation hint template;

[0214] Inserting each second sample object into the translation prompt template according to the instruction of the translation prompt template to obtain translation prompt information of each second sample object;

[0215] Calling the initial translation model, translating each second sample object according to the translation prompt information of each second sample object and predicting the quality of the translation object obtained by translating each second sample object, and obtaining the translation object corresponding to each second sample object and the sample quality indication information corresponding to the translation object of each second sample object;

[0216] The initial translation model is fine-tuned according to the translation objects corresponding to each second sample object, the sample quality indication information corresponding to the translation object, and the sample supervision data corresponding to each second sample object to obtain an object translation model.

[0217] In one implementation, the multi-task includes: a translation adjustment task. When the processor 901 uses the sample set to perform multi-task fine-tuning on the initial translation model to obtain the object translation model, the processor 901 may specifically perform the following operations:

[0218] Get the modification prompt template;

[0219] According to the instruction of the modification prompt template, each third sample object, the sample translation object corresponding to each third sample object, and the sample quality indication information corresponding to the sample translation object are inserted into the modification prompt template to obtain the sample modification prompt information of each sample translation object;

[0220] The initial translation model is called to adjust the corresponding sample translation objects based on the sample modification prompt information of each sample translation object to obtain the modified translation objects of each sample translation object;

[0221] According to the modified translation objects of each sample translation object and the reference translation objects corresponding to each sample translation object, the initial translation model is fine-tuned to obtain an object translation model.

[0222] In an embodiment of the present application, a source object to be translated is obtained, and a translation prompt template is obtained, and then the source object is inserted into the translation prompt template according to the instructions of the translation prompt template to obtain translation prompt information; according to the translation prompt information, the source object is translated to obtain a translation object of the source object; the quality indication information corresponding to the translation object is obtained, and according to the quality indication information corresponding to the translation object, the translation object is adjusted to obtain a target translation object of the source object. It can be seen that after translating the source object, the embodiment of the present application further indicates the quality of the translation object through the quality indication information corresponding to the translation object, so as to adjust the translation object according to the quality indication information corresponding to the translation object, which can improve the translation quality when translating the source object and improve the accuracy of the translation of the source object.

[0223] In the embodiments of the present application, the term "unit" refers to a computer program or a part of a computer program that has a predetermined function and works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as processing circuits or memories), or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more units. In addition, each unit can be part of an overall unit that includes the function of the unit.

[0224] In addition, it should be pointed out here that: the embodiment of the present application also provides a computer-readable storage medium, and the computer-readable storage medium stores a computer program, and the computer program includes program instructions. When the processor executes the above program instructions, it can execute the above Figure 3 or Figure 7 The method in the corresponding embodiment, therefore, will not be repeated here. For technical details not disclosed in the computer-readable storage medium embodiment involved in this application, please refer to the description of the method embodiment of this application. As an example, the program instructions can be deployed on a computer device, or executed on multiple computer devices located in one location, or, executed on multiple computer devices distributed in multiple locations and interconnected by a communication network.

[0225] According to one aspect of the present application, a computer program product is provided, the computer program product comprising a computer program, the computer program being stored in a computer-readable storage medium. A processor of a computer device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the computer device can perform the above Figure 3 or Figure 7 The method in the corresponding embodiment will therefore not be described in detail here.

[0226] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0227] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.

Claims

1. A data processing method, It is characterized in that include: Get the source object to be translated; Obtaining a translation prompt template, and inserting the source object into the translation prompt template according to instructions of the translation prompt template to obtain translation prompt information; According to the translation prompt information, the source object is translated to obtain a translation object of the source object; Predicting the quality of the translation object of the source object, obtaining quality indication information corresponding to the translation object, and adjusting the translation object according to the quality indication information corresponding to the translation object to obtain a target translation object of the source object; The target translation object of the source object is obtained by translating the source object by calling the object translation model, and the method further includes: Acquire a sample set; the sample set includes a first sample subset, a second sample subset and a third sample subset, the first sample subset includes a plurality of first sample objects, and supervised translation objects corresponding to each first sample object; the second sample subset includes a plurality of second sample objects, and sample supervision data corresponding to each second sample object, the sample supervision data includes at least one supervised sample translation object and supervision quality indication information of each supervised sample translation object; the third sample subset includes a plurality of third sample objects, at least one sample translation object corresponding to each third sample object, and sample quality indication information of each sample translation object; each third sample object corresponds to a reference translation object; Using the sample set, the initial translation model is fine-tuned using multiple tasks to obtain the object translation model; wherein the multiple tasks include: a translation task, a quality prediction task, and a translation adjustment task; The multi-tasks include: a quality prediction task, wherein the sample set is used to perform multi-task fine-tuning on the initial translation model to obtain the object translation model, including: Get the translation hint template; inserting each second sample object into the translation prompt template according to an instruction of the translation prompt template to obtain translation prompt information of each second sample object; Calling the initial translation model, translating each second sample object according to the translation prompt information of each second sample object and performing quality prediction on the translation object obtained by translating each second sample object, and obtaining the translation object corresponding to each second sample object and the sample quality indication information corresponding to the translation object of each second sample object; According to the translation objects corresponding to the second sample objects and the sample quality indication information corresponding to the translation objects, and the sample supervision data corresponding to the second sample objects, the initial translation model is fine-tuned to obtain an object translation model; The multi-task includes: a translation adjustment task, wherein the sample set is used to perform multi-task fine-tuning processing on the initial translation model to obtain the object translation model, including: Get the modification prompt template; According to the instruction of the modification prompt template, each third sample object, the sample translation object corresponding to each third sample object, and the sample quality indication information corresponding to the sample translation object are inserted into the modification prompt template to obtain the sample modification prompt information of each sample translation object; Calling the initial translation model to adjust the corresponding sample translation objects based on the sample modification prompt information of each sample translation object to obtain the modified translation objects of each sample translation object; The initial translation model is fine-tuned according to the modified translation objects of the sample translation objects and the reference translation objects corresponding to the sample translation objects to obtain the object translation model.

2. The method according to claim 1, It is characterized in that The translation prompt template includes a first area and a second area, the first area includes first indication information; the first indication information is used to indicate the language type of the source object and the language type of the translation object corresponding to the source object, and the second area is used to insert the source object; The step of inserting the source object into the translation prompt template according to the instruction of the translation prompt template to obtain translation prompt information includes: According to the instruction of the first instruction information, the language type of the source object and the language type of the translation object corresponding to the source object are inserted in the first area, and the source object is inserted in the second area to obtain the translation prompt information.

3. The method according to claim 1 or 2, It is characterized in that The translation prompt information is used to indicate the quality prediction of the translation object obtained by translating the source object; The obtaining of quality indication information corresponding to the translation object includes: According to the instruction of the translation prompt information, quality prediction is performed on the translation object of the source object to obtain quality indication information corresponding to the translation object; The quality indication information includes any one of the following: a first quality level, a second quality level, and a third quality level.

4. The method according to claim 1, It is characterized in that The obtaining of quality indication information corresponding to the translation object includes: Get the quality prediction prompt template; According to the instruction of the quality prediction prompt template, inserting the translation object of the source object into the quality prediction prompt template to obtain quality prediction prompt information; According to the quality prediction prompt information, quality prediction is performed on the translation object of the source object to obtain quality indication information corresponding to the translation object.

5. The method according to claim 1, It is characterized in that The adjusting process of the translation object according to the quality indication information corresponding to the translation object to obtain the target translation object of the source object includes: Get the modification prompt template; According to the instruction of the modification prompt template, the source object, the translation object and the quality indication information corresponding to the translation object are inserted into the modification prompt template to obtain modification prompt information; According to the modification prompt information, the translation object is adjusted to obtain the target translation object of the source object.

6. The method according to claim 5, It is characterized in that The modification prompt template includes a first modification prompt area, a second modification prompt area, and a third modification prompt area, wherein the first modification prompt area includes first modification indication information; the first modification indication information is used to indicate the language type of the inserted source object and the language type of the translation object corresponding to the source object, and the second modification prompt area is used to insert the source object; the third modification prompt area includes second modification indication information, and the second modification indication information is used to indicate the insertion of quality indication information corresponding to the translation object; The step of inserting the source object, the translation object, and the quality indication information corresponding to the translation object into the modification prompt template according to the instruction of the modification prompt template to obtain the modification prompt information includes: Inserting the language type of the source object and the language type of the translation object corresponding to the source object in the first modification prompt area according to the instruction of the first modification instruction information; The source object is inserted into the second modification prompt area, and the translation object and the corresponding quality indication information are inserted into the third modification prompt area according to the instruction of the second modification indication information, so as to obtain modification prompt information.

7. The method according to claim 4, It is characterized in that The target translation object of the source object is obtained by translating the source object by calling the object translation model, wherein the object translation model comprises an output layer, and the output layer comprises a first output module and a second output module; The first output module is used to output the translation object corresponding to the source object and the target translation object; the second output module is used to output the quality indication information corresponding to the translation object.

8. A data processing device, It is characterized in that include: An acquisition unit, used for acquiring a source object to be translated; The acquisition unit is further used to acquire a translation prompt template; a processing unit, configured to insert the source object into the translation prompt template according to an instruction of the translation prompt template to obtain translation prompt information; The processing unit is further used to translate the source object according to the translation prompt information to obtain a translation object of the source object; The processing unit is further configured to perform quality prediction on the translation object of the source object, obtain quality indication information corresponding to the translation object, and adjust the translation object according to the quality indication information corresponding to the translation object to obtain a target translation object of the source object; The target translation object of the source object is obtained by translating the source object by calling the object translation model. The processing unit is further used for: Acquire a sample set; the sample set includes a first sample subset, a second sample subset, and a third sample subset, the first sample subset includes a plurality of first sample objects, and supervised translation objects corresponding to each first sample object; the second sample subset includes a plurality of second sample objects, and sample supervision data corresponding to each second sample object, the sample supervision data includes at least one supervised sample translation object and supervision quality indication information of each supervised sample translation object; The third sample subset includes a plurality of third sample objects, at least one sample translation object corresponding to each third sample object, and sample quality indication information of each sample translation object; Each of the third sample objects corresponds to a reference translation object; Using the sample set, the initial translation model is fine-tuned using multiple tasks to obtain the object translation model; wherein the multiple tasks include: a translation task, a quality prediction task, and a translation adjustment task; The multiple tasks include: a quality prediction task; the processing unit is further used for: Get the translation hint template; inserting each second sample object into the translation prompt template according to an instruction of the translation prompt template to obtain translation prompt information of each second sample object; Calling the initial translation model, translating each second sample object according to the translation prompt information of each second sample object and performing quality prediction on the translation object obtained by translating each second sample object, and obtaining the translation object corresponding to each second sample object and the sample quality indication information corresponding to the translation object of each second sample object; According to the translation objects corresponding to the second sample objects and the sample quality indication information corresponding to the translation objects, and the sample supervision data corresponding to the second sample objects, the initial translation model is fine-tuned to obtain an object translation model; The multiple tasks include: translation adjustment tasks; the processing unit is also used for: Get the modification prompt template; According to the instruction of the modification prompt template, each third sample object, the sample translation object corresponding to each third sample object, and the sample quality indication information corresponding to the sample translation object are inserted into the modification prompt template to obtain the sample modification prompt information of each sample translation object; Calling the initial translation model to adjust the corresponding sample translation objects based on the sample modification prompt information of each sample translation object to obtain the modified translation objects of each sample translation object; The initial translation model is fine-tuned according to the modified translation objects of the sample translation objects and the reference translation objects corresponding to the sample translation objects to obtain the object translation model.

9. A computer device, It is characterized in that include: a processor suitable for executing a computer program; A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by the processor, the data processing method according to any one of claims 1 to 7 is executed.

10. A computer-readable storage medium, It is characterized in that The computer storage medium stores a computer program, and when the computer program is executed by a processor, the data processing method according to any one of claims 1 to 7 is executed.

11. A computer program product, It is characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the data processing method according to any one of claims 1 to 7 is implemented.