A Code Generation Method for Syntax Tree Decoder

A code generation and decoder technology, applied in the field of code generation for syntax tree decoders, can solve the problems of not being able to reduce the number of parameters, not being able to alleviate the problem of gradient disappearance, etc., to alleviate the problem of gradient disappearance, promote feature sharing, and enhance features The effect of spreading

Active Publication Date: 2022-07-05
CHENGDU SUNSHEEN TECH +1
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Although the application scheme can achieve a dynamic description of the target code, it cannot reduce the number of parameters and cannot alleviate the problem of gradient disappearance caused by network deepening.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A Code Generation Method for Syntax Tree Decoder
  • A Code Generation Method for Syntax Tree Decoder
  • A Code Generation Method for Syntax Tree Decoder

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] In order to have a clearer understanding of the technical features, objects and effects of the present invention, the specific embodiments of the present invention will now be described with reference to the accompanying drawings.

[0033] In this embodiment, as figure 1 As shown, a code generation method for syntax tree decoder includes the following steps:

[0034] Step 1: Parse the data through the encoder to generate AST, apply a sliding window on the AST structure to extract the AST structural features, and traverse the deep-level nodes of the AST to obtain the order relationship between the child, parent nodes and sibling nodes in the AST;

[0035] Step 2: Add multi-layer connections to the AST, design a dense network block structure, and use the dense connection method to train the deep convolutional network to form a dense convolutional neural network;

[0036] Step 3: Design the transition layer structure, add the designed transition layer to the dense convolu...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a code generation method oriented to a syntax tree decoder, comprising the following steps: parsing data through an encoder to generate an AST, applying a sliding window on the AST structure to extract the AST structural features, and performing deep-level node analysis on the AST. Traverse to obtain the order relationship between child, parent and sibling nodes in the AST; add multi-layer connections to the AST, design a dense network block structure, and use the dense connection method to train a deep convolutional network to form a dense convolutional neural network; design transition Layer structure, add the designed transition layer to the dense convolutional neural network and perform convolution and pooling operations, optimize the dense convolutional neural network, output feature maps, and generate codes. The invention shortens the connection of each network layer in syntax tree decoding, increases the connection of each network layer, alleviates the gradient disappearance problem caused by network deepening, enhances feature propagation, promotes feature sharing, and effectively reduces the number of parameters.

Description

technical field [0001] The invention relates to the technical field of code generation, in particular to a code generation method oriented to a syntax tree decoder. Background technique [0002] With the development of neural network technology, it has become possible to automatically generate the source code of the executable programming language using description specifications written in natural language and other symbols. Among them, the implementation of the syntax tree decoder, the existing methods mainly rely on the recurrent neural network (RNN) encoder, then to the Seq2Seq model, and then to the CNN, the model can not only learn the long and short-term memory of long sequences, but also capture the description specification. more features. With the deepening of description specification semantics and the complexity of logic, which leads to the deepening of CNN, the problem of gradient disappearance and degradation occurs in the grammar-based structure CNN decoder d...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06F8/30G06F8/41G06N3/04G06N3/08
CPCG06F8/31G06F8/42G06N3/08G06N3/045
Inventor 王彪李超刘魁曹亮
Owner CHENGDU SUNSHEEN TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products