arrow
Return

SeCNN: A semantic CNN parser for code comment generation

delete2021-11-01
delete30
PRE
AI
李征 (Zheng Li)
Y
Yonghao Wu
宾朋 (Bin Peng)
陈翔 cover
陈翔 (Xiang Chen)
Z
Zeyu Sun *
Y
Yong Liu *
D
Deli Yu
DOI:10.1016/j.jss.2021.111036delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
A code comment generation system can summarize the semantic information of source code and generate a natural language description, which can help developers comprehend programs and reduce time cost spent during software maintenance. Most of state-of-the-art approaches use RNN (Recurrent Neural Network)-based encoder-decoder neural networks. However, this kind of method may not generate high-quality description when summarizing the information among several code blocks that are far from each other (i.e., the long-dependency problem). In this paper, we propose a novel Semantic CNN parser SeCNN for code comment generation. In particular, we use a CNN (Convolutional Neural Network) to alleviate the long-dependency problem and design several novel components, including source code-based CNN and AST-based CNN, to capture the semantic information of the source code. The evaluation is conducted on a widely-used large-scale dataset of 87,136 Java methods. Experimental results show that SeCNN achieves better performance (i.e., 44.69% in terms of BLEU and 26.88% in terms of METEOR) and has lower execution time cost when compared with five state-of-the-art baselines. (C) 2021 Elsevier Inc. All rights reserved.
Keywords:
Program comprehension
Code comment generation
Convolutional Neural Network
Long short-term memory network
AI Summary

AI Summary

Key information extracted from the uploaded paper, including a brief overview, abstract, background, key highlights, visual analysis, and future outlook.

Journal

Journal of Systems and Software cover
Journal of Systems and Software
IF:
4.1
Papers:
5.4K
Citations:
8.4K

Organization

B
Beijing University of Chemical Technology
Scholars:
3.1W
Papers: 2.2W
Citations: 4.5W
P
peking university
Scholars:
11.7W
Papers: 8.7W
Citations: 146
N
Nantong University
Scholars:
1.9W
Papers: 1.1W
Citations: 2.0W
researcher View more organizations