arrow
返回

Stepwise API usage assistance using n-gram language models

delete2017-09-01
delete6
delete
OA
AI
A
André L. Santos *
G
Gonçalo Prendi
H
Hugo Sousa
R
Ricardo Ribeiro
DOI:10.1016/j.jss.2016.06.063delete
delete原文链接
delete分享
delete收藏
查看原文
摘要

摘要

En 中文
Reusing software involves learning third-party APIs, a process that is often time-consuming and error prone. Recommendation systems for API usage assistance based on statistical models built from source code corpora are capable of assisting API users through code completion mechanisms in IDEs. A valid sequence of API calls involving different types may be regarded as a well-formed sentence of tokens from the API vocabulary. In this article we describe an approach for recommending subsequent tokens to complete API sentences using n-gram language models built from source code corpora. The provided system was integrated in the code completion facilities of the Eclipse IDE, providing contextualized completion proposals for Java taking into account the nearest lines of code. The approach was evaluated against existing client code of four widely used APIs, revealing that in more than 90% of the cases the expected subsequent token is within the 10-top-most proposals of our models. The high score provides evidence that the recommendations could help on API learning and exploration, namely through the assistance on writing valid API sentences. (C) 2016 Elsevier Inc. All rights reserved.
Keyword:
API
Usability
N-grams
Code completion
IDE
AI总结

AI总结

对已上传原文的论文进行重点信息的提取,主要内容包括:简要概述、研究摘要、背景介绍、关键亮点、图文解析、展望与总结。

期刊

Journal of Systems and Software 封面图
Journal of Systems and Software
IF:
4.1
论文数:
5.4K
被引数:
8.4K

机构

I
instituto universitario de lisboa
学者数:
1.6K
论文数: 1.8K
被引数: 2
引用论文

引用论文

Discriminative n-gram language modeling
err2007-04-01
err135
PREAI
errRoark, Brian; Saraclar, Murat; Collins, Michael
err分享
err收藏
Natural and Synthetic Modulators of the TRPM7 Channel
err2014-11-27
err0
errOAAI
errVladimir Chubanov; Sebastian Schäfer; Silvia Ferioli; Thomas Gudermann
err分享
err收藏
err分享
err收藏
A field study of API learning obstacles
err2010-12-14
err260
PREAI
errRobillard, Martin P.; DeLine, Robert
err分享
err收藏
Recommender systems survey
err2013-07-01
err2.2K
PREAI
errBobadilla, J.; Ortega, F.; Hernando, A.; Gutierrez, A.
err分享
err收藏
Improving API Usability
err2016-05-23
err124
errOAAI
errMyers, Brad A.; Stylos, Jeffrey
err分享
err收藏
Automated API Property Inference Techniques自动化API属性推理技术
err2013-05-01
err144
errOAAI
errRobillard, Martin P.; Bodden, Eric; Kawrykow, David; Mezini, Mira; Ratchford, Tristan
err分享
err收藏
没有更多内容