Text generation method and device based on artificial intelligence, computer equipment and medium

The invention relates to the technical field of artificial intelligence, in particular to a text generation method and device based on artificial intelligence, computer equipment and a medium. The method comprises the following steps: inputting reference information, a text sample and a label thereo...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: PAN RONGFENG, WANG JIANZONG
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention relates to the technical field of artificial intelligence, in particular to a text generation method and device based on artificial intelligence, computer equipment and a medium. The method comprises the following steps: inputting reference information, a text sample and a label thereof into a text generation model, iterating a target number of iterations to obtain a generated sample, calculating a loss function value according to the generated sample, correcting the target number of iterations into a reference number of iterations when the loss function value meets a preset condition, and iterating again according to the reference number of iterations to obtain a reference sample. Training a pre-trained text generation model according to the reference sample and the label, inputting a to-be-converted text into the trained text generation model to obtain a generated text, correcting the generation number according to known information when the relation between the number of iterations and the ac