亲爱的研友该休息了!由于当前在线用户较少,发布求助请尽量完整地填写文献信息,科研通机器人24小时在线,伴您度过漫漫科研夜!身体可是革命的本钱,早点休息,好梦!

Embedding API dependency graph for neural code generation

计算机科学 依赖关系图 Python(编程语言) 嵌入 Java 程序设计语言 依赖关系(UML) 代码生成 编码器 图形 脚本语言 源代码 理论计算机科学 编码(集合论) 人工智能 软件 操作系统 集合(抽象数据类型) 计算机安全 钥匙(锁)
作者
Chen Lyu,Ruyun Wang,Hongyu Zhang,Hanwen Zhang,Songlin Hu
出处
期刊:Empirical Software Engineering [Springer Science+Business Media]
卷期号:26 (4) 被引量:5
标识
DOI:10.1007/s10664-021-09968-2
摘要

The problem of code generation from textual program descriptions has long been viewed as a grand challenge in software engineering. In recent years, many deep learning based approaches have been proposed, which can generate a sequence of code from a sequence of textual program description. However, the existing approaches ignore the global relationships among API methods, which are important for understanding the usage of APIs. In this paper, we propose to model the dependencies among API methods as an API dependency graph (ADG) and incorporate the graph embedding into a sequence-to-sequence (Seq2Seq) model. In addition to the existing encoder-decoder structure, a new module named ``embedder" is introduced. In this way, the decoder can utilize both global structural dependencies and textual program description to predict the target code. We conduct extensive code generation experiments on three public datasets and in two programming languages (Python and Java). Our proposed approach, called ADG-Seq2Seq, yields significant improvements over existing state-of-the-art methods and maintains its performance as the length of the target code increases. Extensive ablation tests show that the proposed ADG embedding is effective and outperforms the baselines.

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
15秒前
18秒前
WenChang发布了新的文献求助10
19秒前
21秒前
25秒前
matrixu完成签到,获得积分10
26秒前
我是老大应助WenChang采纳,获得10
27秒前
辰辰发布了新的文献求助10
27秒前
YMW发布了新的文献求助10
53秒前
58秒前
小豆包完成签到 ,获得积分10
1分钟前
Kao应助科研通管家采纳,获得10
1分钟前
Kao应助科研通管家采纳,获得10
1分钟前
yexu完成签到,获得积分10
1分钟前
1分钟前
Lin完成签到 ,获得积分10
1分钟前
清脆的善愁完成签到,获得积分10
1分钟前
1分钟前
温暖山晴发布了新的文献求助50
1分钟前
2分钟前
2分钟前
WenChang发布了新的文献求助10
2分钟前
2分钟前
景荆完成签到,获得积分10
2分钟前
爆米花应助简易采纳,获得10
3分钟前
万能图书馆应助redbank采纳,获得10
3分钟前
3分钟前
3分钟前
3分钟前
打打应助风移采纳,获得10
3分钟前
呆萌冰彤完成签到 ,获得积分10
3分钟前
Akim应助redbank采纳,获得30
3分钟前
东山道友完成签到 ,获得积分10
3分钟前
4分钟前
redbank发布了新的文献求助10
4分钟前
4分钟前
YU完成签到,获得积分10
4分钟前
Xee完成签到,获得积分10
4分钟前
blenx完成签到,获得积分10
4分钟前
4分钟前
高分求助中
Principles of Economics, 11th Edition 10000
University Physics with Modern Physics, 16th edition 10000
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Gründe der Seele:Die Wiener Psychatrie im 20.Jahrhundert 1000
Development of a Bridge Weigh-In-Motion System: A technology to convert the bridge response to the passage of traffic into data on vehicle configurations, speeds, times of travel and weights 1000
Organic Reactions, Volume 116 1000
Current concepts in cutaneous toxicity : proceedings of the Fourth Conference on Cutaneous Toxicity, Washington, D.C., May 9-11, 1979 1000
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 内科学 物理 复合材料 催化作用 细胞生物学 无机化学 光电子学 物理化学 电极 基因
热门帖子
关注 科研通微信公众号,转发送积分 7269560
求助须知:如何正确求助?哪些是违规求助? 8890018
关于积分的说明 18793112
捐赠科研通 6945324
什么是DOI,文献DOI怎么找? 3203662
关于科研通互助平台的介绍 2376479
邀请新用户注册赠送积分活动 2179554