Retrieval on source code: a neural code search
Retrieval on source code: a neural code search
复制标题
DOI:
10.1145/3211346.3211353
复制
发表时间:
2018-06
期刊:
影响因子:
--
通讯作者:
Saksham Sachdev;Hongyu Li;Sifei Luan;Seohyun Kim;Koushik Sen;S. Chandra
中科院分区:
文献类型:
--
作者:
Saksham Sachdev;Hongyu Li;Sifei Luan;Seohyun Kim;Koushik Sen;S. Chandra
Searching over large code corpora can be a powerful productivity tool for both beginner and experienced developers because it helps them quickly find examples of code related to their intent. Code search becomes even more attractive if developers could express their intent in natural language, similar to the interaction that Stack Overflow supports. In this paper, we investigate the use of natural language processing and information retrieval techniques to carry out natural language search directly over source code, i.e. without having a curated Q&A forum such as Stack Overflow at hand. Our experiments using a benchmark suite derived from Stack Overflow and GitHub repositories show promising results. We find that while a basic word–embedding based search procedure works acceptably, better results can be obtained by adding a layer of supervision, as well as by a customized ranking strategy.