A method and deviceapparatus for generating codes

A technology for generating code and source code, applied in the field of generating code, it can solve the problems of high cost of getting started, difficulty in popularizing programming technology, and spending a lot of time, so as to reduce the cost of getting started.

Active Publication Date: 2019-04-12
BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF4 Cites 10 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
  • A method and deviceapparatus for generating codes
  • A method and deviceapparatus for generating codes
  • A method and deviceapparatus for generating codes

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] The application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain related inventions, rather than to limit the invention. It should also be noted that, for the convenience of description, only the parts related to the related invention are shown in the drawings.

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

[0034] figure 1 An exemplary system architecture 100 is shown to which embodiments of a method for generating code, a method for converting code, an apparatus for generating code or an apparatus for converting code of the present application may be applied.

[0035] like fi...

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 invention discloses a method and device for generating codes. A specific embodiment of the method comprises the steps of obtaining an input statement submitted by a user, whereinthe input statement is a command statement described in a natural language; S; selecting a statement described by a natural language as input and a statement described by a target programming language as output to generate a code statement generation model; A; and inputting the input statement into the code statement generation model to obtain a code statement which corresponds to semanteme of the input statement and is described in a target programming language. According to the embodiment, a natural language interaction programming technology can be constructed, so that a person who does not know programming language details can write a program by using a common natural language, and the programming cost is reduced.

Description

technical field [0001] The embodiments of the present application relate to the field of computer technology, and in particular to a method and device for generating codes. Background technique [0002] Programming refers to the process of letting the computer solve a certain problem on its behalf, specifying a certain calculation method for a certain computing system, making the computing system operate according to the calculation method, and finally obtaining the corresponding result. In order for the computer to understand human intentions, it is necessary to tell the computer the ideas, methods and means of solving the problem in a form that the computer can understand (that is, convert human intentions into program codes), so that the computer can follow human instructions step by step To go to work, to accomplish a certain task. [0003] Currently, programming languages ​​include imperative programming languages ​​(eg, SHELL, etc.), compiled programming languages ​​(...

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 Applications(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