Augmenting Java method comments generation with context information based on neural networks

Augmenting Java method comments generation with context information based on neural networks
复制标题

基于神经网络的上下文信息增强 Java 方法注释生成

DOI:
10.1016/j.jss.2019.07.087
复制
发表时间:
2019-07
影响因子:
3.5
通讯作者:
Huang Zhiqiu
Huang Zhiqiu
中科院分区:
计算机科学2区
文献类型:
--
作者:
Zhou Yu;Yan Xin;Yang Wenhua;Chen Taolue;Huang Zhiqiu

文献摘要

参考文献

被引文献

相似文献

代码注释对于理解程序至关重要。在本文中,我们提出了一种新的方法ContextCC自动生成简洁的Java方法的神经网络的基础上,利用程序分析和自然语言处理技术的评论。首先,ContextCC使用程序分析技术,特别是抽象语法树分析,提取上下文信息,包括方法和它们的依赖。其次,它从上下文信息中过滤代码和注释,以基于一组预定义的模板和规则构建高质量的数据集。最后,ContextCC训练了一个基于递归神经网络的代码注释生成模型。实验是在从GitHub抓取的Java项目上进行的。我们的经验表明,上下文CC的性能优于上级国家的最先进的基线方法。
Code comments are crucial to program comprehension. In this paper, we propose a novel approach ContextCC to automatically generate concise comments for Java methods based on neural networks, leveraging techniques of program analysis and natural language processing. Firstly, ContextCC employs program analysis techniques, especially abstract syntax tree parsing, to extract context information including methods and their dependency. Secondly, it filters code and comments out of the context information to build up a high-quality data set based on a set of pre-defined templates and rules. Finally, ContextCC trains a code comment generation model based on recurrent neural networks. Experiments are conducted on Java projects crawled from GitHub. We show empirically that the performance of ContextCC is superior to state-of-the-art baseline methods.
DOI: 10.18653/v1/p16-2
发表时间: 2016
期刊: --
影响因子: --
作者:
K. Erk;Noah A. Smith
通讯作者: K. Erk;Noah A. Smith
DOI: 10.1109/tse.2018.2872971
发表时间: 2020-09
影响因子: 7.4
作者:
Yu Zhou;Changzhi Wang;Xin Yan;Taolue Chen;Sebastiano Panichella;Harald Gall
通讯作者: Harald Gall
DOI: 10.1109/icse.2017.11
发表时间: 2017-05
期刊: 2017 IEEE/ACM 39th International Conference on Software Engineering (ICSE)
影响因子: --
作者:
Yu Zhou;Ruihang Gu;Taolue Chen;Zhiqiu Huang;Sebastiano Panichella;H. Gall
通讯作者: Yu Zhou;Ruihang Gu;Taolue Chen;Zhiqiu Huang;Sebastiano Panichella;H. Gall
DOI: 10.1109/icpc.2011.28
发表时间: 2011-06
期刊: 2011 IEEE 19th International Conference on Program Comprehension
影响因子: --
作者:
G. Sridhara;L. Pollock;K. Vijay-Shanker
通讯作者: G. Sridhara;L. Pollock;K. Vijay-Shanker
DOI: 10.1145/1985441.1985471
发表时间: 2011-05
期刊: --
影响因子: --
作者:
D. Binkley;Matthew Hearn;Dawn J Lawrie
通讯作者: D. Binkley;Matthew Hearn;Dawn J Lawrie