A Neural Architecture for Generating Natural Language Descriptions from Source Code Changes
A Neural Architecture for Generating Natural Language Descriptions from Source Code Changes
复制标题
DOI:
10.18653/v1/p17-2045
复制
发表时间:
2017-04
期刊:
影响因子:
--
通讯作者:
Pablo Loyola;Edison Marrese-Taylor;Y. Matsuo
中科院分区:
文献类型:
--
作者:
Pablo Loyola;Edison Marrese-Taylor;Y. Matsuo
We propose a model to automatically describe changes introduced in the source code of a program using natural language. Our method receives as input a set of code commits, which contains both the modifications and message introduced by an user. These two modalities are used to train an encoder-decoder architecture. We evaluated our approach on twelve real world open source projects from four different programming languages. Quantitative and qualitative results showed that the proposed approach can generate feasible and semantically sound descriptions not only in standard in-project settings, but also in a cross-project setting.