Jiawei Chu

Jiawei Chu

Auto-generated profile, based on publicly available information

Jiawei Chu

School of Information Science and Technique, Nantong University, Nantong 226019, China

Research Focus & Metrics

Academic Career Length

5Years (2022-Present)

(Calculated once Scilit publication data is synced: current year − year of first publication + 1)

Representative Publications

View All Publications
29 September 2022 in Scientific Programming
Verified
Journal Article
Open access
PDF file
WWWanzhi Wen
Wanzhi Wen
JCJiawei Chu
Jiawei Chu
TZTian Zhao
Tian Zhao
RZRuinian Zhang
Ruinian Zhang
BZBao Zhi
Bao Zhi
CSChenqiang Shen
Chenqiang Shen
Source code comments can improve the efficiency of software development and maintenance. However, due to the heterogeneity of natural language and program language, the quality of code comments is not so high. So, this paper proposes a novel method Code2tree, which is based on the encoder-decoder model to automatically generate Java code comments. Code2tree firstly converts Java source code into abstract syntax tree (AST) sequences, and then the AST sequences are encoded by GRU encoder to solve the long sequence learning dependency problem. Finally, the attention mechanism is introduced in the decoding stage, and the quality of the code comment is improved by increasing the weight of the key information. We use the open dataset java-small to train the model and verify the effectiveness of Code2tree based on common-used indicators BLEU and F1-Score.