计算机科学
标杆管理
水准点(测量)
任务(项目管理)
应用程序编程接口
推荐系统
软件
万维网
情报检索
程序设计语言
管理
大地测量学
营销
经济
业务
地理
作者
Yun Peng,Shuqing Li,Wenwei Gu,Yichen Li,Wenxuan Wang,Cuiyun Gao,Michael R. Lyu
标识
DOI:10.1109/tse.2022.3197063
摘要
Application Programming Interfaces (APIs), which encapsulate the implementation of specific functions as interfaces, greatly improve the efficiency of modern software development. As the number of APIs grows up fast nowadays, developers can hardly be familiar with all the APIs and usually need to search for appropriate APIs for usage. So lots of efforts have been devoted to improving the API recommendation task. However, it has been increasingly difficult to gauge the performance of new models due to the lack of a uniform definition of the task and a standardized benchmark. For example, some studies regard the task as a code completion problem, while others recommend relative APIs given natural language queries. To reduce the challenges and better facilitate future research, in this paper, we revisit the API recommendation task and aim at benchmarking the approaches. Specifically, the paper groups the approaches into two categories according to the task definition, i.e., query-based API recommendation and code-based API recommendation. We study 11 recently-proposed approaches along with 4 widely-used IDEs. One benchmark named APIBench is then built for the two respective categories of approaches. Based on APIBench, we distill some actionable insights and challenges for API recommendation. We also achieve some implications and directions for improving the performance of recommending APIs, including appropriate query reformulation, data source selection, low resource setting, user-defined APIs, and query-based API recommendation with usage patterns.
科研通智能强力驱动
Strongly Powered by AbleSci AI