arrow
返回

Improved retrieval of programming solutions with code examples using a multi-featured score

delete2021-11-01
delete2
delete
OA
AI
R
Rodrigo F. Silva
M
Mohammad Masudur Rahman
C
Carlos Eduardo Dantas
C
Chanchal K. Roy
F
Foutse Khomh
M
Marcelo de Almeida Maia *
DOI:10.1016/j.jss.2021.111063delete
delete原文链接
delete分享
delete收藏
查看原文
摘要

摘要

En 中文
Developers often depend on code search engines to obtain solutions for their programming tasks. However, finding an expected solution containing code examples along with their explanations is challenging due to several issues. There is a vocabulary mismatch between the search keywords (the query) and the appropriate solutions. Semantic gap may increase for similar bag of words due to antonyms and negation. Moreover, documents retrieved by search engines might not contain solutions containing both code examples and their explanations. So, we propose CRAR (Crowd Answer Recommender) to circumvent those issues aiming at improving retrieval of relevant answers from Stack Overflow containing not only the expected code examples for the given task but also their explanations. Given a programming task, we investigate the effectiveness of combining information retrieval techniques along with a set of features to enhance the ranking of important threads (i.e., the units containing questions along with their answers) for the given task and then selects relevant answers contained in those threads, including semantic features, like word embeddings and sentence embeddings, for instance, a Convolutional Neural Network (CNN). CRAR also leverages social aspects of Stack Overflow discussions like popularity to select relevant answers for the tasks. Our experimental evaluation shows that the combination of the different features performs better than each one individually. We also compare the retrieval performance with the state-of-art CROKAGE (Crowd Knowledge Answer Generator), which is also a system aimed at retrieving relevant answers from Stack Overflow. We show that CRAR outperforms CROKAGE in Mean Reciprocal Rank and Mean Recall with small and medium effect sizes, respectively. (C) 2021 Elsevier Inc. All rights reserved.
Keyword:
Mining crowd knowledge
Stack overflow
Word embedding
AI总结

AI总结

对已上传原文的论文进行重点信息的提取,主要内容包括:简要概述、研究摘要、背景介绍、关键亮点、图文解析、展望与总结。

期刊

Journal of Systems and Software 封面图
Journal of Systems and Software
IF:
4.1
论文数:
5.4K
被引数:
8.4K

机构

U
universidade federal de uberlandia
学者数:
6.4K
论文数: 4.0K
被引数: 6
I
instituto federal do triangulo mineiro (iftm)
学者数:
159
论文数: 110
被引数: 0
D
Dalhousie University
学者数:
2.0W
论文数: 1.8W
被引数: 2.3W
U
University of Saskatchewan
学者数:
1.5W
论文数: 1.4W
被引数: 1.7W
学者 查看更多机构
引用论文

引用论文

err分享
err收藏
Toward accurate link between code and software documentation
err2018-04-20
err14
PREAI
errCao, Yingkui; Zou, Yanzhen; Luo, Yuxiang; Xie, Bing; Zhao, Junfeng
err分享
err收藏
err分享
err收藏
Learning to rank code examples for code search engines
err2016-01-21
err56
PREAI
errNiu, Haoran; Keivanloo, Iman; Zou, Ying
err分享
err收藏
Biologically Inspired Soft Robot for Thumb Rehabilitation1
err2014-04-28
err0
PREAI
errPaxton Maeder-York; Tyler Clites; Emily Boggs; Ryan Neff; Panagiotis Polygerinos; Dónal Holland; Leia Stirling; Kevin Galloway; Catherine Wee; Conor Walsh
err分享
err收藏
Effect Size Estimates: Current Use, Calculations, and Interpretation
err2012-01-01
err2.7K
PREAI
errFritz, Catherine O.; Morris, Peter E.; Richler, Jennifer J.
err分享
err收藏
学者 查看更多内容