📥 Content Hub
← назад
patents ⚡ Google Patents en 2026-09-01 1 min

Training method of code completion model, code completion method and device

Патент · CN B

CN-115525263-B
приоритет 2021-06-24 подача 2021-06-24 публикация 2026-09-01 выдача 2026-09-01 семья 84693487
patents-ai
华为技术有限公司

The application provides a training method of a code complement model, a code complement method and a device thereof, and relates to the field of artificial intelligence. The training method of the code complement model comprises the steps of obtaining first training data, inputting the first training data into a neural network model, training the neural network model based on a multi-layer neural network of a custom-made transducer, and obtaining an object code complement model, wherein the first training data comprises program codes, the program codes comprise morph sequences represented by double-line parallel sequences, the double-line parallel sequences comprise Type-line and Token-line, the Type-line is used for indicating structural grammar information of the program codes, the Token-line is used for indicating semantic information of the program codes, and the first training data is input into the neural network model. According to the scheme, the object code completion model can generate the whole line of code completion end to end, prediction is accurate, reasoning is quick, and development efficiency and experience of a user are improved.

Читать оригинал ↗

Сделать контент из этого материала