API recommendation method based on word embedding technology

A recommendation method and technology, applied in the field of API recommendation based on word embedding technology, can solve problems such as low efficiency

A recommendation method and technology, applied in the field of API recommendation based on word embedding technology, can solve problems such as low efficiency

CN110990003AActive Publication Date: 2020-04-10南通英思贝云信息科技有限公司

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • API recommendation method based on word embedding technology
  • API recommendation method based on word embedding technology
  • API recommendation method based on word embedding technology

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0063] In order to make the technical problems, technical solutions and advantages to be solved by the present invention clearer, the following will describe in detail with reference to the drawings and specific embodiments.

[0064] The present invention provides a kind of API recommendation method based on word embedding technology, is divided into two big modules, and one of them is offline training module, and another is online recommendation module, and wherein, described offline training module comprises the following steps:

[0065] Step 1. Data collection: Collect two target data sets, one part is the API document of Java SE8, and the other part is the question-and-answer data set about Java API on Stack Overflow;

[0066] In step 1, the API document of the collected dataset Java SE8 is named DataSet_SE; the question-and-answer dataset about the Java API on StackOverflow is obtained from Stack Overflow and named DataSet_SOAPI.

[0067] Step 2. Perform data pr...

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 an API (Application Program Interface) recommendation method based on a word embedding technology, which recommends an appropriate API to developers, belongs to the technical field of code recommendation, and comprises the following steps: step 1, collecting a Java help document and a question and answer data set of a Java language on Stack Overflow; step 2, word embedding modeling is carried out through the collected data in the Stack Overflow; 3, collecting questions input by a developer through a UI interface, calculating the similarity with the target question set byusing a word model and a TF-IDF, and filtering a candidate question list by using an LSA model; and step 4, extracting subject terms through LDA, and finally obtaining API recommendation informationfrom the Java help document, so that a developer can recommend relatively accurate API information to the developer when using the method to perform API query.

Description

technical field [0001] The invention belongs to the technical field of code recommendation, in particular to an API recommendation method based on word embedding technology. Background technique [0002] With the continuous development of technology, people have increasingly rich functional requirements for software, and the structure of software presents the characteristics of complexity and large-scale. In the process of software development, program developers may face many difficult situations in software writing, such as forgetting the function of API (Application Programming Interface, application programming interface), not familiar with the return value and parameter list of an API, or wanting to know Specific implementation methods for some uncommon functions. Therefore, it is particularly important for developers to query APIs that meet development needs during the development process. [0003] When a suitable API cannot be found in the actual development process...

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
10 Apr 2020
Publication
CN110990003A
IPC
G06F8/36; G06F40/216
CPC
G06F8/36
Inventors
文万志; 张斌