arrow
返回

Fitting missing API puzzles with machine translation techniques

delete2023-04-01
delete4
PRE
AI
P
Phuong T. Nguyen
C
Claudio Di Sipio
J
Juri Di Rocco
D
Davide Di Ruscio *
M
Massimiliano Di Penta
DOI:10.1016/j.eswa.2022.119477delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
While implementing software projects, developers do not reinvent the wheel but try to reuse existing API calls and source code. In recent years, the problems related to recommending APIs and code snippets have been intensively investigated. Although current approaches have achieved encouraging performance, there is still the need to improve the recommendation process's effectiveness and efficiency. In this work, we reformulate the problem of API recommendations by proposing learning and recommending API sequences relevant to a given coding context. We present LUPE, a novel approach to API and code recommendation, exploiting cutting-edge deep learning techniques. Thanks to the underlying Encoder-Decoder architecture specialized in transforming sequences, LUPE can effectively learn the order in which invocations occur. The approach has been evaluated on two Android datasets and compared with GAPI and FACER, two state-of-the-art API recommender systems. Being fed with augmented training data, our conceived approach can obtain a high prediction accuracy, and produce a perfect match in several cases, hence outperforming the baselines.
Keyword:
API recommendation
Source code recommendation
Encoder-Decoder LSTM
Machine translation

期刊

Expert Systems with Applications 封面图
Expert Systems with Applications
IF:
7.5
论文数:
3.0W
被引数:
10.2W

机构

University of LAquila 封面图
University of LAquila
学者数:
7.4K
论文数: 6.6K
被引数: 6.7K
University of Sannio 封面图
University of Sannio
学者数:
2.3K
论文数: 2.2K
被引数: 2.3K
引用论文

引用论文

Intelligent Code Completion with Bayesian Networks
err2015-12-02
err54
PREAI
errProksch, Sebastian; Lerch, Johannes; Mezini, Mira
err分享
err收藏
The 2.6 Angstrom Crystal Structure of a Human A2AAdenosine Receptor Bound to an Antagonist
err2008-11-21
err0
errOAAI
errVeli-Pekka Jaakola; Mark T. Griffith; Michael A. Hanson; Vadim Cherezov; Ellen Y. T. Chien; J. Robert Lane; Adriaan P. IJzerman; Raymond C. Stevens
err分享
err收藏
SequenceR: Sequence-to-Sequence Learning for End-to-End Program RepairSequenceR: 用于端到端程序修复的序列到序列学习
err2021-01-01
err217
errOAAI
errChen, Zimin; Kommrusch, Steve; Tufano, Michele; Pouchet, Louis-Noel; Poshyvanyk, Denys; Monperrus, Martin
err分享
err收藏
学者 查看更多内容