This invention relates to the field of
artificial intelligence technology, and more particularly to a method, apparatus,
computer device, and medium for generating incorrect sentences for model training. The method maps the number of terms in the text to be processed to an adjustment quantity, samples target terms from the text to be processed, adjusts the target terms to obtain augmented text, occludes the text to be processed, inputs it into a reconstruction model to obtain reconstructed text, trains a
generative model based on the text to be processed, the augmented text, and the reconstructed text, inputs real-time text into the trained
generative model to obtain generated incorrect
sentence text, processes the text to be processed using multiple data augmentation methods to obtain text containing rich error types as labels, trains an end-to-end
generative model, allowing real-time text to be directly input into the trained generative model to obtain generated incorrect
sentence text without frequent switching of data augmentation methods, greatly improving the efficiency of incorrect
sentence generation while ensuring high quality.