A Convolutional Neural Network for Language-Agnostic Source Code Summarization
Jessica Moore, Ben Gelman, David Slater
2019
Abstract
Descriptive comments play a crucial role in the software engineering process. They decrease development time, enable better bug detection, and facilitate the reuse of previously written code. However, comments are commonly the last of a software developer’s priorities and are thus either insufficient or missing entirely. Automatic source code summarization may therefore have the ability to significantly improve the software development process. We introduce a novel encoder-decoder model that summarizes source code, effectively writing a comment to describe the code’s functionality. We make two primary innovations beyond current source code summarization models. First, our encoder is fully language-agnostic and requires no complex input preprocessing. Second, our decoder has an open vocabulary, enabling it to predict any word, even ones not seen in training. We demonstrate results comparable to state-of-the-art methods on a single-language data set and provide the first results on a data set consisting of multiple programming languages.
DownloadPaper Citation
in Harvard Style
Moore J., Gelman B. and Slater D. (2019). A Convolutional Neural Network for Language-Agnostic Source Code Summarization.In Proceedings of the 14th International Conference on Evaluation of Novel Approaches to Software Engineering - Volume 1: ENASE, ISBN 978-989-758-375-9, pages 15-26. DOI: 10.5220/0007678100150026
in Bibtex Style
@conference{enase19,
author={Jessica Moore and Ben Gelman and David Slater},
title={A Convolutional Neural Network for Language-Agnostic Source Code Summarization},
booktitle={Proceedings of the 14th International Conference on Evaluation of Novel Approaches to Software Engineering - Volume 1: ENASE,},
year={2019},
pages={15-26},
publisher={SciTePress},
organization={INSTICC},
doi={10.5220/0007678100150026},
isbn={978-989-758-375-9},
}
in EndNote Style
TY - CONF
JO - Proceedings of the 14th International Conference on Evaluation of Novel Approaches to Software Engineering - Volume 1: ENASE,
TI - A Convolutional Neural Network for Language-Agnostic Source Code Summarization
SN - 978-989-758-375-9
AU - Moore J.
AU - Gelman B.
AU - Slater D.
PY - 2019
SP - 15
EP - 26
DO - 10.5220/0007678100150026