PTM-APIRec: Leveraging Pre-trained Models of Source Code in API Recommendation

计算机科学 代码段 源代码 编码(集合论) 编码(社会科学) 编码 Android(操作系统) 软件 情报检索 程序设计语言 人工智能 软件工程 操作系统 集合(抽象数据类型) 化学 统计 基因 生物化学 数学
作者
Zhihao Li,Chuanyi Li,Ze Tang,Wanhong Huang,Jidong Ge,Bin Luo,Vincent Ng,Ting Wang,Yucheng Hu,Xiaopeng Zhang
出处
期刊:ACM Transactions on Software Engineering and Methodology [Association for Computing Machinery]
标识
DOI:10.1145/3632745
摘要

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 paper proposes to utilize the code understanding ability of existing general code P re- T raining M odels to fully encode the input code snippet to improve the accuracy of API Rec ommendation, namely, PTM-APIRec . To ensure that the code semantics of the input are fully understood and the API recommended actually exists, we use separate vocabularies for the input code snippet and the APIs to be predicted. The experimental results on the JDK and Android datasets show that PTM-APIRec surpasses existing approaches. Besides, an effective way to improve the performance of PTM-APIRec is to enhance the pre-trained model with more pre-training data (which is easier to obtain than API recommendation datasets).
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
更新
大幅提高文件上传限制,最高150M (2024-4-1)

科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
sisea完成签到 ,获得积分10
2秒前
Tschanch完成签到 ,获得积分10
5秒前
9秒前
9秒前
17秒前
燊燊完成签到 ,获得积分10
19秒前
靓丽雨梅完成签到 ,获得积分10
27秒前
horobi完成签到 ,获得积分10
28秒前
研友_GZ3zRn完成签到 ,获得积分0
32秒前
按照国际惯例完成签到 ,获得积分10
40秒前
吲哚完成签到 ,获得积分10
40秒前
香妃发布了新的文献求助10
40秒前
笨笨忘幽完成签到,获得积分10
42秒前
珊珊完成签到,获得积分20
51秒前
CLTTT完成签到,获得积分10
57秒前
加减乘除完成签到 ,获得积分10
1分钟前
在下诸葛完成签到 ,获得积分10
1分钟前
明亮的代灵完成签到 ,获得积分10
1分钟前
你要学好完成签到 ,获得积分10
1分钟前
xianyaoz完成签到 ,获得积分10
1分钟前
江泽应助liguanyu1078采纳,获得10
1分钟前
zhdjj完成签到 ,获得积分10
1分钟前
研友_LOqqmZ完成签到 ,获得积分10
1分钟前
老甘完成签到 ,获得积分0
1分钟前
1分钟前
开心夏旋完成签到 ,获得积分10
1分钟前
lilylwy完成签到 ,获得积分10
1分钟前
YYS发布了新的文献求助10
1分钟前
个性小海豚完成签到 ,获得积分10
1分钟前
平常从蓉完成签到,获得积分10
1分钟前
liguanyu1078完成签到,获得积分10
1分钟前
苏青舟完成签到 ,获得积分10
1分钟前
1分钟前
1分钟前
feloys应助超级千青采纳,获得30
2分钟前
舒月一笑完成签到 ,获得积分10
2分钟前
明朗完成签到 ,获得积分10
2分钟前
键盘车神完成签到 ,获得积分10
2分钟前
超级千青完成签到,获得积分10
2分钟前
娜na完成签到 ,获得积分10
2分钟前
高分求助中
Teaching Social and Emotional Learning in Physical Education 900
Plesiosaur extinction cycles; events that mark the beginning, middle and end of the Cretaceous 500
Two-sample Mendelian randomization analysis reveals causal relationships between blood lipids and venous thromboembolism 500
Chinese-English Translation Lexicon Version 3.0 500
[Lambert-Eaton syndrome without calcium channel autoantibodies] 440
薩提亞模式團體方案對青年情侶輔導效果之研究 400
3X3 Basketball: Everything You Need to Know 310
热门求助领域 (近24小时)
化学 材料科学 医学 生物 有机化学 工程类 生物化学 纳米技术 物理 内科学 计算机科学 化学工程 复合材料 遗传学 基因 物理化学 催化作用 电极 光电子学 量子力学
热门帖子
关注 科研通微信公众号,转发送积分 2387601
求助须知:如何正确求助?哪些是违规求助? 2093987
关于积分的说明 5270110
捐赠科研通 1820763
什么是DOI,文献DOI怎么找? 908273
版权声明 559267
科研通“疑难数据库(出版商)”最低求助积分说明 485216