Domain-specific community question answering is becoming an integral part of professions. Finding related questions and answers in these communities can significantly improve the effectiveness and efficiency of information seeking. Stack Overflow is one of the most popular communities that is being used by millions of programmers. In this paper, we analyze the problem of predicting knowledge unit (question thread) relatedness in Stack Overflow. In particular, we formulate the question relatedness task as a multi-class classification problem with four degrees of relatedness. We present a large-scale dataset with more than 300K pairs. To the best of our knowledge, this dataset is the largest domain-specific dataset for Question-Question relatedness. We present the steps that we took to collect, clean, process, and assure the quality of the dataset. The proposed dataset Stack Overflow is a useful resource to develop novel solutions, specifically data-hungry neural network models, for the prediction of relatedness in technical community question-answering forums. We adopt a neural network architecture and a traditional model for this task that effectively utilize information from different parts of knowledge units to compute the relatedness between them. These models can be used to benchmark novel models, as they perform well in our task and in a closely similar task.
StaQC: A Systematically Mined Question-Code Dataset from Stack Overflow
The Ohio State University(俄亥俄州立大学);University of Washington(华盛顿大学);Fujitsu Labs of America(富士通美国实验室)
Stack Overflow(SO)是自然语言问题及其代码解决方案的重要来源(即,问题-代码对),这对于包括代码检索和注释在内的许多任务都是至关重要的。在大多数现有的研究中,问题代码对收集的经验教训,往往有低质量。在本文中,我们研究了一个新的问题,系统地挖掘问题代码对从堆栈溢出(相对于收集他们)。它被公式化为预测代码片段是否是问题的独立解决方案。我们提出了一种新的双视图层次神经网络,它可以捕获代码片段的编程内容和文本上下文(即,两种观点)来进行预测。在Python和SQL领域的两个手动注释数据集上,我们的框架大大优于探试法,F1和准确率至少高出15%。此外,我们还介绍了StaQC(Stack Overflow Question-Code pairs),这是迄今为止最大的数据集,包含约148 K Python和约120 K SQL问题代码对,使用我们的框架自动从SO中挖掘出来。在各种案例研究中,我们证明了StaQC可以极大地帮助开发数据饥饿的模型,将自然语言与程序设计语言相关联。
Improving Stack Overflow question title generation with copying enhanced CodeBERT model and bi-modal information
Wuhan University of Technology(武汉理工大学);Wuhan University(武汉大学);Wuhan University of Technology Chongqing Research Institute(武汉理工大学重庆研究院);Sanya Science and Education Innovation Park of Wuhan University of Technology(武汉理工大学三亚科教创新园);City University of Hong Kong(香港城市大学)
Diverse Title Generation for Stack Overflow Posts with Multiple Sampling Enhanced Transformer
Wuhan University(武汉大学);Huazhong University of Science and Technology(华中科技大学);Wuhan University of Technology(武汉理工大学);Deakin University(迪肯大学);City University of Hong Kong(香港城市大学)