# Code generation method and system based on natural semantic understanding

*Источник: Google Patents*
*Дата: 2026-09-08*
*Язык: en*

Code generation method and system based on natural semantic understanding

The invention provides a code generation method and a system based on natural semantic understanding, comprising the steps of S1, obtaining a natural language sequence, preprocessing the obtained natural language sequence to obtain a preprocessed natural language sequence, S2, constructing a code generation model, training the constructed code generation model to obtain a trained code generation model, S3, generating a target code according to the input natural language sequence by the trained code generation model, and realizing automatic generation from the natural language sequence to the target code by the code generation model based on a neural network structure of an encoder-decoder.

[Оригинал](https://patents.google.com/patent/CN115202640B/en)