Computer and Modernization

Previous Articles     Next Articles

An Efficient API Search Algorithm

  

  1. (1. School of Software, Shanghai Jiao Tong University, Shanghai 200240, China;

    2. Department of Computer Science and Engineering, Shanghai Jiao Tong University, Shanghai 200240, China)

  • Received:2015-11-12 Online:2016-04-14 Published:2018-09-30

Abstract:

 Software libraries become more and more complex in recent years. When working on unfamiliar fields and functions, developers often have to rely on search engine or reading API documents to develop program with right API. However, the result of traditional search engine doesn’t focus on APIs and it is not very convenient to search in API documents, which makes this process very time consuming. We proposed a new search algorithm and implemented a tool APIBook for API search. APIBook can recommend relevant APIs to users based on natural language query as well as APIs’ semantic, type, and invocation information in software libraries. Experiment shows that APIBook is more effective than traditional search model.

Key words: API, information retrieval, code recommendation, program analysis

CLC Number: