2019 · 18 citations · 13 references
ComputingComputer ScienceMachine LearningNatural Language ProcessingSoftware EngineeringAbstract Syntax TreesData SummarizationDependency ParsingSyntactic AnalysisSyntax AnalysisText SummarizationDependencies AnalysisNeural Network ModelingNeural Text SummarizationProgram ComprehensionSemantic DependenciesSoftware Maintenance ProcessSource Code StructureSummarization
Code summarization aims at generating natural language abstraction for source code, and it can be of great help for program comprehension and software maintenance. The current code summarization approaches have made progress with neural-network. However, most of these methods focus on learning the semantic and syntax of source code snippets, ignoring the dependency of codes. In this paper, we propose a novel method based on neural-network model using the knowledge of the call dependency between source code and its related codes. We extract call dependencies from the source code, transform it as a token sequence of method names, and leverage the Seq2Seq model for code summarization using the combination of source code and call dependency information. About 100,000 code data is collected from 1,000 open source Java proejects on github for experiment. The large-scale code experiment shows that by considering not only the code itself but also the codes it called, the code summarization model can be improved with the BLEU score to 33.08.
13
Sequence to Sequence Learning with Neural Networks
Ilya Sutskever, Oriol Vinyals, Quoc V. Le · arXiv (Cornell University) · 2014 · 3.5K citations · Full text
Computing, Computer Science, French +14
Summarizing Source Code using a Neural Attention Model
Srinivasan Iyer, Ioannis Konstas, Alvin Cheung et al. · 2016 · 725 citations · Full text
Xiaodong Gu, Hongyu Zhang, Dongmei Zhang et al. · 2016 · 497 citations
On the Use of Automated Text Summarization Techniques for Summarizing Source Code
Sonia Haiduc, Jairo Aponte, Laura Moreno et al. · 2010 · 402 citations