Learning to Generate Pseudo-Code from Source Code Using Statistical Machine Translation

计算机科学 冗余代码 源代码 无法访问的代码 程序设计语言 KPI驱动的代码分析 无效代码 Python(编程语言) 系统代码 代码生成 目标代码 编码(集合论) 恒定重量代码 通用代码 静态程序分析 自然语言处理 算法 软件 软件开发 编码速率 解码方法 线性码 操作系统 集合(抽象数据类型) 区块代码 钥匙(锁)
作者
Yusuke Oda,Hiroyuki Fudaba,Graham Neubig,Hideaki Hata,Sakriani Sakti,Tomoki Toda,Satoshi Nakamura
标识
DOI:10.1109/ase.2015.36
摘要

Pseudo-code written in natural language can aid the comprehension of source code in unfamiliar programming languages. However, the great majority of source code has no corresponding pseudo-code, because pseudo-code is redundant and laborious to create. If pseudo-code could be generated automatically and instantly from given source code, we could allow for on-demand production of pseudo-code without human effort. In this paper, we propose a method to automatically generate pseudo-code from source code, specifically adopting the statistical machine translation (SMT) framework. SMT, which was originally designed to translate between two natural languages, allows us to automatically learn the relationship between source code/pseudo-code pairs, making it possible to create a pseudo-code generator with less human effort. In experiments, we generated English or Japanese pseudo-code from Python statements using SMT, and find that the generated pseudo-code is largely accurate, and aids code understanding.
最长约 10秒,即可获得该文献文件

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

科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
1秒前
盛夏完成签到,获得积分10
1秒前
qianlan发布了新的文献求助10
1秒前
paper发布了新的文献求助50
1秒前
阿斯特雷加完成签到,获得积分20
3秒前
bofu发布了新的文献求助10
3秒前
3秒前
emmm发布了新的文献求助10
5秒前
博修发布了新的文献求助10
6秒前
7秒前
流浪完成签到,获得积分10
7秒前
8秒前
qianlan完成签到,获得积分10
8秒前
副本完成签到 ,获得积分10
8秒前
云雨完成签到 ,获得积分10
9秒前
bofu发布了新的文献求助10
9秒前
run发布了新的文献求助10
10秒前
不如看海发布了新的文献求助10
12秒前
dreamwalk完成签到 ,获得积分10
13秒前
田様应助yuting采纳,获得10
15秒前
科研通AI2S应助博修采纳,获得10
15秒前
bofu发布了新的文献求助10
15秒前
16秒前
星辰大海应助大号安全蛋采纳,获得10
17秒前
万能图书馆应助郑郑得富采纳,获得10
18秒前
bofu发布了新的文献求助10
20秒前
21秒前
22秒前
23秒前
paper完成签到,获得积分10
23秒前
Jinna706完成签到,获得积分10
24秒前
量子星尘发布了新的文献求助10
25秒前
健忘惜海发布了新的文献求助10
25秒前
bofu发布了新的文献求助10
26秒前
26秒前
Liang发布了新的文献求助20
27秒前
陈最完成签到,获得积分10
27秒前
28秒前
28秒前
run完成签到,获得积分10
29秒前
高分求助中
Ophthalmic Equipment Market by Devices(surgical: vitreorentinal,IOLs,OVDs,contact lens,RGP lens,backflush,diagnostic&monitoring:OCT,actorefractor,keratometer,tonometer,ophthalmoscpe,OVD), End User,Buying Criteria-Global Forecast to2029 2000
A new approach to the extrapolation of accelerated life test data 1000
Cognitive Neuroscience: The Biology of the Mind 1000
Cognitive Neuroscience: The Biology of the Mind (Sixth Edition) 1000
ACSM’s Guidelines for Exercise Testing and Prescription, 12th edition 588
Christian Women in Chinese Society: The Anglican Story 500
A Preliminary Study on Correlation Between Independent Components of Facial Thermal Images and Subjective Assessment of Chronic Stress 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 工程类 有机化学 生物化学 物理 内科学 纳米技术 计算机科学 化学工程 复合材料 遗传学 基因 物理化学 催化作用 冶金 细胞生物学 免疫学
热门帖子
关注 科研通微信公众号,转发送积分 3961041
求助须知:如何正确求助?哪些是违规求助? 3507280
关于积分的说明 11135306
捐赠科研通 3239705
什么是DOI,文献DOI怎么找? 1790347
邀请新用户注册赠送积分活动 872359
科研通“疑难数据库(出版商)”最低求助积分说明 803150