arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2111.13962cs.SEcs.LG
收藏

利用无监督学习总结堆栈溢出中讨论的API

Leveraging Unsupervised Learning to Summarize APIs Discussed in Stack Overflow

Carleton University(卡尔顿大学)

AmirHossein Naghshzan, Latifa Guerrouj, Olga Baysal

摘要:

自动源代码摘要是一项任务,它生成有关方法和类的目的、用法和/或实现的摘要信息,以支持对这些代码实体的理解。针对代码摘要中的监督学习和无监督学习,已经提出了多种方法和技术,然而,它们大多集中于为一段代码生成摘要。此外,很少有作品利用非官方文档。本文提出了一种自动和新颖的方法来总结堆栈溢出中讨论的Android API方法,我们认为这是本研究中的非官方文档。我们的方法将API方法的名称作为输入,并基于该API方法的Stack Overflow讨论生成一个自然语言摘要。我们对16位Android开发人员进行了一项调查,以评估我们自动生成的摘要的质量,并将其与官方Android文档进行比较。我们的研究结果表明,虽然开发人员发现官方文档更有用的一般,生成的摘要也有竞争力,特别是提供实施细节,并可以用作指导开发人员在软件开发和维护任务的补充来源。

英文摘要:

Automated source code summarization is a task that generates summarized information about the purpose, usage, and--or implementation of methods and classes to support understanding of these code entities. Multiple approaches and techniques have been proposed for supervised and unsupervised learning in code summarization, however, they were mostly focused on generating a summary for a piece of code. In addition, very few works have leveraged unofficial documentation. This paper proposes an automatic and novel approach for summarizing Android API methods discussed in Stack Overflow that we consider as unofficial documentation in this research. Our approach takes the API method's name as an input and generates a natural language summary based on Stack Overflow discussions of that API method. We have conducted a survey that involves 16 Android developers to evaluate the quality of our automatically generated summaries and compare them with the official Android documentation. Our results demonstrate that while developers find the official documentation more useful in general, the generated summaries are also competitive, in particular for offering implementation details, and can be used as a complementary source for guiding developers in software development and maintenance tasks.

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

↑