Text generation method and device and electronic equipment
The embodiment of the invention discloses a text generation method and device and electronic equipment, and relates to the technical field of artificial intelligence. The method comprises the steps that output preamble information of a to-be-output text is acquired, and a first hash value correspond...
Gespeichert in:
Hauptverfasser: | , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The embodiment of the invention discloses a text generation method and device and electronic equipment, and relates to the technical field of artificial intelligence. The method comprises the steps that output preamble information of a to-be-output text is acquired, and a first hash value corresponding to the output preamble information is calculated; taking the first hash value as a random seed, and splitting a lexicon of the target model according to a preset proportion to obtain a first sub-lexicon and a second sub-lexicon of the lexicon; the input text and the output preamble information are input into a target model, an output text set is obtained, and the output text set comprises a plurality of predicted output texts; and sequentially judging whether the plurality of predicted output texts are in the first sub-word library or not, and if so, taking the corresponding predicted output texts as to-be-output texts. By utilizing the technical scheme provided by the specification, the watermark can be quickl |
---|