arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1804.04749cs.CLcs.NE
收藏

预测GitHub和堆栈溢出主题模型的良好性能

Predicting Good Configurations for GitHub and Stack Overflow Topic Models

School of Computer Science University of Adelaide(阿德莱德大学计算机学院)

Christoph Treude, Markus Wagner

摘要:

软件存储库包含大量的文本数据,从源代码注释和问题描述到问题、答案和Stack Overflow上的注释。为了理解这些文本数据,主题建模经常被用作文本挖掘工具,用于发现文本主体中隐藏的语义结构。潜在狄利克雷分配(LDA)是一种常用的主题模型,旨在通过对文本进行分组来解释语料库的结构。LDA需要多个参数才能正常工作,关于如何设置这些参数,只有粗略的、有时相互冲突的指导方针。在本文中,我们贡献了(i)对GitHub和Stack Overflow文本语料库的参数进行了广泛的研究,以达到良好的局部最优,(ii)与八种程序设计语言相关的文本语料库的后验特征,以及(iii)通过每个语料库LDA配置分析语料库特征重要性。我们发现(1)主题建模参数配置的流行经验法则不适用于我们实验中使用的语料库,(2)从GitHub和Stack Overflow采样的语料库具有不同的特征,需要不同的配置才能实现良好的模型拟合,(3)我们可以可靠地预测未知语料库的良好配置。这些研究结果支持研究人员和从业人员在分析软件存储库中包含的文本数据时,有效地确定合适的主题建模配置。

英文摘要:

Software repositories contain large amounts of textual data, ranging from source code comments and issue descriptions to questions, answers, and comments on Stack Overflow. To make sense of this textual data, topic modelling is frequently used as a text-mining tool for the discovery of hidden semantic structures in text bodies. Latent Dirichlet allocation (LDA) is a commonly used topic model that aims to explain the structure of a corpus by grouping texts. LDA requires multiple parameters to work well, and there are only rough and sometimes conflicting guidelines available on how these parameters should be set. In this paper, we contribute (i) a broad study of parameters to arrive at good local optima for GitHub and Stack Overflow text corpora, (ii) an a-posteriori characterisation of text corpora related to eight programming languages, and (iii) an analysis of corpus feature importance via per-corpus LDA configuration. We find that (1) popular rules of thumb for topic modelling parameter configuration are not applicable to the corpora used in our experiments, (2) corpora sampled from GitHub and Stack Overflow have different characteristics and require different configurations to achieve good model fit, and (3) we can predict good configurations for unseen corpora reliably. These findings support researchers and practitioners in efficiently determining suitable configurations for topic modelling when analysing textual data contained in software repositories.

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

↑