Error correction model training method for multi-task scenarios Electronic device and storage medium

Through the joint training method of encoder and decoder, the shortcomings of single scene recognition model in delay and error correction type are solved, the error correction capability of multi-task scenes is realized, the accuracy and delay requirements of different task scenes are adapted, and the reduction of Reduce maintenance costs and improve user experience.

CN115376514BActive Publication Date: 2024-09-10AISPEECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211034991.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-26
Publication Date
2024-09-10
Estimated Expiration
2042-08-26

AI Technical Summary

Technical Problem

Existing single-scene recognition error correction models based on encoders and decoders have shortcomings in latency and error correction types, and do not support error correction for multi-scene recognition tasks.

Method used

The joint training method of the encoder and the decoder is adopted. By receiving the training corpus and the benchmark correction corpus, the corrected text corpus of the encoder and the decoder are respectively output, and based on the joint optimization of the loss function, a detachable error correction model is obtained to adapt to Error correction requirements in multi-task scenarios.

Benefits of technology

It achieves the requirements of ensuring error correction accuracy and latency in multi-task scenarios, reduces the maintenance cost of the error correction model, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115376514B
    Figure CN115376514B
Patent Text Reader

Abstract

The embodiment of the present invention provides an error correction model training method for multi-task scenarios. The method includes: receiving a training corpus and a benchmark correction corpus of the training corpus; inputting the training corpus into an error correction model including an encoder and a decoder, the encoder using the training corpus and the benchmark corpus to determine a first correction corpus with a first prediction label, and outputting a first correction text corpus of the first correction corpus; inputting the first correction text corpus into the decoder, and outputting a second correction text corpus by determining a second correction corpus with a second prediction label; jointly optimizing the error correction model based on the first and second losses of the first correction text corpus, the second correction text corpus and the benchmark correction corpus, respectively, to obtain an error correction model for encoder error correction alone and encoder-decoder joint error correction. The error correction model of the embodiment of the present invention can adapt to multiple scenarios for targeted error correction, and can ensure the accuracy and delay requirements of different task scenarios.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent speech, and in particular to an error correction model training method, electronic device and storage medium for multi-task scenarios. Background Art

[0002] In order to ensure the accuracy of voice interaction, error correction detection is usually performed after obtaining the recognition corpus to correct the erroneous corpus. Usually, a single-scene recognition error correction model is used, which is essentially a deep learning network that performs all or part of the upstream recognition text operations such as adding, deleting, and replacing to modify errors in the recognition text and improve the accuracy of the recognition results.

[0003] In the process of implementing the present invention, the inventors found that there are at least the following problems in the related art:

[0004] The single-scene recognition error correction model based on the encoder and decoder recursively outputs each character of the error correction result, supports changes in the length of the input sequence, but has a higher latency. The single-scene recognition error correction model based on the encoder has a short latency but supports fewer error correction types. Neither supports error correction for multi-scene recognition tasks.

[0005] The single-scene recognition error correction model based on the encoder predicts the error correction result of each position of the input sequence at one time. It generally does not support changes in the length of the input sequence, but the error correction effect is inferior to the single-scene recognition error correction model based on the encoder and decoder. Summary of the invention

[0006] In order to at least solve the problem in the prior art that the single scene recognition model based on the encoder and decoder has a long delay, the single scene recognition model based on the encoder has few error correction types, and neither supports error correction for multi-scene recognition tasks. In a first aspect, an embodiment of the present invention provides an error correction model training method for a multi-task scenario, comprising:

[0007] Receiving training corpus and reference correction corpus of the training corpus;

[0008] Inputting the training corpus into an error correction model including an encoder and a decoder, wherein the encoder uses the training corpus and the reference corpus to determine a first correction corpus with a first prediction label, and outputs a first correction text corpus of the first correction corpus;

[0009] Inputting the first corrected text corpus into the decoder, and outputting a second corrected text corpus by determining a second corrected text corpus with a second predicted label;

[0010] The error correction model is jointly optimized based on the first and second losses of the first corrected text corpus, the second corrected text corpus and the benchmark corrected corpus, respectively, to obtain an error correction model of encoder-only error correction and encoder-decoder joint error correction, which is used to correct corpora in different task scenarios.

[0011] In a second aspect, an electronic device is provided, comprising: at least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform the steps of the error correction model training method for a multi-task scenario of any embodiment of the present invention.

[0012] In a third aspect, an embodiment of the present invention provides a storage medium having a computer program stored thereon, characterized in that when the program is executed by a processor, the steps of the error correction model training method for a multi-task scenario of any embodiment of the present invention are implemented.

[0013] The beneficial effects of the embodiments of the present invention are as follows: the encoder and decoder predict error correction separately, and the jointly trained detachable error correction model can adapt to multiple scenarios for targeted error correction, and can ensure the accuracy and delay requirements of different task scenarios. At the same time, a set of error correction models can meet the error correction of multiple task scenarios, reducing the maintenance cost of the error correction model. In the decoding process, different decoding strategies are used according to different recognition task scenarios to improve the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0015] Figure 1 It is a flowchart of an error correction model training method for a multi-task scenario provided by an embodiment of the present invention;

[0016] Figure 2 It is a model architecture diagram of an error correction model training method for a multi-task scenario provided by an embodiment of the present invention;

[0017] Figure 3 A schematic structural diagram of an embodiment of an electronic device for error correction model training in a multi-task scenario provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0018] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0019] like Figure 1 FIG. 1 is a flowchart of a method for training an error correction model for a multi-task scenario provided by an embodiment of the present invention, comprising the following steps:

[0020] S11: receiving training corpus and reference correction corpus of the training corpus;

[0021] S12: inputting the training corpus into an error correction model including an encoder and a decoder, wherein the encoder uses the training corpus and the reference corpus to determine a first correction corpus with a first prediction label, and outputs a first correction text corpus of the first correction corpus;

[0022] S13: inputting the first corrected text corpus into the decoder, and outputting a second corrected text corpus by determining a second corrected text corpus with a second predicted label;

[0023] S14: Jointly optimize the error correction model based on the first and second losses of the first corrected text corpus, the second corrected text corpus, and the benchmark corrected corpus, to obtain an error correction model of encoder-only error correction and encoder-decoder joint error correction, which is used to correct corpora in different task scenarios.

[0024] In this embodiment, a separable error correction model architecture based on an encoder and a decoder is proposed. Under the trained separable model architecture, adaptive precision and delay correction can be performed for task scenarios. At the same time, using a set of correction models for multi-task scenarios has lower error correction maintenance costs.

[0025] In step S11, in order to train the error correction model, the training data to be corrected and the reference correction corpus corresponding to the training data are prepared. Figure 2 The encoder-decoder architecture of the correction model is shown. "Play Beijing Music" is the training data corpus text, and "Play Background Music" is the benchmark corrected corpus text. Among them, the training corpus X = {x1, ..., xm}, the benchmark corrected corpus text Y = {y1, ..., yn}, and the intermediate correction process corpus Z = {z1, ..., zm}.

[0026] For step S12, the training corpus is input into an error correction model including an encoder and a decoder. The encoder calculates an intermediate corrected corpus Z using the training corpus X and the corrected corpus Y. As a specific implementation, the first corrected corpus with the first prediction label is determined using the word error rate of the training corpus and the reference corpus, and the first corrected text corpus of the first corrected corpus is output. In this embodiment, Z can be calculated from X and Y according to the WER (Word Error Rate) algorithm. Specifically, the corpus Z in the error correction process is deduced from the word error rates where "播" corresponds to "播放", "北京" corresponds to "背景", and "音乐乐" corresponds to "音乐". The length of Z is the same as that of X.

[0027] Specifically, Step1:

[0028] X = {播, 北, 京, 音, 乐, 乐}; Z = {[INS], 背, 景, 音, 乐, [DEL]}

[0029] Step2:

[0030] X = {播, [INS], 背, 景, 音乐}; Z = {播, 放, 背, 景, 音, 乐};

[0031] Similarly, Z for each step Step N can be directly obtained by the WER algorithm.

[0032] As an implementation, the first prediction label includes: insertion label, deletion label, replacement label. In this embodiment, the encoder is the main part of error correction, and its prediction label types are numerous, including the most common insertion label, deletion label, and replacement label. For the insertion operation, the current prediction label is "[INS]"; for the deletion operation, the current prediction label is "[DEL]"; for the replacement operation or correct character, the current prediction label is the corresponding character.

[0033] X of Step N is obtained from X of Step N - 1 and Z, and the rules are as follows:

[0034] At the position where the prediction label of Z in Step N - 1 is "[INS]", directly insert "[INS]" uniformly to the right or left at the corresponding position of X in Step N - 1; at the position where the prediction label of Z in Step N - 1 is "[DEL]", directly delete the character at the corresponding position of X in Step N - 1; in other cases, directly use the prediction label of Z in Step N - 1 to replace the character at the corresponding position of X in Step N - 1, thus obtaining X of Step N. For example, in the exemplified step2, at this time X = {播, [INS], 背, 景, 音乐}, and finally, the label is processed to obtain Z = {播, 放, 背, 景, 音, 乐}.

[0035] For step S13, in the decoder part, the second prediction label includes a character filling label. It can be seen that the character filling for the encoder and the decoder is not the same. This is because the basic prediction labels that are essential for the correction process are prepared in the encoder, taking into account that the trained encoder can be used alone. Considering that the encoder and decoder can also be corrected jointly, at this time, the prediction label in the decoder is an additional special prediction label based on the encoder. Specifically, a special prediction label character "[BOS]" is introduced to fill the first character of the decoder input sequence Y_input, and the decoder output sequence Y_output is the text sequence Y after complete error correction.

[0036] Combined with examples, the specific explanation is as follows:

[0037] Y_input = {[BOS], play, background, sound};

[0038] Y_output=Y={play, background, music}.

[0039] For step S14, during the training process, the above-mentioned method of constructing data is used to calculate the weighted sum of two loss functions at both ends of the encoder and the decoder. Specifically, the first loss of the first corrected text corpus and the benchmark corrected corpus is used, and the second loss of the second corrected text corpus and the benchmark corrected corpus is used to jointly optimize the entire model to obtain an error correction model of the encoder alone and the encoder-decoder joint error correction, which is used to correct the corpus of different task scenarios.

[0040] As an implementation mode, in this embodiment, the corpus for correcting different task scenarios includes:

[0041] Dynamically identify the task scenarios of input corpus based on error correction accuracy and latency requirements;

[0042] Through the decoding strategy corresponding to the task scenario, the encoder of the error correction model or the combined encoder-decoder is called to correct the input corpus to obtain the corrected text corpus under the task scenario.

[0043] In this embodiment, taking into account the different task scenarios of speech recognition, the required accuracy and delay are different. For example, for task scenarios such as consultation dialogues, it is necessary to provide feedback to users in a timely manner. At this time, the requirement for delay is relatively high, ensuring low delay, and also ensuring relatively accurate error correction effects. For another example, task scenarios such as medical guidance require accurate recognition of the text entered by the user. At this time, the error correction accuracy requirement is high, but the delay requirement is relatively not so high, and the user can accept a certain delayed reply. For another example, in task scenarios such as voice skills, the corresponding instruction words are pre-set. At this time, the error correction accuracy requirement does not have to be particularly high, and it can be judged as similar to the pre-set instruction words. It is required to be able to provide feedback to the user in a timely manner, and the delay requirement is relatively high.

[0044] In general, the error correction accuracy priority, delay requirement priority, and error correction accuracy and delay requirement priority are considered in the dialogue scene. For different dialogue scenes, the error correction model of this method can adapt different decoding strategies.

[0045] As an implementation method, when the task scenario prioritizes error correction accuracy:

[0046] The error correction model calls the encoder and decoder to correct the input corpus to obtain a corrected text corpus with error correction accuracy priority.

[0047] In this implementation, that is, the requirement of the above example to accurately recognize the text input by the user, the error correction accuracy requirement is high, the delay requirement is relatively low, and the user can accept a certain delay in reply. For the recognition task scenario with high accuracy and general delay requirements, the entire architecture of the multi-scenario recognition and error correction model (that is, the encoder and decoder are used together) is used for error correction, and the decoding results are output serially.

[0048] As an implementation method, when the task scenario prioritizes delay requirements:

[0049] The error correction model calls the encoder separately to correct the input corpus, and forcibly replaces the text characters predicted as insertion tags with the corresponding positions of the input corpus, so as to obtain the corrected text corpus with delay priority.

[0050] In this embodiment, the task scenario of voice skills is also the above-mentioned example, and the corresponding instruction words are pre-set. At this time, the error correction accuracy requirement does not need to be particularly high, and the recognition task scenario with low latency requirement is not particularly high. The encoder of the multi-scenario recognition and error correction model is disassembled separately for error correction, and the error correction result of each position of the input corpus is predicted in parallel. The position predicted as "[INS]" is forcibly replaced with the character of the corresponding position in the input sequence to ensure low latency requirements.

[0051] As an implementation method, when the task scenario requires both error correction accuracy and delay to be prioritized:

[0052] The error correction model calls the encoder separately to iteratively decode and correct the input corpus, iterating until the first predicted label does not include the insertion label and the deletion label, so as to obtain the corrected text corpus with the error correction accuracy and delay requirements being prioritized.

[0053] In this embodiment, the task scenario of the consultation dialogue type mentioned above needs to provide timely feedback to the user. At this time, the delay requirement is high, ensuring low delay and relatively accurate error correction effect. For the recognition task scenario with high precision and low delay requirements, the encoder of the multi-scenario recognition and error correction model is disassembled separately and combined with multiple iterative decoding for error correction. The input sequence construction method of each iteration is equivalent to the construction scheme of the X sequence in the construction data. The decoding ends when the predicted character does not contain the "[INS]" and "[DEL]" labels.

[0054] If the user is involved in different task scenarios in multiple rounds of conversations, the error correction model will also adaptively adjust the decoding strategy to improve the user experience.

[0055] It can be seen from this implementation that the separate prediction and error correction of the encoder and decoder and the jointly trained detachable error correction model can adapt to multiple scenarios for targeted error correction, and can ensure the accuracy and delay requirements of different task scenarios. At the same time, a set of error correction models can meet the error correction of multiple task scenarios and reduce the maintenance cost of the error correction model. In the decoding process, different decoding strategies are used according to different recognition task scenarios to improve the user experience.

[0056] The embodiment of the present invention further provides a non-volatile computer storage medium, the computer storage medium stores computer executable instructions, and the computer executable instructions can execute the error correction model training method for multi-task scenarios in any of the above method embodiments;

[0057] As an implementation mode, the non-volatile computer storage medium of the present invention stores computer executable instructions, and the computer executable instructions are configured as follows:

[0058] Receiving training corpus and reference correction corpus of the training corpus;

[0059] Inputting the training corpus into an error correction model including an encoder and a decoder, wherein the encoder uses the training corpus and the reference corpus to determine a first correction corpus with a first prediction label, and outputs a first correction text corpus of the first correction corpus;

[0060] Inputting the first corrected text corpus into the decoder, and outputting a second corrected text corpus by determining a second corrected text corpus with a second predicted label;

[0061] The error correction model is jointly optimized based on the first and second losses of the first corrected text corpus, the second corrected text corpus and the benchmark corrected corpus, respectively, to obtain an error correction model of encoder-only error correction and encoder-decoder joint error correction, which is used to correct corpora in different task scenarios.

[0062] As a non-volatile computer-readable storage medium, it can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions / modules corresponding to the method in the embodiment of the present invention. One or more program instructions are stored in the non-volatile computer-readable storage medium, and when executed by the processor, the error correction model training method for multi-task scenarios in any of the above method embodiments is executed.

[0063] Figure 3 is a schematic diagram of the hardware structure of an electronic device for an error correction model training method for a multi-task scenario provided by another embodiment of the present application, such as Figure 3 As shown, the device includes:

[0064] One or more processors 310 and memory 320, Figure 3 A processor 310 is taken as an example. The device for the error correction model training method for multi-task scenarios may also include: an input device 330 and an output device 340.

[0065] The processor 310, the memory 320, the input device 330 and the output device 340 may be connected via a bus or other means. Figure 3 The example of connecting through bus is taken in the following.

[0066] The memory 320, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions / modules corresponding to the error correction model training method for multi-task scenarios in the embodiment of the present application. The processor 310 executes various functional applications and data processing of the server by running the non-volatile software programs, instructions and modules stored in the memory 320, that is, the error correction model training method for multi-task scenarios in the above method embodiment is implemented.

[0067] The memory 320 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data, etc. In addition, the memory 320 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 320 may optionally include a memory remotely arranged relative to the processor 310, and these remote memories may be connected to the mobile device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0068] The input device 330 can receive input digital or character information. The output device 340 can include a display device such as a display screen.

[0069] The one or more modules are stored in the memory 320, and when executed by the one or more processors 310, the error correction model training method for a multi-task scenario in any of the above method embodiments is executed.

[0070] The above-mentioned product can execute the method provided in the embodiment of the present application, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not fully described in this embodiment, please refer to the method provided in the embodiment of the present application.

[0071] The non-volatile computer-readable storage medium may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the device, etc. In addition, the non-volatile computer-readable storage medium may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the non-volatile computer-readable storage medium may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0072] An embodiment of the present invention also provides an electronic device, comprising: at least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform the steps of the error correction model training method for a multi-task scenario of any embodiment of the present invention.

[0073] The electronic device of the embodiment of the present application exists in various forms, including but not limited to:

[0074] (1) Mobile communication equipment: This type of equipment is characterized by having mobile communication functions and its main purpose is to provide voice and data communications. This type of terminal includes: smart phones, multimedia phones, functional phones, and low-end phones.

[0075] (2) Ultra-mobile personal computer devices: These devices fall into the category of personal computers, have computing and processing capabilities, and generally also have mobile Internet access features. These terminals include: PDAs, MIDs, and UMPC devices, such as tablet computers.

[0076] (3) Portable entertainment devices: These devices can display and play multimedia content. They include audio and video players, handheld game consoles, e-books, smart toys, and portable car navigation devices.

[0077] (4) Other electronic devices with data processing functions.

[0078] In this article, relational terms such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include" and "comprise" include not only those elements, but also other elements not explicitly listed, or also include elements inherent to such processes, methods, articles or equipment. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the existence of other identical elements in the process, method, article or equipment that includes the elements.

[0079] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0080] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0081] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for training an error correction model for a multi-task scenario, comprising: Receiving training corpus and reference correction corpus of the training corpus; The training corpus is input into an error correction model including an encoder and a decoder, wherein the encoder uses the training corpus and the reference correction corpus to determine a first correction corpus with a first prediction label, and outputs a first correction text corpus of the first correction corpus; Inputting the first corrected text corpus into the decoder, and outputting a second corrected text corpus by determining a second corrected text corpus with a second predicted label; The error correction model is jointly optimized based on the first and second losses of the first corrected text corpus, the second corrected text corpus and the benchmark corrected corpus, respectively, to obtain an error correction model of encoder-only error correction and encoder-decoder joint error correction, which is used to correct corpora in different task scenarios; The corpus for correcting different task scenarios includes: Dynamically identify the task scenarios of input corpus based on error correction accuracy and latency requirements; Through the decoding strategy corresponding to the task scenario, the encoder of the error correction model or the combined encoder-decoder is called to correct the input corpus to obtain the corrected text corpus under the task scenario.

2. The method according to claim 1, wherein: The encoder determines a first corrected corpus with a first predicted label by using the training corpus and the reference corrected corpus, and outputting a first corrected text corpus of the first corrected corpus includes: A first corrected corpus with a first predicted label is determined by using the word error rates of the training corpus and the benchmark corrected corpus, and a first corrected text corpus of the first corrected corpus is output.

3. The method according to claim 1, wherein: The first predicted tag includes: an insert tag, a delete tag, and a replace tag, and the second predicted tag includes a character filling tag.

4. The method according to claim 1, wherein: The task scenarios include: error correction accuracy priority, delay requirement priority, and both error correction accuracy and delay requirements priority.

5. The method according to claim 4, wherein: When the task scenario prioritizes error correction accuracy: The error correction model calls the encoder and decoder to correct the input corpus to obtain a corrected text corpus with error correction accuracy priority.

6. The method according to claim 4, wherein: When the task scenario prioritizes delay requirements: The error correction model calls the encoder separately to correct the input corpus, and forcibly replaces the text characters predicted as insertion tags with the corresponding positions of the input corpus, so as to obtain the corrected text corpus with delay priority.

7. The method according to claim 4, wherein: When the task scenario requires both error correction accuracy and delay to take precedence: The error correction model calls the encoder separately to iteratively decode and correct the input corpus, iterating until the first predicted label does not include the insertion label and the deletion label, so as to obtain the corrected text corpus with the error correction accuracy and delay requirements being prioritized.

8. An electronic device, comprising: At least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the steps of the method described in any one of claims 1 to 7.

9. A storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method described in any one of claims 1 to 7 are implemented.