Neural Code Search Revisited: Enhancing Code Snippet Retrieval through Natural Language Intent

08/27/2020
by   Geert Heyman, et al.
0

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 retrieval systems can be improved by leveraging descriptions to better capture the intents of code snippets. Building on recent progress in transfer learning and natural language processing, we create a domain-specific retrieval model for code annotated with a natural language description. We find that our model yields significantly more relevant search results (with absolute gains up to 20.6 methods that do not use descriptions but attempt to compute the intent of snippets solely from unannotated code.

READ FULL TEXT
research
09/03/2020

CoNCRA: A Convolutional Neural Network Code Retrieval Approach

Software developers routinely search for code using general-purpose sear...
research
06/28/2023

Query Understanding in the Age of Large Language Models

Querying, conversing, and controlling search and information-seeking int...
research
01/23/2019

NLSC: Unrestricted Natural Language-based Service Composition through Sentence Embeddings

Current approaches for service composition (assemblies of atomic service...
research
08/22/2022

Incorporating Domain Knowledge through Task Augmentation for Front-End JavaScript Code Generation

Code generation aims to generate a code snippet automatically from natur...
research
08/12/2020

OCoR: An Overlapping-Aware Code Retriever

Code retrieval helps developers reuse the code snippet in the open-sourc...
research
08/11/2021

Natural Language-Guided Programming

In today's software world with its cornucopia of reusable software libra...
research
04/12/2021

Generating Code with the Help of Retrieved Template Functions and Stack Overflow Answers

We approach the important challenge of code autocompletion as an open-do...

Please sign up or login with your details

Forgot password? Click here to reset