API information retrieval method for natural language form and based on lecture note and Stack Overflow

A natural language, API-Q&A technology, applied in the field of information retrieval, can solve problems such as inability to build a knowledge item database, inability to fuse information, and irrelevant returned results

Active Publication Date: 2019-06-25
GUANGDONG UNIV OF PETROCHEMICAL TECH
View PDF8 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Not only is the retrieval method inefficient, but processing the two types of data separately may return irrelevant results
[0009] (2) The existing methods do not dig deep into the information of the semantic layer of the question, and the method based on keyword matching is likely to cause the loss of a large amount of useful information, which eventually leads to the loss of retrieval accuracy
Especially in the form of natural language, the question may not directly contain the API name, and the meth

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 information retrieval method for natural language form and based on lecture note and Stack Overflow
  • API information retrieval method for natural language form and based on lecture note and Stack Overflow
  • API information retrieval method for natural language form and based on lecture note and Stack Overflow

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0076] In order to make the object, technical solution and advantages of the present invention more clear, the present invention will be further described in detail below in conjunction with the examples. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0077] Existing methods cannot simultaneously provide developers with API-related information retrieval on two kinds of materials. Not only is the retrieval method inefficient, but processing the two types of data separately may result in irrelevant results being returned.

[0078] In prior art retrieval, the Q&A posts and APIs returned by SO need to be further screened manually.

[0079] In order to solve the above technical problems, the present invention will be described in detail below in conjunction with specific solutions.

[0080] Such as figure 1 As shown, the API-related information retrieval method ...

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 belongs to the field of information retrieval, and discloses an API information retrieval method for natural language form and based on lecture notes and Stack Overflow. The method comprises: constructing an API-KI library of API and knowledge items and performing extraction, the API-KI library comprising API and lecture segment API-segment pairs, API and question and answer sheet API-Q&A pairs; analyzing the questions in the natural language form, and obtaining potential APIs corresponding to the questions; identifying related API-KI using a relative identification mode TDML; performing potential APIs with related API-KI pair to generate a candidate list, carrying out descending sorting on the candidate list according to a sorting strategy, and finally returning the sorted API-KI list as a question answer. According to the retrieval method provided by the invention, information of API lecture and SO is integrated, the retrieval precision is effectively improved, and moreuseful API related knowledge can be provided for developers.

Description

technical field [0001] The invention belongs to the field of information retrieval, and in particular relates to an API information retrieval method based on handouts and Stack Overflow oriented to natural language. Background technique [0002] At present, the existing technologies commonly used in the industry are as follows: [0003] Most of the existing methods are based on full-text search, such as using the VSM-based Lucene full-text search engine package to search and match keywords directly in the document library based on natural language questions, and using the neural network-based Word2Vec word vector model can be very good The contextual relationship between words is mined, so the question and the document can be represented by word vectors, and then the results can be returned according to the similarity between the two. In addition, the CK method uses the conceptual knowledge of the software field in the source code to recommend API-related documents by extra...

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): G06F16/332G06F16/33G06N3/08
Inventor 荆晓远吴迪黄鹤谢宇姚永芳訾璐李云鹤
Owner GUANGDONG UNIV OF PETROCHEMICAL TECH
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