Text generation method and device based on programming language, storage medium and electronic equipment

The invention discloses a text generation method and device based on a programming language, a storage medium and electronic equipment. The method comprises the following steps: acquiring a natural language text; the natural language text is input into a pre-trained target text generation model, a f...

Full description

Saved in:
Bibliographic Details
Main Authors WU DELONG, LUO SHUNCHANG
Format Patent
LanguageChinese
English
Published 06.08.2024
Subjects
Online AccessGet full text

Cover

Loading…
More Information
Summary:The invention discloses a text generation method and device based on a programming language, a storage medium and electronic equipment. The method comprises the following steps: acquiring a natural language text; the natural language text is input into a pre-trained target text generation model, a first calling text is generated, and the first calling text is used for indicating a to-be-called first application programming interface; obtaining first result data corresponding to the natural language text from a target database through the first application programming interface; a target language text is generated according to the natural language text and the first result data, the format of the target language text is a target programming language format, and the target language text is used for interacting with a target database according to semantic information of the natural language text. The technical problem that the text generation efficiency is low due to the fact that the text processing flow is too
Bibliography:Application Number: CN202410558128