预测Stack Overflow上Java与JavaScript答案可接受性的特征
Features that Predict the Acceptability of Java and JavaScript Answers on Stack Overflow
AI总结:
本研究针对Stack Overflow上Java与JavaScript标签下的24万余条帖子,用随机森林和神经网络模型识别出预测答案可接受性的核心特征,可为开发者搜索优质答案的工具开发提供支持。
摘要:
研究背景:Stack Overflow是一个广受从业者使用的社区问答平台,用于解决软件开发过程中的问题。开发者在寻求帮助时,可以将注意力集中在已被接受的答案,或是社区成员投出高票的优质答案上。然而,投票机制并不可靠,且目前尚无方法通过答案的特征来区分其是否有可能被采纳。研究目标:为了提供一种识别可接受答案的潜在机制,本研究探究了能够区分已采纳答案与未采纳答案的特征。研究方法:我们对Stack Overflow数据集展开研究,分析了平台上两个最热门标签(Java和JavaScript)下的问答内容。我们的数据集包含2014年至2016年间的249588条帖子。我们使用random forest(随机森林)和neural network(神经网络)模型来预测已采纳答案,并研究这两个模型中预测能力最强的特征。研究结果:我们的发现表明,答案中的代码长度、用户声誉、问答文本相似度以及问答发布的时间差,是区分已采纳与未采纳答案时预测能力最高的特征。研究结论:工具可以利用这些发现为开发者提供支持,减少他们在Stack Overflow上搜索合适答案所需投入的精力。
英文摘要:
Context: Stack Overflow is a popular community question and answer portal used by practitioners to solve problems during software development. Developers can focus their attention on answers that have been accepted or where members have recorded high votes in judging good answers when searching for help. However, the latter mechanism (votes) can be unreliable, and there is currently no way to differentiate between an answer that is likely to be accepted and those that will not be accepted by looking at the answer's characteristics. Objective: In potentially providing a mechanism to identify acceptable answers, this study examines the features that distinguish an accepted answer from an unaccepted answer. Methods: We studied the Stack Overflow dataset by analyzing questions and answers for the two most popular tags (Java and JavaScript). Our dataset comprised 249,588 posts drawn from 2014-2016. We use random forest and neural network models to predict accepted answers, and study the features with the highest predictive power in those two models. Results: Our findings reveal that the length of code in answers, reputation of users, similarity of the text between questions and answers, and the time lag between questions and answers have the highest predictive power for differentiating accepted and unaccepted answers. Conclusion: Tools may leverage these findings in supporting developers and reducing the effort they must dedicate to searching for suitable answers on Stack Overflow.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。