Code generation method and apparatus, storage medium and electronic device
AssigneeDouyin Vision Co., Ltd.
InventorsLuping Liu, Qinyun Wu, Ping Yang, Landong Lin, Jie Liu, Huan Song
Life of this patent
Estimating the term…
Loading patent…
AssigneeDouyin Vision Co., Ltd.
InventorsLuping Liu, Qinyun Wu, Ping Yang, Landong Lin, Jie Liu, Huan Song
Estimating the term…
The present disclosure relates to a code generation method and apparatus, a storage medium, and an electronic device, to improve the accuracy of automatically generated code. The method includes: acquiring target text, where the target text includes program code text to be supplemented or natural language text for describing a code function; and inputting the target text into a code generation model to obtain a target program code generated based on the target text, where the code generation model is obtained by training a code understanding task and a code generation task, the code understanding task is used for the code generation model to learn a syntax feature and a semantic feature of a sample program code, and the code generation task is used for the code generation model to learn a process of generating a new program code based on the sample program code.
A code generation method, comprising:
(canceled)
A non-transitory computer readable medium, storing a computer program thereon, wherein the program, when executed by a processing apparatus, cause the processing apparatus to:
An electronic device, comprising:
Dependencies are inferred from the claim text.