Summarizing Source Code with Transferred API Knowledge
Xing Hu, Ge Li, Xin Xia et al. · International Joint Conference on Artificial Intelligence · 2018
Code summarization, aiming to generate succinct natural language description of source code, is extremely useful for code search and code comprehension. It has played an important role in software maintenance and evolution. Previous approaches generate summaries by retrieving summaries from similar code snippets. However, these approaches heavily rely on whether similar code snippets can be retrieved, how similar the snippets are, and fail to capture the API knowledge in the source code, which carries vital information about the functionality of the source code. In this paper, we propose a novel approach, named TL-CodeSum, which successfully uses API knowledge learned in a different but related task to code summarization. Experiments on large-scale real-world industry Java projects indicate that our approach is effective and outperforms the state-of-the-art in code summarization.
Cited by 263 works. doi:10.24963/ijcai.2018/314 Open-access PDF
Authors
References
- BLEU
- Sequence to Sequence Learning with Neural Networks
- Learning Phrase Representations using RNN Encoder–Decoder for Statistical Machine Translation
- A Survey on Transfer Learning
- Neural Machine Translation by Jointly Learning to Align and Translate
- A Neural Attention Model for Abstractive Sentence Summarization
- Meteor Universal: Language Specific Translation Evaluation for Any Target Language
- On the naturalness of software
- Summarizing Source Code using a Neural Attention Model
- Bimodal Modelling of Source Code and Natural Language