Deep code comment generation
Xing Hu, Ge Li, Xin Xia et al. · 2018
During software maintenance, code comments help developers comprehend programs and reduce additional time spent on reading and navigating source code. Unfortunately, these comments are often mismatched, missing or outdated in the software projects. Developers have to infer the functionality from the source code. This paper proposes a new approach named DeepCom to automatically generate code comments for Java methods. The generated comments aim to help developers understand the functionality of Java methods. DeepCom applies Natural Language Processing (NLP) techniques to learn from a large code corpus and generates comments from learned features. We use a deep neural network that analyzes structural information of Java methods for better comments generation. We conduct experiments on a large-scale Java corpus built from 9,714 open source projects from GitHub. We evaluate the experimental results on a machine translation metric. Experimental results demonstrate that our method DeepCom outperforms the state-of-the-art by a substantial margin.
Cited by 621 works. doi:10.1145/3196321.3196334
Authors
References
- Long Short-Term Memory
- BLEU
- Sequence to Sequence Learning with Neural Networks
- Empirical Evaluation of Gated Recurrent Neural Networks on Sequence Modeling
- Google's Neural Machine Translation System: Bridging the Gap between Human and Machine Translation
- A Neural Attention Model for Abstractive Sentence Summarization
- A Neural Conversational Model
- OpenNMT: Open-Source Toolkit for Neural Machine Translation
- Google’s Multilingual Neural Machine Translation System: Enabling Zero-Shot Translation
- On the naturalness of software