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

A semantic similarity-based Java application program interface use mode recommendation method

A technology of application programming interface and semantic similarity, applied in the computer field, can solve time-consuming problems, achieve the effects of reducing programming time, improving development efficiency, and improving recommendation accuracy

Active Publication Date: 2019-04-23
NANJING UNIV OF AERONAUTICS & ASTRONAUTICS
View PDF3 Cites 21 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0010] The purpose of the present invention is to provide a method for recommending Java API usage patterns based on semantic similarity, so as to solve the problem that developers spend a lot of time in querying, learning, and understanding APIs when they encounter unfamiliar tasks in the programming process. time problem

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 semantic similarity-based Java application program interface use mode recommendation method
  • A semantic similarity-based Java application program interface use mode recommendation method
  • A semantic similarity-based Java application program interface use mode recommendation method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0043] The technical solutions and beneficial effects of the present invention will be described in detail below in conjunction with the accompanying drawings.

[0044] Such as figure 1 As shown, the present invention provides a method for recommending usage patterns of Java application program interfaces based on semantic similarity, which includes the following steps:

[0045] (1) Metadata structure extraction: Through the abstract syntax tree construction and call relationship analysis of the Java language source code in the large open source code library, one method is extracted for each method. Metadata structure of, where the stored annotation information and method signature are information after natural language processing;

[0046] (2) Application program interface usage pattern extraction: Use hierarchical clustering algorithm to define a similarity calculation rule between clusters, and use the similarity calculation rule to perform hierarchical clustering on the extract...

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 semantic similarity-based Java application program interface use mode recommendation method, which comprises the following steps of extracting the annotation information, anapplication program interface calling sequence and a method signature in a Java file in a project to form a metadata structure; using a hierarchical clustering algorithm for the metadata structure, and extracting an application program interface use mode; and based on the semantic similarity, carrying out the application program interface use mode recommendation. According to the method, the Javaapplication program interface use mode is recommended through the semantic similarity, the recommendation accuracy of the Java application program interface use mode is improved, the programming timeof developers is shortened, and the development efficiency of the developers is improved.

Description

Technical field [0001] The invention belongs to the field of computer technology, and particularly relates to a method for recommending usage patterns of Java application program interfaces based on semantic similarity. Background technique [0002] With the continuous expansion of the field of computer applications, the use of software has gradually penetrated and integrated into all parts of people's lives, and new software forms and development models continue to emerge, and its scale and number are expanding and expanding at an alarming rate. Effective reuse is an important way to improve software development efficiency and reduce development costs. Early software reuse focused on methodology. These potential reuse entities are often familiar to developers (such as internal private function libraries) or well-known The types and quantities of third-party libraries (such as application program interfaces and function libraries in JDK, etc.) are relatively limited. [0003] Howe...

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): G06F16/332G06F16/36G06F16/25
CPCY02D10/00
Inventor 周宇张云帆陶传奇张智轶李伟湋黄志球
Owner NANJING UNIV OF AERONAUTICS & ASTRONAUTICS
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