研究与推荐 Stack Overflow 答案中的信息高亮
Studying and Recommending Information Highlighting in Stack Overflow Answers
AI总结:
本文针对 Stack Overflow 答案的信息高亮问题,利用基于 CNN 和 BERT 的模型,针对粗体、斜体、代码和标题四种格式自动推荐高亮内容,实验表明模型精确率在 0.50 到 0.72 之间,证实了该推荐任务的可行性。
摘要:
背景:浏览 Stack Overflow (SO) 的知识仍然具有挑战性。为了使帖子对用户更生动,SO 允许用户使用 Markdown 或 HTML 编写和编辑帖子,以便用户可以利用各种格式样式(例如,粗体、斜体和代码)来突出显示重要信息。尽管如此,关于高亮信息的研究仍然有限。目标:在我们最近的研究中,我们对 SO 答案中的高亮信息进行了首次大规模探索性研究。为了扩展我们之前的研究,我们开发了使用最初为命名实体识别任务设计的神经网络架构来自动推荐带有格式样式的高亮内容的方法。方法:在本文中,我们研究了 Stack Overflow 的 31,169,429 个答案。为了训练推荐模型,我们使用从 SO 答案收集的信息高亮数据集,针对每种格式类型(即粗体、斜体、代码和标题)选择了基于 CNN 和基于 BERT 的模型。结果:对于不同的格式类型,我们的模型实现了 0.50 到 0.72 的精确率。构建推荐代码的模型比其他类型更容易。文本格式类型(即标题、粗体和斜体)的模型召回率较低。我们对失败案例的分析表明,大多数失败案例是由于未能识别造成的。一种解释是,模型容易学习频繁出现的高亮词,而难以学习较少出现的词(即长尾知识)。结论:我们的研究结果表明,开发推荐模型来为 Stack Overflow 上具有不同格式样式的答案高亮信息是可行的。
英文摘要:
Context: Navigating the knowledge of Stack Overflow (SO) remains challenging. To make the posts vivid to users, SO allows users to write and edit posts with Markdown or HTML so that users can leverage various formatting styles (e.g., bold, italic, and code) to highlight the important information. Nonetheless, there have been limited studies on the highlighted information. Objective: We carried out the first large-scale exploratory study on the information highlighted in SO answers in our recent study. To extend our previous study, we develop approaches to automatically recommend highlighted content with formatting styles using neural network architectures initially designed for the Named Entity Recognition task. Method: In this paper, we studied 31,169,429 answers of Stack Overflow. For training recommendation models, we choose CNN-based and BERT-based models for each type of formatting (i.e., Bold, Italic, Code, and Heading) using the information highlighting dataset we collected from SO answers. Results: Our models achieve a precision ranging from 0.50 to 0.72 for different formatting types. It is easier to build a model to recommend Code than other types. Models for text formatting types (i.e., Heading, Bold, and Italic) suffer low recall. Our analysis of failure cases indicates that the majority of the failure cases are due to missing identification. One explanation is that the models are easy to learn the frequent highlighted words while struggling to learn less frequent words (i.g., long-tail knowledge). Conclusion: Our findings suggest that it is possible to develop recommendation models for highlighting information for answers with different formatting styles on Stack Overflow.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。