Search4Code: Code Search Intent Classification Using Weak Supervision

Nikitha Rao, Chetan Bansal, Joe Guan
11/24/2020
cs.SEcs.AIcs.IR

Official code: microsoft/Search4Code (33 stars, last commit 2023-06-03).

Abstract

Developers use search for various tasks such as finding code, documentation, debugging information, etc. In particular, web search is heavily used by developers for finding code examples and snippets during the coding process.

Show full abstract

Recently, natural language based code search has been an active area of research. However, the lack of real-world large-scale datasets is a significant bottleneck. In this work, we propose a weak supervision based approach for detecting code search intent in search queries for C# and Java programming languages. We evaluate the approach against several baselines on a real-world dataset comprised of over 1 million queries mined from Bing web search engine and show that the CNN based model can achieve an accuracy of 77% and 76% for C# and Java respectively. Furthermore, we are also releasing Search4Code, the first large-scale real-world dataset of code search queries mined from Bing web search engine. We hope that the dataset will aid future research on code search.

View on arXivView PDF

Code Implementations(1)

Web queries dataset for code search

330Nov 19, 20203 years agoNOASSERTION

Similar Papers

Cite this paper

@article{rao2020searchcode,
  title  = {Search4Code: Code Search Intent Classification Using Weak Supervision},
  author = {Nikitha Rao and Chetan Bansal and Joe Guan},
  year   = {2020},
  eprint = {2011.11950},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2011.11950}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2011.11950.svg)](https://codeofpaper.com/paper/2011.11950)

Discussion