arrow
返回

A code completion approach combining pointer network and Transformer-XL network

delete2025-02-14
delete0
PRE
AI
X
Xiangping Zhang *
刘
刘建勋 (Jianxun Liu)
T
Teng Long
H
Haize Hu
DOI:10.1007/s10489-025-06315-6delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
Code completion is a crucial aspect of contemporary integrated development environments (IDEs), as it not only streamlines the software development process but also bolsters the quality of software products. By leveraging large-scale codes to learn the probability distribution among code token units, deep learning methods have demonstrated significant improvements in the accuracy of token unit recommendations. However, the efficacy of code completion employing deep learning is often compromised by information loss. To mitigate this issue, we introduce a novel code language model that incorporates both the pointer network and the Transformer-XL architecture to surpass the constraints of current approaches in code completion. Our proposed model accepts as input the original code snippet and its corresponding abstract syntax tree (AST), utilizing the Transformer-XL model as the foundational architecture for capturing long-term dependencies. Additionally, we incorporate a pointer network as an adjunct component to forecast Out-of-Vocabulary (OoV) words. Our approach has been rigorously evaluated on the authentic PY150 and JS150 datasets. The comparative experimental results demonstrate the effectiveness of our model in improving the accuracy of the code completion task at the token unit level.
Keyword:
Code completion
Transformer-XL
Pointer network
Out-of-vocabulary

期刊

Applied Intelligence 封面图
Applied Intelligence
IF:
3.5
论文数:
7.6K
被引数:
1.7W

机构

H
hunan automotive engineering vocational university
学者数:
58
论文数: 46
被引数: 0
引用论文

引用论文

Pre-eclampsia: Molecular events to biomarkers
err2017-04-01
err0
errOAAI
errKavita Sahai; Seema Saraswathy; Tribhuvan Pal Yadav; Devendra Arora; Manu Krishnan
err分享
err收藏
Intelligent Code Completion with Bayesian Networks
err2015-12-02
err54
PREAI
errProksch, Sebastian; Lerch, Johannes; Mezini, Mira
err分享
err收藏
err分享
err收藏
THE DIALECTICS OF SPATIAL ANALYSIS
err2006-05-29
err0
PREAI
errGunnar Olsson
err分享
err收藏
Comparison of sub‐ versus suprafascially raised anterolateral thigh free flaps with regard to donor‐site morbidity, function and aesthetics
err2017-11-20
err0
PREAI
errSebastian Fischer; Yannick Diehm; Christoph Hirche; Thomas Kremer; Adrien Daigeler; Ulrich Kneser; J. Frederick Hernekamp
err分享
err收藏
On the Naturalness of Software论软件的自然性
err2016-04-26
err164
PREAI
errHindle, Abram; Barr, Earl T.; Gabel, Mark; Su, Zhendong; Devanbu, Premkumar
err分享
err收藏
Growth and production of the African catfish, Clarias lazera (C. & V.)
err1983-08-01
err0
PREAI
errH. Hogendoorn; J.A.J. Jansen; W.J. Koops; M.A.M. Machiels; P.H. van Ewijk; J.P. van Hees
err分享
err收藏
学者 查看更多内容