Deep API learning

计算机科学 人工智能 情报检索 背景(考古学) 序列(生物学) 编码器 自然语言 自然语言处理 解析 语义学(计算机科学) 程序设计语言 遗传学 生物 操作系统 古生物学
作者
Xiaodong Gu,Hongyu Zhang,Dongmei Zhang,Sunghun Kim
标识
DOI:10.1145/2950290.2950334
摘要

Developers often wonder how to implement a certain functionality (e.g., how to parse XML files) using APIs. Obtaining an API usage sequence based on an API-related natural language query is very helpful in this regard. Given a query, existing approaches utilize information retrieval models to search for matching API sequences. These approaches treat queries and APIs as bags-of-words and lack a deep understanding of the semantics of the query. We propose DeepAPI, a deep learning based approach to generate API usage sequences for a given natural language query. Instead of a bag-of-words assumption, it learns the sequence of words in a query and the sequence of associated APIs. DeepAPI adapts a neural language model named RNN Encoder-Decoder. It encodes a word sequence (user query) into a fixed-length context vector, and generates an API sequence based on the context vector. We also augment the RNN Encoder-Decoder by considering the importance of individual APIs. We empirically evaluate our approach with more than 7 million annotated code snippets collected from GitHub. The results show that our approach generates largely accurate API sequences and outperforms the related approaches.

科研通智能强力驱动
Strongly Powered by AbleSci AI
更新
PDF的下载单位、IP信息已删除 (2025-6-4)

科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
xuerkk发布了新的文献求助10
刚刚
Zx_1993应助Bin_Liu采纳,获得10
刚刚
落尘府完成签到,获得积分10
1秒前
1秒前
霸王宝宝蛋完成签到,获得积分10
1秒前
沉默的钻石完成签到,获得积分10
2秒前
ping完成签到,获得积分10
3秒前
周周发布了新的文献求助10
3秒前
3秒前
3秒前
小宋娘亲完成签到 ,获得积分10
4秒前
大个应助君克渡采纳,获得10
4秒前
李鱼丸完成签到,获得积分10
5秒前
无花果应助兔子里的乌龟采纳,获得10
5秒前
xuxuh1989完成签到 ,获得积分10
5秒前
5秒前
Jasper应助sjc采纳,获得10
6秒前
爪爪发布了新的文献求助10
6秒前
耶耶耶完成签到 ,获得积分0
6秒前
银角大王完成签到,获得积分10
7秒前
Dean完成签到,获得积分0
8秒前
Umair发布了新的文献求助10
8秒前
无机盐发布了新的文献求助10
8秒前
Winston_zhang完成签到,获得积分10
9秒前
量子星尘发布了新的文献求助10
9秒前
yuan发布了新的文献求助10
10秒前
清图完成签到,获得积分10
10秒前
10秒前
Xltox完成签到,获得积分10
11秒前
11秒前
11秒前
www完成签到 ,获得积分0
11秒前
wanci应助zorro3574采纳,获得10
13秒前
13秒前
无机盐完成签到,获得积分10
13秒前
老实善愁完成签到,获得积分10
14秒前
14秒前
科研小白完成签到 ,获得积分10
14秒前
不安遥完成签到 ,获得积分10
14秒前
Binning完成签到,获得积分10
15秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Encyclopedia of Agriculture and Food Systems Third Edition 2000
Clinical Microbiology Procedures Handbook, Multi-Volume, 5th Edition 临床微生物学程序手册,多卷,第5版 2000
人脑智能与人工智能 1000
King Tyrant 720
Silicon in Organic, Organometallic, and Polymer Chemistry 500
Principles of Plasma Discharges and Materials Processing, 3rd Edition 400
热门求助领域 (近24小时)
化学 材料科学 生物 医学 工程类 计算机科学 有机化学 物理 生物化学 纳米技术 复合材料 内科学 化学工程 人工智能 催化作用 遗传学 数学 基因 量子力学 物理化学
热门帖子
关注 科研通微信公众号,转发送积分 5600162
求助须知:如何正确求助?哪些是违规求助? 4685844
关于积分的说明 14840076
捐赠科研通 4675267
什么是DOI,文献DOI怎么找? 2538559
邀请新用户注册赠送积分活动 1505668
关于科研通互助平台的介绍 1471141