周宇

论文成果
Augmenting Java method comments generation with context information based on neural networks

点击次数:

所属单位:计算机科学与技术学院/人工智能学院/软件学院

发表刊物:J Syst Software

摘要: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. © 2019 Elsevier Inc.

ISSN号:0164-1212

是否译文:否

发表时间:2019-10-01

合写作者:Yan, Xin,邢岩,杨文华,Chen, Taolue,黄志球

通讯作者:周宇

上一条: Analyzing APIs Documentation and Code to Detect Directive Defects

下一条: DRONE: A tool to detect and repair directive defects in Java APIs documentation

版权所有©2018- 南京航空航天大学·信息化处(信息化技术中心)

访问量:

开通时间:..

最后更新时间:..