Method for automatically generating Python codes from natural language
A natural language and automatic generation technology, applied in the direction of creating/generating source code, code compilation, program code conversion, etc., can solve problems such as semantic loss and lack of semantic constraints
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0036] The specific embodiments of the present invention will be described in detail below in conjunction with the technical solutions and accompanying drawings.
[0037] A method to automatically generate Python code from natural language. The proposed GANCoder system is generally a generative confrontation network, including two parts, the generator and the discriminator, such as image 3 shown. Where the generator is an Encoder-Decoder model, such as Figure 4 As shown, the Encoder is responsible for encoding the natural language description sequence, using a two-way LSTM network, while the Decoder decodes the semantics encoded by the Encoder into the abstract syntax tree of the program, using a one-way LSTM network; and the discriminator is mainly responsible for judging the natural language description and Whether the semantics of the abstract syntax tree are consistent, the generator Encoder is used for the semantic encoding of the natural language description, and the ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com