English

AugmentedCode: Examining the Effects of Natural Language Resources in Code Retrieval Models

Software Engineering 2021-10-19 v1 Artificial Intelligence

Abstract

Code retrieval is allowing software engineers to search codes through a natural language query, which relies on both natural language processing and software engineering techniques. There have been several attempts on code retrieval from searching snippet codes to function codes. In this paper, we introduce Augmented Code (AugmentedCode) retrieval which takes advantage of existing information within the code and constructs augmented programming language to improve the code retrieval models' performance. We curated a large corpus of Python and showcased the the framework and the results of augmented programming language which outperforms on CodeSearchNet and CodeBERT with a Mean Reciprocal Rank (MRR) of 0.73 and 0.96, respectively. The outperformed fine-tuned augmented code retrieval model is published in HuggingFace at https://huggingface.co/Fujitsu/AugCode and a demonstration video is available at: https://youtu.be/mnZrUTANjGs .

Keywords

Cite

@article{arxiv.2110.08512,
  title  = {AugmentedCode: Examining the Effects of Natural Language Resources in Code Retrieval Models},
  author = {Mehdi Bahrami and N. C. Shrikanth and Yuji Mizobuchi and Lei Liu and Masahiro Fukuyori and Wei-Peng Chen and Kazuki Munakata},
  journal= {arXiv preprint arXiv:2110.08512},
  year   = {2021}
}

Comments

7 pages, 2 figures, 5 tables, 1 video

R2 v1 2026-06-24T06:56:22.822Z