Patent ID: 11928434
Assignee: BEIJING BAIDU NETCOM SCIENCE TECHNOLOGY CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 0:
1. A text generation method, comprising:
obtaining corpus data;
labeling the corpus data to obtain a first constraint element;
obtaining a first generation target; and
generating a first text matching the first generation target by inputting the corpus data and the first constraint element into a generation model;
wherein generating the first text matching the first generation target by inputting the corpus data and the first constraint element into the generation model comprises:
obtaining a first sub model matching the first generation target from the generation model according to the first generation target; and
inputting the corpus data and the first constraint element into the first sub model, and generating the first text by the first sub model,
after generating the first text matching the first generation target, the method further comprises:
obtaining a second sub model associated with the first sub model, wherein corpus data of the second sub model is the first text;
labeling the first text to obtain a second constraint element corresponding to the second sub model; and
generating a second text by inputting the first text and the second constraint element into the second sub model.