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
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
晁子枫发布了新的文献求助10
刚刚
粉红豹发布了新的文献求助30
刚刚
gm发布了新的文献求助10
刚刚
abc发布了新的文献求助10
1秒前
1秒前
123完成签到,获得积分10
1秒前
顾矜应助豆瓣酱采纳,获得30
2秒前
zhonyi完成签到 ,获得积分10
2秒前
li完成签到,获得积分10
2秒前
科研通AI6.4应助dido采纳,获得10
2秒前
深情安青应助ZHXR采纳,获得10
2秒前
weixia应助shw采纳,获得10
2秒前
3秒前
yanjiusheng发布了新的文献求助10
3秒前
3秒前
4秒前
今后应助panpan采纳,获得10
4秒前
5秒前
5秒前
Soul完成签到 ,获得积分10
5秒前
weixia应助gm采纳,获得10
6秒前
helloworld发布了新的文献求助10
6秒前
彪壮的雪晴完成签到,获得积分10
6秒前
暖暖完成签到,获得积分10
7秒前
思源应助矮小的夕阳采纳,获得10
7秒前
珍妮发布了新的文献求助10
7秒前
17发布了新的文献求助10
7秒前
追梦发布了新的文献求助10
7秒前
8秒前
8秒前
8秒前
木子李发布了新的文献求助30
9秒前
9秒前
xingyuwuhen007完成签到,获得积分10
9秒前
9秒前
9秒前
温暖雅山完成签到,获得积分10
9秒前
刘梦圆发布了新的文献求助10
10秒前
英俊的铭应助超人不会飞采纳,获得10
10秒前
秭归完成签到,获得积分10
10秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Nondestructive Testing Handbook: Vol. 4, Thermal and Infrared Testing (IR), 4th ed 800
作者名:Kristopher P. Plain,悉尼大学的,目前只能查到其四篇论文,想找到其博士论文 590
Évora na Idade Média 555
Soil mites of the family Rhagidiidae (Actinedida: Eupodoidea). Morphology, Systematics, Ecology 520
Matrix Methods in Data Mining and Pattern Recognition Second Edition 510
Stratospheric Ozone: A Textbook 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 内科学 物理 复合材料 催化作用 细胞生物学 无机化学 光电子学 物理化学 电极 基因
热门帖子
关注 科研通微信公众号,转发送积分 7358205
求助须知:如何正确求助?哪些是违规求助? 8968656
关于积分的说明 19058914
捐赠科研通 7005411
什么是DOI,文献DOI怎么找? 3222545
关于科研通互助平台的介绍 2386709
邀请新用户注册赠送积分活动 2203250