Method for recommending API (Application Program Interface) according to natural language description

A natural language and method call technology, applied in the field of recommending APIs based on natural language descriptions, can solve problems such as ambiguity, uneven quality of API documents, inaccurate descriptions, etc., and achieve good recommendation effects and effective recommendation methods

Pending Publication Date: 2022-04-15
上海沄熹科技有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The quality of API documents is uneven. It takes a lot of time to write documents, and it is difficult to maintain them in real time. It is easy to have problems such as document lag, inaccurate description, and ambiguity.
In addition, the functional requirements of developers are often abstract and extensive, while the functional description of the API in the API documentation is usually more specific, and it takes a lot of time to consult the documentation.

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 for recommending API (Application Program Interface) according to natural language description
  • Method for recommending API (Application Program Interface) according to natural language description

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0040] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work belong to the protection of the present invention. scope.

[0041] Due to the continuous development of the software library, the update and iteration speed of the API is very fast, and the API will also be obsolete. There is also competition among third-party APIs with similar functions. Before choosing a third-party API, developers need to combine functions, convenience, Comprehensive consideration of stabilit...

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 provides a method for recommending an API (Application Program Interface) according to natural language description, which belongs to the field of software engineering and comprises the following steps: crawling and analyzing a large number of Java open source projects on Giitub, mining an API use mode through hierarchical clustering, realizing an API recommendation system based on natural language query, and recommending an API method required for realizing a function according to an input natural language text described by the function.

Description

technical field [0001] The invention relates to the field of software engineering, in particular to a method for describing and recommending APIs based on natural language. Background technique [0002] API is widely used in modern software development. Calling API is one of the important ways for developers to quickly build software and improve development efficiency. With the development of the software industry and the expansion of software scale, software engineering is becoming more and more complex, and the number of third-party libraries is also increasing day by day. They provide a large number of APIs that can be called to help developers simplify the development process. But there are also disadvantages that come with it. It is almost impossible for developers to fully understand these numerous third-party APIs, and it is difficult to make a choice based on their own experience. According to the survey, developers have obstacles in the process of using API documen...

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
IPC IPC(8): G06F8/36G06F9/448G06F16/951G06K9/62
Inventor 王耀龙
Owner 上海沄熹科技有限公司
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