Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A construction method and code generation method of a software project natural language programming interface nli

A technology of natural language and software projects, applied in the field of automatic construction of natural language programming interfaces of software projects, which can solve the problems of development tasks and API function abstraction level gap, spending a lot of time and energy, etc.

Active Publication Date: 2021-03-12
PEKING UNIV
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Developers often encounter two types of problems: (1) There is a gap in the level of abstraction between development tasks and API functions
This process takes a lot of time and effort from developers, especially for developers new to programming and unfamiliar with the codebase

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 construction method and code generation method of a software project natural language programming interface nli
  • A construction method and code generation method of a software project natural language programming interface nli

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0043] In order to make the above-mentioned features and advantages of the present invention more obvious and understandable, the specific examples below are described in detail as follows:

[0044] POI is a well-known open source software project in the Apache community. Table 2 presents a list of 30 functional features of this software project. These functional feature descriptions in the form of verb-object phrases come from POI’s official documents, and each feature has a corresponding API call mode.

[0045] Table 2 The 30 functional features in the software project Apache POI

[0046] Features illustrate create a new HSSF workbook Create a workbook in HSSF format create a cell block for a sheet Create a block of cells in a table create an image in a sheet Create an image in the form create a shape in a sheet Create a graph in a table create a textbox in sheet Create a textbox in the form fit sheet to one page Resize ...

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 construction method and a code generation method of a software project natural language programming interface NLI. The code generation method comprises the following steps: 1) packaging each (functional feature-API call mode) of a software project into a primitive in an NLI, wherein the primitive comprises functional feature description of the primitive, an API call mode,an object parameter and other parameters; 2) determining an abstract syntax tree node type corresponding to the primitive; wherein a child node and an attribute owned by the node of the type are specified in each node type; after all child nodes and attributes of the nodes are bound with corresponding Java code text areas, generating an abstract syntax tree of codes by a projection editor in theNLI primitive parameter complementation process; and 3) starting from the root node of the abstract syntax tree, recursively converting each node, inserting the attributes and child nodes in the nodesof the abstract syntax tree into the vacant parts in the API calling mode, and finally generating Java codes corresponding to the primitives.

Description

technical field [0001] The invention relates to a method for automatically constructing a natural language programming interface (Natural Language Interface, NLI) of a software item and a code generation method based on the NLI, belonging to the technical field of computer software. Background technique [0002] The rapid development of open source software has accumulated a large number of reusable resources for software reuse, which has greatly increased the proportion of reuse in the development process, supporting and promoting the development of software reuse. During the development process, software developers often need to reuse the existing code library / software project, and use the programming interface (Application Programming Interface, API) provided by it to complete the development task coding. [0003] In the process of software reuse based on API, although the object of reuse is software API, the actual development task revolves around the software functions ...

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/41
CPCG06F8/31G06F8/427
Inventor 邹艳珍伍仕骏沈琦谢冰
Owner PEKING UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products