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

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

Active Publication Date: 2020-04-10
南通英思贝云信息科技有限公司
View PDF10 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] (4) Consult with experienced developers. This method is based on the fact that developers are extremely familiar with these APIs, which has a lot of subjectivity and low efficiency

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
  • 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
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/36G06F40/216
CPCG06F8/36
Inventor 文万志张斌姜文轩李喜凯顾晖李跃华
Owner 南通英思贝云信息科技有限公司
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