Skip to main content
Article
Summarizing source code with transferred API knowledge
Proceedings of the Twenty-Seventh International Joint Conference on Artificial Intelli-gence (IJCAI 2018), Stockholm, Sweden, 2018 July 13-19
  • Xing HU
  • Ge LI
  • Xin XIA
  • David LO, Singapore Management University
  • Shuai LU
  • Zhi JIN
Publication Type
Conference Proceeding Article
Version
publishedVersion
Publication Date
7-2018
Abstract

Code summarization, aiming to generate succinctnatural language description of source code, is extremely useful for code search and code comprehension. It has played an important role in softwaremaintenance and evolution. Previous approachesgenerate summaries by retrieving summaries fromsimilar code snippets. However, these approachesheavily rely on whether similar code snippets canbe retrieved, how similar the snippets are, and failto capture the API knowledge in the source code,which carries vital information about the functionality of the source code. In this paper, we propose anovel 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 Javaprojects indicate that our approach is effective andoutperforms the state-of-the-art in code summarization.

Identifier
10.24963/ijcai.2018/314
City or Country
Stockholm, Sweden
Creative Commons License
Creative Commons Attribution-NonCommercial-No Derivative Works 4.0 International
Additional URL
https://doi.org/10.24963/ijcai.2018/314
Citation Information
Xing HU, Ge LI, Xin XIA, David LO, et al.. "Summarizing source code with transferred API knowledge" Proceedings of the Twenty-Seventh International Joint Conference on Artificial Intelli-gence (IJCAI 2018), Stockholm, Sweden, 2018 July 13-19 (2018) p. 2269 - 2275
Available at: http://works.bepress.com/david_lo/331/