首页> 外文期刊>Software Engineering, IEEE Transactions on >Automatic Source Code Summarization of Context for Java Methods
【24h】

Automatic Source Code Summarization of Context for Java Methods

机译:Java方法的上下文自动源代码汇总

获取原文
获取原文并翻译 | 示例
获取外文期刊封面目录资料

摘要

Source code summarization is the task of creating readable summaries that describe the functionality of software. Source code summarization is a critical component of documentation generation, for example as Javadocs formed from short paragraphs attached to each method in a Java program. At present, a majority of source code summarization is manual, in that the paragraphs are written by human experts. However, new automated technologies are becoming feasible. These automated techniques have been shown to be effective in select situations, though a key weakness is that they do not explain the source code's context. That is, they can describe the behavior of a Java method, but not why the method exists or what role it plays in the software. In this paper, we propose a source code summarization technique that writes English descriptions of Java methods by analyzing how those methods are invoked. We then performed two user studies to evaluate our approach. First, we compared our generated summaries to summaries written manually by experts. Then, we compared our summaries to summaries written by a state-of-the-art automatic summarization tool. We found that while our approach does not reach the quality of human-written summaries, we do improve over the state-of-the-art summarization tool in several dimensions by a statistically-significant margin.
机译:源代码摘要是创建描述软件功能的可读摘要的任务。源代码摘要是文档生成的重要组成部分,例如,由附加在Java程序中每个方法上的简短段落组成的Javadocs。当前,大多数源代码摘要是手动的,因为这些段落是由人类专家编写的。但是,新的自动化技术正在变得可行。这些自动化技术已显示出在某些情况下有效,尽管一个主要缺点是它们无法解释源代码的上下文。也就是说,他们可以描述Java方法的行为,但不能描述该方法存在的原因或它在软件中扮演的角色。在本文中,我们提出了一种源代码汇总技术,该技术通过分析这些方法的调用方式来编写Java方法的英文描述。然后,我们进行了两次用户研究,以评估我们的方法。首先,我们将生成的摘要与专家手动编写的摘要进行了比较。然后,我们将摘要与最先进的自动摘要工具编写的摘要进行了比较。我们发现,虽然我们的方法无法达到人工编写的摘要的质量,但我们确实在几个维度上对最新的摘要工具进行了统计上显着改进。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号