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

自适应神经文本分类算法改进软件分类

Adapting Neural Text Classification for Improved Software Categorization

University of Notre Dame(圣母大学)

Alexander LeClair, Zachary Eberhart, Collin McMillan

摘要:

软件分类是将软件组织成大致描述软件行为的组的任务,例如“编辑”或“科学”。“分类在一些维护任务中起着重要的作用,例如存储库导航和功能提取。目前的方法试图将问题转化为文本分类,以利用NLP领域丰富的文献。然而,正如我们将在本文中展示的那样,文本分类算法通常不适用于现成的源代码;我们发现,当高级别的项目描述可用时,它们工作得很好,但是当仅对源代码和注释进行分类时,它们会受到非常大的性能损失。我们提出了一套适应最先进的神经分类算法,并进行了两次评估:一次是使用Debian最终用户程序的参考数据,另一次是使用我们聘请专业程序员注释的一组C/C++库。我们表明,我们提出的方法实现的性能超过以前的软件分类技术,以及最先进的神经文本分类技术。

英文摘要:

Software Categorization is the task of organizing software into groups that broadly describe the behavior of the software, such as "editors" or "science." Categorization plays an important role in several maintenance tasks, such as repository navigation and feature elicitation. Current approaches attempt to cast the problem as text classification, to make use of the rich body of literature from the NLP domain. However, as we will show in this paper, text classification algorithms are generally not applicable off-the-shelf to source code; we found that they work well when high-level project descriptions are available, but suffer very large performance penalties when classifying source code and comments only. We propose a set of adaptations to a state-of-the-art neural classification algorithm and perform two evaluations: one with reference data from Debian end-user programs, and one with a set of C/C++ libraries that we hired professional programmers to annotate. We show that our proposed approach achieves performance exceeding that of previous software classification techniques as well as a state-of-the-art neural text classification technique.

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

↑