A sentence generation model training method, sentence generation method, device, equipment and medium

By calculating the cross-entropy loss value of the high and low probability matrices, the non-autoregressive model parameters are updated, and the cross-entropy loss function is improved by combining the autoregressive model, which solves the problem of unsmooth non-autoregressive model generation results and repeated words, and improves the quality and quality of sentence generation. coherence.

CN114580378BActive Publication Date: 2024-10-18GUANGZHOU SHIYUAN ELECTRONICS CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202011388267.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-01
Publication Date
2024-10-18
Estimated Expiration
2040-12-01

AI Technical Summary

Technical Problem

In existing non-autoregressive sentence generation models, in machine translation and sentence-making tasks, the cross-entropy loss function makes it difficult to align the generated results with the reference sentences, resulting in loss values ​​that do not decrease, and the generated text is not smooth and has word duplication problems.

Method used

By calculating the cross-entropy loss values ​​corresponding to the high-probability matrix and the low-probability matrix as the first and second loss values ​​respectively, the model parameters are updated to speed up the decline rate of the loss value, avoid repeated generation of words, and introduce an autoregressive model to improve the cross-entropy The loss function captures the sequence dependencies of generated sentences.

Benefits of technology

It improves the smoothness of the sentences generated by the model, avoids the problem of repeated word generation, and introduces sequence information to make the generated sentences more coherent.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114580378B_ABST
    Figure CN114580378B_ABST
Patent Text Reader

Abstract

The present invention discloses a sentence generation model training method, a sentence generation method, an apparatus, a device and a medium. The sentence generation model training method provided by the embodiment of the present invention calculates the sum of the cross entropy losses of K sentences corresponding to the K column values ​​in the high probability matrix and the reference sentence as the first loss value, calculates the cross entropy loss of any one of the multiple sentences corresponding to the low probability matrix and the reference sentence as the second loss value, and updates the parameters of the first sentence generation model based on the sum of the first loss value and the second loss value of the multiple sentence samples, which can accelerate the rate of decrease of the loss value, thereby making the sentences generated by the model more fluent when applied, and avoiding the problem of repeated word generation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of natural language processing technology, and in particular to a sentence generation model training method, sentence generation method, device, equipment and medium. Background Art

[0002] Natural Language Processing (NLP) is a very important branch of artificial intelligence research, which studies various theories and methods that can achieve effective communication between humans and computers using natural language. Sentence generation, or natural language generation, is a very important research direction in the field of natural language processing. It can use various types of information, such as text, structured information, images, etc., to automatically generate fluent, coherent, and semantically clear high-quality natural language text.

[0003] Common sentence generation tasks include machine translation and machine sentence generation tasks. Machine translation is a translation method that uses a pre-trained model to translate a sentence in one natural language into another natural language. The sentence generation task is a task that uses a pre-trained model to generate a sequence-level sentence based on a few given words.

[0004] Currently, the model commonly used for machine translation and machine sentence generation tasks is the non-autoregressive (NAR) model. The non-autoregressive model independently models the generation of target words, so it can decode the entire sentence in parallel, significantly improving the processing speed of the model.

[0005] Non-autoregressive models are usually trained using cross-entropy loss. The cross-entropy loss function evaluates the generation results at each position independently, requiring the probability of the word at the corresponding position in the sentence generated by the model to be as large as possible. However, the cross-entropy loss function has certain limitations, that is, the cross-entropy loss is accurate only when the generation results of the model are strictly aligned with the reference sentence. In translation or sentence-making tasks, it is difficult for the generated results to be aligned with the reference sentence. As a result, the loss value in the model training process will not be reduced. The most intuitive result is that the generated text is often not very fluent and there is a problem of repeated word generation. Summary of the invention

[0006] The present invention provides a sentence generation model training method, sentence generation method, device, equipment and medium, which can accelerate the rate of decrease of loss value, thereby making the sentences generated by the model more fluent when applied and avoiding the problem of repeated word generation.

[0007] In a first aspect, an embodiment of the present invention provides a method for training a sentence generation model, comprising:

[0008] Obtaining a training set, wherein the training set includes a plurality of sentence samples, and the sentence samples are annotated with reference sentences;

[0009] Inputting the sentence sample into a first sentence generation model to be trained for processing to obtain a first probability distribution of each symbol in the sentence to be generated in the vocabulary, wherein the sentence generation model is a non-autoregressive model;

[0010] Calculate the sum of cross entropy losses between K sentences corresponding to K columns of values ​​in a high probability matrix and the reference sentence as a first loss value, wherein the high probability matrix is ​​a matrix formed by first K probability values ​​with the largest probability values ​​in each of the first probability distributions;

[0011] Calculate the cross entropy loss between any one of the multiple sentences corresponding to the low probability matrix and the reference sentence as the second loss value, wherein the low probability matrix is ​​a matrix formed by probability values ​​other than the first K with the largest probability values ​​in each of the first probability distributions;

[0012] Update the parameters of the first sentence generation model based on the sum of the first loss value and the second loss value of multiple sentence samples.

[0013] In a second aspect, an embodiment of the present invention further provides a statement generation method, comprising:

[0014] Get the pending statements;

[0015] Inputting the sentence to be processed into the trained first sentence generation model for processing, and obtaining a sixth probability distribution of each symbol in the sentence to be generated in the vocabulary;

[0016] The character corresponding to each symbol is determined based on the sixth probability distribution of each symbol in the vocabulary.

[0017] In a third aspect, an embodiment of the present invention further provides a training device for a sentence generation model, comprising:

[0018] A training set acquisition module, used to acquire a training set, wherein the training set includes a plurality of sentence samples, and the sentence samples are annotated with reference sentences;

[0019] A first probability distribution determination module, used for inputting the sentence sample into a first sentence generation model to be trained for processing, and obtaining a first probability distribution of each symbol in the sentence to be generated in the vocabulary, wherein the sentence generation model is a non-autoregressive model;

[0020] A first loss value calculation module, used to calculate the sum of cross entropy losses of K sentences corresponding to K column values ​​in a high probability matrix and the reference sentence as a first loss value, wherein the high probability matrix is ​​a matrix formed by the first K probability values ​​with the largest probability values ​​in each of the first probability distributions;

[0021] A second loss value calculation module, used to calculate the cross entropy loss between any one of the multiple sentences corresponding to the low probability matrix and the reference sentence as a second loss value, wherein the low probability matrix is ​​a matrix formed by probability values ​​other than the first K with the largest probability values ​​in each of the first probability distributions;

[0022] A parameter updating module is used to update the parameters of the first sentence generation model based on the sum of the first loss value and the second loss value of multiple sentence samples.

[0023] In a fourth aspect, an embodiment of the present invention further provides a sentence generation device, comprising:

[0024] A module for obtaining statements to be processed, used for obtaining statements to be processed;

[0025] A second probability distribution determination module is used to input the sentence to be processed into the trained first sentence generation model for processing, and obtain a sixth probability distribution of each symbol in the sentence to be generated in the vocabulary;

[0026] The character determination module is used to determine the character corresponding to each symbol based on the sixth probability distribution of each symbol in the vocabulary.

[0027] In a fifth aspect, an embodiment of the present invention further provides a computer device, including:

[0028] one or more processors;

[0029] A storage device for storing one or more programs;

[0030] When the one or more programs are executed by the one or more processors, the one or more processors implement the training method of the sentence generation model provided in the first aspect of the present invention, or implement the sentence generation method provided in the second aspect of the present invention.

[0031] In a sixth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the training method for a sentence generation model provided in the first aspect of the present invention, or implements the sentence generation method provided in the second aspect of the present invention.

[0032] The training method of the sentence generation model provided by the embodiment of the present invention inputs the sentence sample into the first sentence generation model to be trained for processing, obtains the first probability distribution of each symbol in the sentence to be generated in the vocabulary, and the first sentence generation model is a non-autoregressive model. Then, the sum of the cross entropy losses of K sentences corresponding to the K column values ​​in the high probability matrix and the reference sentence is calculated as the first loss value. The high probability matrix is ​​a matrix formed by the first K probability values ​​with the largest probability values ​​in each first probability distribution. The cross entropy loss of any sentence in the multiple sentences corresponding to the low probability matrix and the reference sentence is calculated as the second loss value. The low probability matrix is ​​a matrix formed by probability values ​​other than the first K probability values ​​with the largest probability values ​​in each first probability distribution. The parameters of the first sentence generation model are updated based on the sum of the first loss values ​​and the second loss values ​​of the multiple sentence samples, which can accelerate the rate of decrease of the loss value, thereby making the sentences generated by the model more fluent when applied, and avoiding the problem of repeated word generation. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 A flowchart of a method for training a sentence generation model provided in Embodiment 1 of the present invention;

[0034] Figure 2 is a flow chart of a method for training a sentence generation model provided in Embodiment 2 of the present invention;

[0035] Figure 3 is a flow chart of a sentence generation method provided by Embodiment 3 of the present invention;

[0036] Figure 4 A schematic diagram of the structure of a training device for a sentence generation model provided in a fourth embodiment of the present invention;

[0037] Figure 5 A schematic diagram of the structure of a sentence generating device provided in Embodiment 5 of the present invention;

[0038] Figure 6 A schematic diagram of the structure of a computer device provided in Embodiment 6 of the present invention. DETAILED DESCRIPTION

[0039] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0040] Embodiment 1

[0041] Figure 1This is a flowchart of a method for training a sentence generation model provided in the first embodiment of the present invention. This embodiment can be applied to training a non-autoregressive model, which can be used for machine translation or sentence making tasks. The method can be executed by a training device for a sentence generation model provided in the embodiment of the present invention. The device can be implemented in software and / or hardware and integrated in a computer device provided in the embodiment of the present invention. Figure 1 As shown, the method specifically comprises the following steps:

[0042] S101, obtain a training set, the training set includes a plurality of sentence samples, and the sentence samples are annotated with reference sentences. The sentence generation model to be trained in the embodiment of the present invention can be used for machine translation or sentence making tasks. When the model is used for machine translation tasks, the sentence samples are coherent sentences of the first natural language with sequence information, and the reference sentences are sentences of the second natural language. For example, taking the first natural language as Chinese and the second natural language as English as an example, the sentence samples can be "I love natural language processing", and the reference sentences can be "I like Natural Language Processing". When the model is used for sentence making tasks, the sentence samples include a plurality of discrete words, and the reference sentences are coherent sentences with sequence information generated from a plurality of discrete words. For example, the sentence samples include "love", "nature", "processing", and the reference sentences can be "I love natural language processing".

[0043] S102: Input a sentence sample into a first sentence generation model to be trained for processing, and obtain a first probability distribution of each symbol in the sentence to be generated in the vocabulary.

[0044] The sentence sample is input into the first sentence generation model to be trained for processing, and the first probability distribution of each symbol (or token) in the sentence to be generated of the sample sentence in the vocabulary is obtained. The first sentence generation model is a non-autoregressive model, and can be, for example, a Levenshtein Transformer model.

[0045] Symbols can be understood as placeholders in the sample sentences to be generated. Each word or punctuation occupies one symbol, and the total number of words and punctuation marks in the sentence to be generated is the number of symbols. The first sentence generation model has a corresponding vocabulary, which includes multiple characters, and the characters may include words and punctuation marks. The words and the number of words in the vocabulary can be set according to the field to which the sentence generation task belongs.

[0046] The number of characters in the vocabulary is N, and the sentence to be generated has M symbols. The first probability distribution of each symbol is a 1×N vector, and the elements in the vector correspond to the N characters in the vocabulary, and the value of the element is the probability that the symbol is the corresponding character. The first probability distribution of M symbols forms an M×N probability matrix. Exemplarily, in an embodiment of the present invention, there are 1000 characters in the vocabulary, and the sentence to be generated has 10 symbols. The first probability distribution of each symbol is a 1×1000 vector, and the first probability distribution of 10 symbols forms a 10×1000 probability matrix.

[0047] S103. Calculate the sum of the cross entropy losses between the K sentences corresponding to the K column values ​​in the high probability matrix and the reference sentence as the first loss value.

[0048] In an embodiment of the present invention, the high probability matrix is ​​a matrix formed by the first K probability values ​​with the largest probability values ​​in each first probability distribution. Exemplarily, the 1000 elements in each first probability distribution can be arranged in descending order, and the first K probability values ​​in the descending order are taken. Exemplarily, in an embodiment of the present invention, K=5, and then the first K probability values ​​with the largest probability values ​​in each first probability distribution form a 10×5 matrix, which is called a high probability matrix. Each column of the high probability matrix corresponds to a sentence to be generated, that is, the high probability matrix corresponds to K sentences to be generated.

[0049] Calculate the cross entropy loss between the K sentences corresponding to the K column values ​​in the high probability matrix and the reference sentence, and sum the cross entropy losses of the K sentences to obtain the first loss value.

[0050] Specifically, the cross entropy loss function is used to calculate the cross entropy loss between the K sentences corresponding to the K column values ​​in the high probability matrix and the reference sentence. The cross entropy loss function is often used in classification problems. The cross entropy is used to describe the distance between two distributions.

[0051] S104. Calculate the cross entropy loss between any one of the multiple sentences corresponding to the low probability matrix and the reference sentence as the second loss value.

[0052] In the embodiment of the present invention, the low probability matrix is ​​a matrix formed by probability values ​​other than the top K probability values ​​with the largest probability values ​​in each first probability distribution.

[0053] Exemplarily, as described above, the 1000 elements in each first probability distribution can be arranged in descending order, and the first K probability values ​​in the descending order are taken. Exemplarily, in the embodiment of the present invention, K=5, and then the first K probability values ​​with the largest probability values ​​of each first probability distribution form a 10×5 matrix, which is called a high probability matrix. The low probability matrix is ​​a 10×995 matrix, and each column of the low probability matrix corresponds to a sentence to be generated, that is, the low probability matrix corresponds to 955 sentences to be generated.

[0054] The cross entropy loss between any one of the 995 sentences corresponding to the 995 columns of values ​​in the low probability matrix and the reference sentence is calculated as the second loss value.

[0055] S105. Update the parameters of the first sentence generation model based on the sum of the first loss value and the second loss value of the plurality of sentence samples.

[0056] The sum of the first loss value and the second loss value is calculated to obtain the loss value of a sentence sample, and then the loss values ​​of multiple sentence samples are added to obtain the total loss value of the multiple sentence samples, and the parameters of the first sentence generation model are updated based on the total loss value. Exemplarily, the total loss value is compared with a preset loss threshold, and when the total loss value is greater than the loss threshold, the parameters of the first sentence generation model are updated, and the process returns to execute step S101 and obtain the training set; when the total loss value is less than or equal to the loss threshold, it is determined that the training of the first sentence generation model is completed.

[0057] In an embodiment of the present invention, the sum of the cross entropy losses between the K sentences corresponding to the K column values ​​in the high probability matrix and the reference sentence is calculated as the first loss value, and the cross entropy loss between any one of the multiple sentences corresponding to the low probability matrix and the reference sentence is calculated as the second loss value, and the parameters of the first sentence generation model are updated based on the sum of the first loss value and the second loss value of the multiple sentence samples. Since the characters ranked in the top K in terms of probability value often account for a larger proportion than all the remaining characters, the cross entropy loss between the K sentences corresponding to the K column values ​​in the high probability matrix and the reference sentence is calculated in detail, and for the NK sentences, only the cross entropy loss between any one of them and the reference sentence needs to be calculated, so that the rate of decrease of the loss value can be accelerated, thereby making the sentences generated by the model more fluent when applied, and avoiding the problem of repeated word generation.

[0058] The training method of the sentence generation model provided by the embodiment of the present invention inputs the sentence sample into the first sentence generation model to be trained for processing, obtains the first probability distribution of each symbol in the sentence to be generated in the vocabulary, and the first sentence generation model is a non-autoregressive model. Then, the sum of the cross entropy losses of K sentences corresponding to the K column values ​​in the high probability matrix and the reference sentence is calculated as the first loss value. The high probability matrix is ​​a matrix formed by the first K probability values ​​with the largest probability values ​​in each first probability distribution. The cross entropy loss of any sentence in the multiple sentences corresponding to the low probability matrix and the reference sentence is calculated as the second loss value. The low probability matrix is ​​a matrix formed by probability values ​​other than the first K probability values ​​with the largest probability values ​​in each first probability distribution. The parameters of the first sentence generation model are updated based on the sum of the first loss values ​​and the second loss values ​​of the multiple sentence samples, which can accelerate the rate of decrease of the loss value, thereby making the sentences generated by the model more fluent when applied, and avoiding the problem of repeated word generation.

[0059] Embodiment 2

[0060] Figure 2 is a flow chart of a training method for a sentence generation model provided in the second embodiment of the present invention. This embodiment is refined on the basis of the above-mentioned first embodiment and describes in detail the calculation process of the cross entropy loss, such as Figure 2 As shown, the method includes:

[0061] S201. Obtain a training set, where the training set includes a plurality of sentence samples, and the sentence samples are annotated with reference sentences.

[0062] The sentence generation model to be trained in the embodiment of the present invention can be used for machine translation or sentence formation tasks. When the model is used for machine translation tasks, the sentence sample is a coherent sentence in a first natural language with sequence information, and the reference sentence is a sentence in a second natural language. When the model is used for sentence formation tasks, the sentence sample includes a plurality of discrete words, and the reference sentence is a coherent sentence with sequence information generated from the plurality of discrete words.

[0063] S202: Input the sentence sample into the first sentence generation model to be trained for processing, and obtain a first probability distribution of each symbol in the sentence to be generated in the vocabulary.

[0064] The sentence sample is input into the first sentence generation model to be trained for processing, and the first probability distribution of each symbol (or token) in the sentence to be generated of the sample sentence in the vocabulary is obtained. The first sentence generation model is a non-autoregressive model, and can be, for example, a Levenshtein Transformer model.

[0065] S203, calculating the perplexity of each of the K sentences corresponding to the K column values ​​corresponding to the high probability matrix as the first perplexity, and calculating the perplexity of any one of the multiple sentences corresponding to the low probability matrix as the second perplexity.

[0066] In the embodiment of the present invention, the high probability matrix is ​​a matrix formed by the first K probability values ​​with the largest probability values ​​in each first probability distribution, and the low probability matrix is ​​a matrix formed by the probability values ​​other than the first K probability values ​​with the largest probability values ​​in each first probability distribution. The perplexity of each of the K sentences corresponding to the K column values ​​corresponding to the high probability matrix is ​​calculated as the first perplexity, and the perplexity of any one of the multiple sentences corresponding to the low probability matrix is ​​calculated as the second perplexity.

[0067] Specifically, the K probability values ​​with the largest probability values ​​in each first probability distribution are taken to form a high probability matrix. Exemplarily, the N elements in each first probability distribution can be arranged in descending order, and the first K probability values ​​in the descending order are taken.

[0068] The K sentences corresponding to the K column values ​​in the high probability matrix are respectively input into the pre-trained second sentence generation model for processing to obtain the second probability distribution of each symbol in the sentence to be generated in the context semantic environment, wherein the second sentence generation model is an autoregressive model. Exemplarily, the second sentence generation model can be a generative pre-training (Generative Pre-Training, GPT) model. The GPT model uses pre-training and downstream fine-tuning to process NLP tasks and solve dynamic semantic problems. After being processed by the second sentence generation model, the second probability distribution of each symbol in the K sentences to be generated in the context semantic environment is obtained, and each second probability distribution corresponds to one of the K sentences.

[0069] Next, the perplexity of a corresponding sentence is calculated based on the second probability distribution as the first perplexity PP(W)1. Specifically, the calculation method is as follows:

[0070]

[0071] Specifically, first, the product of all probability values ​​in the second probability distribution is calculated to obtain the first value P (w1w2…w N ), where w1w2…w N where N is the number of characters in the vocabulary. Next, the reciprocal of the first value is calculated to obtain the second value, and then the Nth root of the second value is calculated as the first perplexity. In order to simplify the calculation process, the above multiplication process can be converted into a logarithmic connection process, P(w i |w 1:i-1 ) represents the probability value of the ith symbol based on the contextual semantic environment.

[0072] Similarly, the probability values ​​other than the K probability values ​​with the largest probability values ​​in each first probability distribution are taken to form a low probability matrix, and any one of the multiple sentences corresponding to the low probability matrix is ​​input into the second sentence generation model for processing, and the third probability distribution of each symbol in the sentence to be generated in the context semantic environment is obtained, and then the second perplexity PP(W)2 is calculated based on the third probability distribution. Specifically, the calculation method is as follows:

[0073] The product of all probability values ​​in the third probability distribution is calculated to obtain a third value, then the reciprocal of the third value is calculated to obtain a fourth value, and then the Nth root of the fourth value is calculated as the second perplexity. The specific calculation process can refer to the calculation process of the first perplexity, and the embodiment of the present invention will not be repeated here.

[0074] S204: Determine a penalty factor for each column of values ​​in the high probability matrix based on the first perplexity as a first penalty factor, and determine a penalty factor for any column of values ​​in the low probability matrix based on the second perplexity as a second penalty factor.

[0075] Specifically, at least two perplexity intervals are set, and each perplexity interval has a corresponding penalty factor. When the first perplexity is in a certain perplexity interval, the penalty factor corresponding to the perplexity interval is used as the first penalty factor. When the second perplexity is in a certain perplexity interval, the penalty factor corresponding to the perplexity interval is used as the second penalty factor.

[0076] Exemplarily, the penalty factor is determined as follows:

[0077]

[0078] In the embodiment of the present invention, five perplexity intervals are set, corresponding to penalty factors 1, 0.8, 0.6, 0.4, and 0.2, respectively. When the first perplexity or the second perplexity is in a certain interval, the penalty factor corresponding to the interval is used as the first penalty factor or the second penalty factor. Then, the first penalty factor corresponding to each column value in the high probability matrix and the second penalty factor corresponding to any column value in the low probability matrix are obtained.

[0079] S205 , calculating the product of each column value in the high probability matrix and the first penalty factor to obtain a first matrix, and calculating the product of any column value in the low probability matrix and the second penalty factor to obtain a second matrix.

[0080] Specifically, the first matrix is ​​obtained by multiplying the values ​​in each column of the high probability matrix by the first penalty factor, that is, the values ​​in each column of the high probability matrix are multiplied by the first penalty factor corresponding to the values ​​in the column to obtain the first matrix. The second matrix is ​​obtained by multiplying any column of the low probability matrix by the second penalty factor.

[0081] S206. Based on the first matrix and the reference sentence, calculate the sum of the cross entropy losses between the K sentences corresponding to the K column values ​​in the high probability matrix and the reference sentence as the first loss value, and based on the second matrix and the reference sentence, calculate the cross entropy loss between any one of the multiple sentences corresponding to the low probability matrix and the reference sentence as the second loss value.

[0082] Specifically, first calculate the cross entropy loss L1 between each of the K sentences corresponding to the K column values ​​in the high probability matrix and the reference sentence. Specifically, the calculation formula is as follows:

[0083]

[0084] Among them, P(y t |Xi ,θ) is the probability value of the tth symbol in the i-th sentence among the K sentences, P h i is the sum of the values ​​in the i-th column among the K columns of values ​​in the high probability matrix, r i top is the first penalty factor corresponding to the value of the i-th column in the high probability matrix, y t is the label of the tth symbol in the reference sentence. When the tth symbol in the reference sentence is a preset character, y t =1, otherwise, y t =0, θ is the parameter of the first sentence generation model.

[0085] Then, the sum of the cross entropy losses corresponding to the K sentences is calculated as the first loss value L2. The specific calculation formula is as follows:

[0086]

[0087] Similarly, based on the second matrix and the reference sentence, the cross entropy loss between any sentence in the multiple sentences corresponding to the low probability matrix and the reference sentence is calculated as the second loss value L3. Specifically, the calculation formula is as follows:

[0088]

[0089] Among them, P(y t |X j ,θ) is the probability value of the tth symbol in any one of the multiple sentences (jth) corresponding to the low probability matrix, (1-P h j ) is the sum of the values ​​in the jth column of the low probability matrix, r j sample (y t ) is the second penalty factor corresponding to any column of values ​​(j-th column) in the low probability matrix.

[0090] S207. Update the parameters of the first sentence generation model based on the sum of the first loss value and the second loss value of the plurality of sentence samples.

[0091] Specifically, the sum of the first loss value L2 and the second loss value L3 is calculated to obtain a total loss value, and the parameters of the first sentence generation model are updated based on the total loss value. Exemplarily, the total loss value is compared with a preset loss threshold, and when the total loss value is greater than the loss threshold, the parameters of the first sentence generation model are updated, and the process returns to execute step S201 and obtain the training set; when the total loss value is less than or equal to the loss threshold, it is determined that the training of the first sentence generation model is completed.

[0092] When performing sentence-making tasks based on non-autoregressive models, since the input of the task itself is a discrete sequence with seriously insufficient information, when generating sentences, since the generation of each word is independently modeled, this sequence loss causes problems such as incoherent and repeated generation of the generated text. In an embodiment of the present invention, by introducing an autoregressive model (i.e., a second sentence generation model), K sentences corresponding to the high probability matrix and any sentence corresponding to the low probability matrix in the probability matrix output by the first sentence generation model to be trained are respectively input into the autoregressive model, the perplexity is calculated based on the output of the autoregressive model, and the penalty factor of each column of the high probability matrix and the penalty factor of any column of the low probability matrix are determined based on the perplexity, and then the sequence information is introduced to improve the cross entropy loss function at the word level, so that the model can capture the sequence dependency of the generated sentences, and the generated sentences will be more fluent, while also avoiding the repeated generation of words.

[0093] The sentence generation model training method provided by the embodiment of the present invention calculates the sum of the cross entropy losses of the K sentences corresponding to the K column values ​​in the high probability matrix and the reference sentence as the first loss value, calculates the cross entropy loss of any one of the multiple sentences corresponding to the low probability matrix and the reference sentence as the second loss value, and updates the parameters of the first sentence generation model based on the sum of the first loss value and the second loss value of the multiple sentence samples, which can accelerate the rate of decrease of the loss value, thereby making the sentences generated by the model more fluent when applied, and avoiding the problem of repeated word generation. In addition, by introducing an autoregressive model and then introducing sequence information, the cross entropy loss function at the word level is improved, so that the model can capture the sequence dependency of the generated sentence, and the generated sentence will be more fluent, while also avoiding repeated word generation.

[0094] Embodiment 3

[0095] Figure 3 is a flowchart of a sentence generation method provided in the third embodiment of the present invention. This embodiment can be applied to machine translation or sentence making tasks. The method can be executed by the sentence generation device provided in the embodiment of the present invention. The device can be implemented in software and / or hardware and integrated in the computer device provided in the embodiment of the present invention. Figure 3 As shown, the method specifically comprises the following steps:

[0096] S301. Obtain statements to be processed.

[0097] The method of the embodiment of the present invention can be used for machine translation or sentence formation tasks. When used for machine translation tasks, the sentence to be processed is a coherent sentence in the first natural language with sequence information. When used for sentence formation tasks, the sentence to be processed includes multiple discrete words.

[0098] S302: Input the sentence to be processed into the trained first sentence generation model for processing, and obtain a sixth probability distribution of each symbol in the sentence to be generated in the vocabulary.

[0099] The sentence generation model is a first sentence generation model trained by the sentence generation model training method of the aforementioned embodiment. Specifically, the training process of the sentence generation model has been described in detail in the aforementioned embodiment, and the embodiment of the present invention will not be repeated here. The sentence to be processed is input into the trained first sentence generation model for processing to obtain the sixth probability distribution of each symbol in the vocabulary in the sentence to be generated. Among them, the first sentence generation model is a non-autoregressive model, and exemplarily, it can be a Levenshtein Transformer model.

[0100] S303: Determine the character corresponding to each symbol based on the sixth probability distribution of each symbol in the vocabulary.

[0101] The number of characters in the vocabulary is N, and the sentence to be generated has M symbols. The sixth probability distribution of each symbol is a 1×N vector, and the elements in the vector correspond to the N characters in the vocabulary, and the value of the element is the probability that the symbol is the corresponding character. Exemplarily, the character corresponding to the element with the largest probability value in the sixth probability distribution is taken as the character of the symbol in the vocabulary, so as to determine the character corresponding to each symbol and obtain the generated sentence.

[0102] The sentence generation method provided by an embodiment of the present invention is based on the first sentence generation model provided by the aforementioned embodiment of the present invention, including: obtaining a sentence to be processed, inputting the sentence to be processed into a sentence generation model for processing, obtaining a sixth probability distribution of each symbol in the vocabulary in the sentence to be generated, determining the character corresponding to each symbol based on the sixth probability distribution of each symbol in the vocabulary, so that the generated sentence is more fluent and avoids the problem of repeated word generation.

[0103] Embodiment 4

[0104] Figure 4 A structural diagram of a training device for a sentence generation model provided in Embodiment 4 of the present invention, such as Figure 4 As shown, the training device of the sentence generation model includes:

[0105] A training set acquisition module 401 is used to acquire a training set, wherein the training set includes a plurality of sentence samples, and the sentence samples are annotated with reference sentences;

[0106] A first probability distribution determination module 402, configured to input the sentence sample into a first sentence generation model to be trained for processing, and obtain a first probability distribution of each symbol in the sentence to be generated in the vocabulary, wherein the sentence generation model is a non-autoregressive model;

[0107] A first loss value calculation module 403 is used to calculate the sum of cross entropy losses of K sentences corresponding to K column values ​​in a high probability matrix and the reference sentence as a first loss value, wherein the high probability matrix is ​​a matrix formed by the first K probability values ​​with the largest probability values ​​in each of the first probability distributions;

[0108] A second loss value calculation module 404 is used to calculate the cross entropy loss between any one of the multiple sentences corresponding to the low probability matrix and the reference sentence as a second loss value, wherein the low probability matrix is ​​a matrix formed by probability values ​​other than the first K with the largest probability values ​​in each of the first probability distributions;

[0109] The parameter updating module 405 is used to update the parameters of the first sentence generation model based on the sum of the first loss value and the second loss value of multiple sentence samples.

[0110] In some embodiments of the present invention, the first loss value calculation module 403 includes:

[0111] A first perplexity calculation submodule, used to calculate the perplexity of each of the K sentences corresponding to the K column values ​​corresponding to the high probability matrix as a first perplexity;

[0112] A first penalty factor determination submodule, configured to determine a penalty factor for each column of values ​​in the high probability matrix based on the first perplexity as a first penalty factor;

[0113] A first matrix calculation submodule, used for calculating the product of each column value in the high probability matrix and the first penalty factor to obtain a first matrix;

[0114] The first loss value calculation submodule is used to calculate the sum of the cross entropy losses of K sentences corresponding to the K column values ​​in the high probability matrix and the reference sentence based on the first matrix and the reference sentence as the first loss value.

[0115] In some embodiments of the present invention, the first perplexity calculation submodule includes:

[0116] A high probability matrix determination unit, used for taking K probability values ​​with the largest probability values ​​in each of the first probability distributions to form a high probability matrix;

[0117] A second probability distribution determination unit is used to input the K sentences corresponding to the high probability matrix into a second sentence generation model for processing, so as to obtain a second probability distribution of each symbol in the sentence to be generated under a contextual semantic environment, wherein the second sentence generation model is an autoregressive model;

[0118] The first perplexity determination unit is configured to calculate a first perplexity based on a second probability distribution.

[0119] In some embodiments of the present invention, the first perplexity determination unit includes:

[0120] A first numerical value calculation subunit, used for calculating the product of all probability values ​​in the second probability distribution to obtain a first numerical value;

[0121] A second numerical value calculation subunit, configured to calculate the reciprocal of the first numerical value to obtain a second numerical value;

[0122] The first perplexity calculation subunit is used to calculate the Nth root of the second value as a first perplexity, wherein N is the number of characters in the vocabulary.

[0123] In some embodiments of the present invention, the first penalty factor determination submodule includes:

[0124] A first perplexity interval setting unit, configured to set at least two perplexity intervals, each of the perplexity intervals having a corresponding penalty factor;

[0125] The first penalty factor determining unit is configured to use, when the first perplexity is within the perplexity interval, a penalty factor corresponding to the perplexity interval as a first penalty factor.

[0126] In some embodiments of the present invention, the second loss value calculation module 404 includes:

[0127] A second perplexity calculation submodule, used to calculate the perplexity of any one of the multiple sentences corresponding to the low probability matrix as a second perplexity;

[0128] A second penalty factor determination submodule, configured to determine a penalty factor of any column of values ​​in the low probability matrix based on the second perplexity as a second penalty factor;

[0129] A second matrix calculation submodule, used for calculating the product of any column value in the low probability matrix and the second penalty factor to obtain a second matrix;

[0130] The second loss value calculation submodule is used to calculate the cross entropy loss between any one of the multiple sentences corresponding to the low probability matrix and the reference sentence based on the second matrix and the reference sentence as the second loss value.

[0131] In some embodiments of the present invention, the second perplexity calculation submodule includes:

[0132] A low probability matrix determination unit, used for taking probability values ​​other than the K probability values ​​with the largest probability values ​​in each of the first probability distributions to form a low probability matrix;

[0133] A third probability distribution determination unit is used to input any one of the multiple sentences corresponding to the low probability matrix into the second sentence generation model for processing, so as to obtain a third probability distribution of each symbol in the sentence to be generated under the context semantic environment, wherein the second sentence generation model is an autoregressive model;

[0134] The second perplexity calculation unit is used to calculate the second perplexity based on the third probability distribution.

[0135] In some embodiments of the present invention, the second perplexity calculation unit includes:

[0136] A third numerical value calculation subunit, configured to calculate the product of all probability values ​​in the third probability distribution to obtain a third numerical value;

[0137] a fourth numerical value calculating subunit, configured to calculate the inverse of the third numerical value to obtain a fourth numerical value;

[0138] The second perplexity calculation subunit is used to calculate the Nth root of the fourth value as the second perplexity.

[0139] In some embodiments of the present invention, the second penalty factor determination submodule includes:

[0140] A second perplexity interval setting unit, configured to set at least two perplexity intervals, each of the perplexity intervals having a corresponding penalty factor;

[0141] The second penalty factor determining unit is configured to use, when the second perplexity is within the perplexity interval, a penalty factor corresponding to the perplexity interval as a second penalty factor.

[0142] The above-mentioned sentence generation model training device can execute the sentence generation model training method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0143] Embodiment 5

[0144] Figure 5 A schematic diagram of the structure of a sentence generating device provided in Embodiment 5 of the present invention is shown in FIG. Figure 5 As shown, the sentence generating device comprises:

[0145] A statement-to-be-processed acquisition module 501 is used to acquire a statement to be processed;

[0146] A second probability distribution determination module 502 is used to input the sentence to be processed into the trained first sentence generation model for processing, and obtain a sixth probability distribution of each symbol in the sentence to be generated in the vocabulary;

[0147] The character determination module 503 is used to determine the character corresponding to each symbol based on the sixth probability distribution of each symbol in the vocabulary.

[0148] The above-mentioned sentence generation device can execute the sentence generation method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0149] Embodiment 6

[0150] Embodiment 6 of the present invention provides a computer device, Figure 6 A schematic diagram of the structure of a computer device provided in Embodiment 6 of the present invention is shown in FIG. Figure 6 As shown, the computer device includes a processor 601, a memory 602, a communication module 603, an input device 604 and an output device 605; the number of processors 601 in the computer device can be one or more. Figure 6 A processor 601 is taken as an example; the processor 601, memory 602, communication module 603, input device 604 and output device 605 in the computer device can be connected by a bus or other means. Figure 6 The above processor 601, memory 602, communication module 603, input device 604 and output device 605 can be integrated on a control mainboard of a computer device.

[0151] The memory 602, as a computer-readable storage medium, can be used to store software programs, computer executable programs and modules, such as the training method of the sentence generation model or the module corresponding to the sentence generation method in the embodiment of the present invention. The processor 601 executes various functional applications and data processing of the computer device by running the software programs, instructions and modules stored in the memory 602, that is, the training method of the sentence generation model or the sentence generation method provided in the above embodiment is implemented.

[0152] The memory 602 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 602 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 instances, the memory 602 may further include a memory remotely arranged relative to the processor 601, and these remote memories may be connected to the computer 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.

[0153] The communication module 603 is used to establish a connection with an external device (such as a smart terminal) and realize data interaction with the external device. The input device 604 can be used to receive input digital or character information and generate key signal input related to user settings and function control of the computer device.

[0154] A computer device provided in this embodiment can execute the sentence generation model training method or sentence generation method provided in any of the above embodiments of the present invention, and has specific corresponding functions and beneficial effects.

[0155] Embodiment 7

[0156] Embodiment 7 of the present invention provides a storage medium containing computer executable instructions, on which a computer program is stored. When the program is executed by a processor, the training method or sentence generation method of the sentence generation model provided in any of the above embodiments of the present invention is implemented.

[0157] The training methods for sentence generation models include:

[0158] Obtaining a training set, wherein the training set includes a plurality of sentence samples, and the sentence samples are annotated with reference sentences;

[0159] Inputting the sentence sample into a first sentence generation model to be trained for processing to obtain a first probability distribution of each symbol in the sentence to be generated in a vocabulary, wherein the first sentence generation model is a non-autoregressive model;

[0160] Calculate the sum of cross entropy losses between K sentences corresponding to K columns of values ​​in a high probability matrix and the reference sentence as a first loss value, wherein the high probability matrix is ​​a matrix formed by first K probability values ​​with the largest probability values ​​in each of the first probability distributions;

[0161] Calculate the cross entropy loss between any one of the multiple sentences corresponding to the low probability matrix and the reference sentence as the second loss value, wherein the low probability matrix is ​​a matrix formed by probability values ​​other than the first K with the largest probability values ​​in each of the first probability distributions;

[0162] Update the parameters of the first sentence generation model based on the sum of the first loss value and the second loss value of multiple sentence samples.

[0163] Statement generation methods include:

[0164] Get the pending statements;

[0165] Inputting the sentence to be processed into the trained first sentence generation model for processing, and obtaining a sixth probability distribution of each symbol in the sentence to be generated in the vocabulary;

[0166] The character corresponding to each symbol is determined based on the sixth probability distribution of each symbol in the vocabulary.

[0167] Of course, the storage medium containing computer executable instructions provided by the embodiment of the present invention is not limited to the method operations described above, and can also execute the training method of the sentence generation model or related operations in the sentence generation method provided by the embodiment of the present invention.

[0168] It should be noted that, for the device, equipment and storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0169] Through the above description of the implementation mode, the technicians in the relevant field can clearly understand that the present invention can be implemented by means of software and necessary general hardware, and of course it can also be implemented by hardware, but in many cases the former is a better implementation mode. Based on such an understanding, the technical solution of the present invention 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 a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions for a computer device (which can be a robot, a personal computer, a server, or a network device, etc.) to execute the sentence generation model training method or sentence generation method described in any embodiment of the present invention.

[0170] It is worth noting that in the above-mentioned device, the various modules, sub-modules, units and sub-units included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.

[0171] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution device. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0172] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0173] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A method for training a sentence generation model, characterized in that: include: Obtaining a training set, wherein the training set includes a plurality of sentence samples, and the sentence samples are annotated with reference sentences; Inputting the sentence sample into a first sentence generation model to be trained for processing to obtain a first probability distribution of each symbol in the sentence to be generated in a vocabulary, wherein the first sentence generation model is a non-autoregressive model; Calculate the sum of cross entropy losses between K sentences corresponding to K columns of values ​​in a high probability matrix and the reference sentence as a first loss value, wherein the high probability matrix is ​​a matrix formed by first K probability values ​​with the largest probability values ​​in each of the first probability distributions; Calculate the cross entropy loss between any one of the multiple sentences corresponding to the low probability matrix and the reference sentence as the second loss value, wherein the low probability matrix is ​​a matrix formed by probability values ​​other than the first K with the largest probability values ​​in each of the first probability distributions; Update the parameters of the first sentence generation model based on the sum of the first loss value and the second loss value of multiple sentence samples.

2. The sentence generation model training method according to claim 1, characterized in that: Calculating the sum of the cross entropy losses of the K sentences corresponding to the K column values ​​in the high probability matrix and the reference sentence as the first loss value, including: Calculate the perplexity of each of the K sentences corresponding to the K column values ​​corresponding to the high probability matrix as the first perplexity; Determine a penalty factor for each column of values ​​in the high probability matrix based on the first perplexity as a first penalty factor; Calculate the product of each column value in the high probability matrix and the first penalty factor to obtain a first matrix; Based on the first matrix and the reference sentence, the sum of the cross entropy losses of the K sentences corresponding to the K column values ​​in the high probability matrix and the reference sentence is calculated as the first loss value.

3. The sentence generation model training method according to claim 2, characterized in that: Calculating the perplexity of each of the K sentences corresponding to the K column values ​​corresponding to the high probability matrix as a first perplexity, including: Taking K probability values ​​with the largest probability values ​​in each of the first probability distributions to form a high probability matrix; Inputting the K sentences corresponding to the high probability matrix into the second sentence generation model for processing respectively, and obtaining the second probability distribution of each symbol in the sentence to be generated under the context semantic environment, wherein the second sentence generation model is an autoregressive model; A first perplexity is calculated based on the second probability distribution.

4. The sentence generation model training method according to claim 3, characterized in that: Calculating a first perplexity based on a second probability distribution includes: Calculate the product of all probability values ​​in the second probability distribution to obtain a first value; Calculate the reciprocal of the first value to obtain a second value; The Nth root of the second value is calculated as the first perplexity, where N is the number of characters in the vocabulary.

5. The sentence generation model training method according to claim 2, characterized in that: Determining a penalty factor for each column of values ​​in the high probability matrix based on the first perplexity as a first penalty factor includes: Setting at least two perplexity intervals, each perplexity interval having a corresponding penalty factor; When the first perplexity is within the perplexity interval, a penalty factor corresponding to the perplexity interval is used as a first penalty factor.

6. The method for training a sentence generation model according to any one of claims 1 to 5, characterized in that: Calculating the cross entropy loss between any one of the multiple sentences corresponding to the low probability matrix and the reference sentence as the second loss value includes: Calculate the perplexity of any one of the multiple sentences corresponding to the low probability matrix as the second perplexity; Determine a penalty factor of any column of values ​​in the low probability matrix based on the second perplexity as a second penalty factor; Calculate the product of any column value in the low probability matrix and the second penalty factor to obtain a second matrix; Based on the second matrix and the reference sentence, a cross entropy loss between any one of the multiple sentences corresponding to the low probability matrix and the reference sentence is calculated as a second loss value.

7. The sentence generation model training method according to claim 6, characterized in that: Calculating the perplexity of any one of the multiple sentences corresponding to the low probability matrix as the second perplexity includes: Taking probability values ​​other than the K probability values ​​with the largest probability values ​​in each of the first probability distributions to form a low probability matrix; Inputting any one of the multiple sentences corresponding to the low probability matrix into the second sentence generation model for processing, and obtaining a third probability distribution of each symbol in the sentence to be generated under the context semantic environment, wherein the second sentence generation model is an autoregressive model; A second perplexity is calculated based on the third probability distribution.

8. The sentence generation model training method according to claim 7, characterized in that: Calculating a second perplexity based on a third probability distribution includes: Calculating the product of all probability values ​​in the third probability distribution to obtain a third value; Calculating the reciprocal of the third value to obtain a fourth value; The Nth root of the fourth value is calculated as the second perplexity.

9. The sentence generation model training method according to claim 6, characterized in that: Determining a penalty factor of any column of values ​​in the low probability matrix as a second penalty factor based on the second perplexity includes: Setting at least two perplexity intervals, each perplexity interval having a corresponding penalty factor; When the second perplexity is within the perplexity interval, a penalty factor corresponding to the perplexity interval is used as a second penalty factor.

10. A sentence generation method, characterized in that: The first sentence generation model based on any one of claims 1 to 9 comprises: Get the pending statements; Inputting the sentence to be processed into the trained first sentence generation model for processing, and obtaining a sixth probability distribution of each symbol in the sentence to be generated in the vocabulary; The character corresponding to each symbol is determined based on the sixth probability distribution of each symbol in the vocabulary.

11. A training device for a sentence generation model, characterized in that: include: A training set acquisition module, used to acquire a training set, wherein the training set includes a plurality of sentence samples, and the sentence samples are annotated with reference sentences; A first probability distribution determination module, used for inputting the sentence sample into a first sentence generation model to be trained for processing, and obtaining a first probability distribution of each symbol in the sentence to be generated in the vocabulary, wherein the sentence generation model is a non-autoregressive model; A first loss value calculation module, used to calculate the sum of cross entropy losses of K sentences corresponding to K column values ​​in a high probability matrix and the reference sentence as a first loss value, wherein the high probability matrix is ​​a matrix formed by the first K probability values ​​with the largest probability values ​​in each of the first probability distributions; A second loss value calculation module, used to calculate the cross entropy loss between any one of the multiple sentences corresponding to the low probability matrix and the reference sentence as a second loss value, wherein the low probability matrix is ​​a matrix formed by probability values ​​other than the first K with the largest probability values ​​in each of the first probability distributions; A parameter updating module is used to update the parameters of the first sentence generation model based on the sum of the first loss value and the second loss value of multiple sentence samples.

12. A sentence generating device, characterized in that: The first sentence generation model according to any one of claims 1 to 9 comprises: A module for obtaining statements to be processed, used for obtaining statements to be processed; A second probability distribution determination module is used to input the sentence to be processed into the trained first sentence generation model for processing, and obtain a sixth probability distribution of each symbol in the sentence to be generated in the vocabulary; The character determination module is used to determine the character corresponding to each symbol based on the sixth probability distribution of each symbol in the vocabulary.

13. A computer device, characterized in that: include: one or more processors; A storage device for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the training method of the sentence generation model as described in any one of claims 1-9, or implement the sentence generation method as described in claim 10.

14. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, it implements the training method of the sentence generation model as described in any one of claims 1 to 9, or implements the sentence generation method as described in claim 10.

Citation Information

Patent Citations

  • Adaptive speech recognition method and device

    CN106297800A

  • A method and device for translating statements

    CN109558605A

  • Intelligent dialogue method, electronic device and storage medium

    CN109814831A

  • Translation method and device, computer equipment and storage medium

    CN110263348A

  • Generating summary content tuned to a target characteristic using a word generation model

    US20200242197A1