ACM Transactions on Software Engineering and Methodology ( IF 4.4 ) Pub Date : 2024-03-15 , DOI: 10.1145/3632745 Zhihao Li 1 , Chuanyi Li 1 , Ze Tang 1 , Wanhong Huang 1 , Jidong Ge 1 , Bin Luo 1 , Vincent Ng 2 , Ting Wang 3 , Yucheng Hu 3 , Xiaopeng Zhang 3
Recommending APIs is a practical and essential feature of IDEs. Improving the accuracy of API recommendations is an effective way to improve coding efficiency. With the success of deep learning in software engineering, the state-of-the-art (SOTA) performance of API recommendation is also achieved by deep-learning-based approaches. However, existing SOTAs either only consider the API sequences in the code snippets or rely on complex operations for extracting hand-crafted features, all of which have potential risks in under-encoding the input code snippets and further resulting in sub-optimal recommendation performance. To this end, this article proposes to utilize the code understanding ability of existing general code
中文翻译:
PTM-APIRec:在 API 推荐中利用源代码的预训练模型
推荐API是IDE的一个实用且必不可少的功能。提高API推荐的准确性是提高编码效率的有效途径。随着深度学习在软件工程中的成功,基于深度学习的方法也实现了 API 推荐的最先进(SOTA)性能。然而,现有的 SOTA 要么只考虑代码片段中的 API 序列,要么依赖复杂的操作来提取手工制作的特征,所有这些都存在对输入代码片段编码不足并进一步导致推荐性能次优的潜在风险。为此,本文提出利用现有通用代码的代码理解能力