arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1704.04856cs.CL
收藏

从Source Code变化生成自然语言描述的神经结构

A Neural Architecture for Generating Natural Language Descriptions from Source Code Changes

The University of Tokyo(东京大学)

Pablo Loyola, Edison Marrese-Taylor, Yutaka 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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑