Search4Code: Code Search Intent Classification Using Weak Supervision
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. 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.
Code (1)
Tasks
ClassificationCode SearchGeneral Classificationintent-classificationIntent ClassificationSimilar Papers 제목 키워드 기반
Generic Intent Representation in Web Search
This paper presents GEneric iNtent Encoder (GEN Encoder) which learns a distributed representation space for user intent in search. Leveraging large scale user clicks from Bing search logs as weak supervision of user int…
Multi-Task LearningNeural Code Search Revisited: Enhancing Code Snippet Retrieval through Natural Language Intent
In this work, we propose and study annotated code search: the retrieval of code snippets paired with brief descriptions of their intent using natural language queries. On three benchmark datasets, we investigate how code…
Annotated Code SearchCode SearchInformation RetrievalNatural Language Queries+2Generating Code with the Help of Retrieved Template Functions and Stack Overflow Answers
We approach the important challenge of code autocompletion as an open-domain task, in which a sequence-to-sequence code generator model is enhanced with the ability to attend to reference code snippets supplied by a sema…
Code SearchRetrievalDeep Smart Contract Intent Detection
In recent years, research in software security has concentrated on identifying vulnerabilities in smart contracts to prevent significant losses of crypto assets on blockchains. Despite early successes in this area, detec…
Intent DetectionMulti-Label ClassificationMUlTI-LABEL-ClASSIFICATIONSentence+1Enhancing User Behavior Sequence Modeling by Generative Tasks for Session Search
Users' search tasks have become increasingly complicated, requiring multiple queries and interactions with the results. Recent studies have demonstrated that modeling the historical user behaviors in a session can help u…
DecoderDocument RankingSession Search