周宇   

Professor
Supervisor of Doctorate Candidates

MORE>
Language:English

Paper Publications

Title of Paper:Augmenting Java method comments generation with context information based on neural networks

Hits:

Affiliation of Author(s):计算机科学与技术学院/人工智能学院/软件学院

Journal:J Syst Software

Abstract: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 No.:0164-1212

Translation or Not:no

Date of Publication:2019-10-01

Co-author:Yan, Xin,xy,yangwenhua,Chen, Taolue,Huang ZhiQiu

Correspondence Author:Zhou Yu

Copyright©2018- Nanjing University of Aeronautics and Astronautics·Informationization Department(Informationization Technology Center)
Click:    MOBILE Version

Open time:..

The Last Update Time: ..