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

基于多标签分类算法的软件库主题推荐

Topic Recommendation for Software Repositories using Multi-label Classification Algorithms

Maliheh Izadi, Abbas Heydarnoori, Georgios Gousios

摘要:

许多平台利用协作标记来在搜索或导航时为用户提供更快、更准确的结果。标签可以传达不同的概念,例如主要特性、技术、功能和软件存储库的目标。最近,GitHub允许用户使用主题标签来注释存储库。它还提供了一组特色主题,以及在社区的帮助下精心策划的可能的别名。这就创造了一个机会,通过训练模型向开发人员推荐高质量的主题标签,使用这个初始的主题种子来自动注释所有剩余的存储库。在这项工作中,我们研究了应用多标签分类技术预测软件仓库的主题。首先,我们将大量的用户自定义主题映射到GitHub上的主题。其核心思想是从项目的可用文档中获取更多信息。我们的数据包含有关$152$ K GitHub存储库和$228$特色主题。然后,我们将监督模型应用于存储库的文本信息,如描述、README文件、wiki页面和文件名。我们评估我们的方法的性能定量和定性。我们提出的模型分别达到了$0.890$和$0.805$的Recall@5和LRAP分数。此外,根据用户的评估,我们的方法是高度能够推荐一个正确的和完整的主题集。最后,我们使用我们的模型来开发一个名为\texttt{Repository Catalogue}的在线工具,它可以自动预测GitHub存储库的主题,并且可以公开使用。

英文摘要:

Many platforms exploit collaborative tagging to provide their users with faster and more accurate results while searching or navigating. Tags can communicate different concepts such as the main features, technologies, functionality, and the goal of a software repository. Recently, GitHub has enabled users to annotate repositories with topic tags. It has also provided a set of featured topics, and their possible aliases carefully curated with the help of the community. This creates the opportunity to use this initial seed of topics to automatically annotate all remaining repositories, by training models that recommend high-quality topic tags to developers. In this work, we study the application of multi-label classification techniques to predict software repositories' topics. First, we map the large space of user-defined topics to those featured by GitHub. The core idea is to derive more information from projects' available documentation. Our data contains about $152$K GitHub repositories and $228$ featured topics. Then, we apply supervised models on repositories' textual information such as descriptions, README files, wiki pages, and file names. We assess the performance of our approach both quantitatively and qualitatively. Our proposed model achieves Recall@5 and LRAP scores of $0.890$ and $0.805$, respectively. Moreover, based on users' assessment, our approach is highly capable of recommending a correct and complete set of topics. Finally, we use our models to develop an online tool named \texttt{Repository Catalogue}, that automatically predicts topics for GitHub repositories and is publicly available.

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

↑