Summarizing source code with transferred API knowledge

245Citations
Citations of this article
134Readers
Mendeley users who have this article in their library.
Get full text

Abstract

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.

Cite

CITATION STYLE

APA

Hu, X., Li, G., Xia, X., Lo, D., Lu, S., & Jin, Z. (2018). Summarizing source code with transferred API knowledge. In IJCAI International Joint Conference on Artificial Intelligence (Vol. 2018-July, pp. 2269–2275). International Joint Conferences on Artificial Intelligence. https://doi.org/10.24963/ijcai.2018/314

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free