The invention discloses a
text generation model training method, a target corpus expansion method and a related device. The training method of the
text generation model comprises the following steps: acquiring a sample corpus; performing word segmentation
processing on the sample corpus, and generating a statistical
language model according to a word segmentation
processing result; generating a
target text by using a generator of the
text generation model; according to the sample corpus, utilizing a
discriminator of a text generation model to discriminate the
target text, outputting a discrimination result, and obtaining an adversarial
loss function according to the discrimination result; acquiring the
confusion degree of the
target text by utilizing a statistical
language model, and determining a penalty term according to the
confusion degree; and superposing the confrontation
loss function and the penalty term to obtain a target
loss function of the text generation model, and training the text generation model by using the target loss function to obtain a trained text generation model. According to the scheme, the training of the text generation model can be guided by utilizing the existing corpus, and the performance of the text generation model is improved.