Method and apparatus for generating code

A technology for generating code and source code, which is applied in the field of code generation, can solve the problems of high cost of getting started, difficulty in popularizing programming technology, and spending a lot of time, and achieve the effect of reducing the cost of getting started

Active Publication Date: 2022-02-01
BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] No matter what programming language it is, only professional developers (for example, developers) who have a deep understanding of the details of the programming language can master it. For people in other industries without background knowledge, there is a large cost of getting started, making it difficult for programming technology to be applied to other industries. Popularity
[0005] For developers, when it comes to programming in different languages, it takes a lot of time and effort to master the grammar rules of different languages

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
  • Method and apparatus for generating code
  • Method and apparatus for generating code
  • Method and apparatus for generating code

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] The following detailed description will be further described below with reference to the accompanying drawings and examples. It will be appreciated that the specific embodiments described herein are only used to explain the relevant invention, not the limitation of the invention. It will also be noted that only portions associated with the relevant invention are shown in the drawings for ease of description.

[0033]It should be noted that the features of the present application and the features in the embodiments in the present application can be combined with each other in the case of an unable conflict. The present application will be described in detail below with reference to the accompanying drawings.

[0034] figure 1 A method of using the method for generating code, a method for converting code is used to generate a code, or an exemplary system architecture 100 for generating a device for generating a code or an embodiment of a device for converting a code.

[0035...

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 embodiment of the present application discloses a method and a device for generating codes. A specific implementation of the method includes: obtaining an input statement submitted by a user, wherein the input statement is a command statement described in a natural language; selecting a statement described in a natural language as an input and a statement described in a target programming language as an output code statement Generate a model; input the input statement into the code statement generation model, and obtain the code statement corresponding to the semantics of the input statement and described in the target programming language. This embodiment can construct a natural language interactive programming technology, so that people who do not know the details of the programming language can use the usual natural language to write programs, reducing the cost of programming.

Description

Technical field [0001] The present application relates to the field of computer technology, and more particularly to methods and apparatus for generating code. Background technique [0002] Programming is, let the computer generate a certain amount of operations to solve a problem, to regulate a certain amount of operations in a computing system, so that the calculation system operates in accordance with the calculation method, and finally obtains the process of corresponding results. In order to enable the computer to understand the human intent, the idea, method, and means of the problem must be described in the form of a computer to understand (ie, convert the intent to the program code), so that the computer can step by step according to human instructions. Go to work, complete a specific task. [0003] Currently, programming languages ​​include command-based programming languages ​​(eg, shell et al.), Compiled class programming languages ​​(eg, C ++, Java, etc.), scripting l...

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/60
CPCG06F8/33
Inventor 王硕寰孙宇王丽杰
Owner BEIJING BAIDU NETCOM SCI & TECH CO LTD
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