Reusable Component Retrieval: A Semantic Search Approach for Low Resource Languages

Author:

Bibi Nazia1,Rana Tauseef1,Maqbool Ayesha1,Alkhalifah Tamim2,Khan Wazir Zada3,Bashir Ali Kashif4,Zikria Yousaf Bin5

Affiliation:

1. Department of Computer Software Engineering, National University of Sciences and Technology, Pakistan

2. Department of computer science, College of Science and Arts in Ar Rass, Qassim University, Saudi Arabia

3. Department of Computer Science, University of Wah, Pakistan

4. Department of Computing and Mathematics, Manchester Metropolitan University, United Kingdom

5. Department of Information and Communication Engineering, Gyeongsan 38541, Yeungnam University, Republic of Korea

Abstract

Abstract: A common practice among programmers is to reuse existing code, accomplished by performing natural language queries through search engines. The main aim of code retrieval is to search for the most relevant snippet from a corpus of code snippets but unfortunately, code retrieval frameworks for low resource languages are insufficient. Retrieving the most relevant code snippet efficiently can only be accomplished by eliminating the semantic gap between the code snippets residing in the repository and the user’s query (natural language description). The primary objective of the research is to contribute to this field by providing a code search framework that can be extended for low resource languages. Secondly, to give a code retrieval mechanism that is semantically relevant to the user query and provide programmers with the ability to locate source code that they want to use when developing new applications. The proposed approach is implemented using a web platform to search for source code. As code retrieval is a sophisticated task, the proposed approach incorporates a semantic search mechanism. This research uses a semantic model for code retrieval, which generates meanings or synonyms of words. The proposed model integrates ontologies and Natural Language Processing. System performance measures and classification accuracy are computed using precision, recall, and F1-score. We also compare the proposed approach with state-of-the-art baseline models. The retrieved results are ranked, showing that our approach significantly outperforms robust code matching. Our evaluation shows that semantic matching leads to improved source code retrieval. This study marks a substantial advancement in integrating programming expertise with code retrieval techniques. Moreover, our system lets users know when and how it is used for successful semantic searching.

Publisher

Association for Computing Machinery (ACM)

Subject

General Computer Science

Reference56 articles.

1. Extraction of domain concepts from the source code

2. Fuzzy Contrast Set Based Deep Attention Network for Lexical Analysis and Mental Health Treatment

3. Blockchain-based Initiatives: Current state and challenges

4. Awny Alnusair and Tian Zhao . 2012. Retrieving reusable software components using enhanced representation of domain knowledge . In Recent Trends in Information Reuse and Integration . Springer , 363–379. Awny Alnusair and Tian Zhao. 2012. Retrieving reusable software components using enhanced representation of domain knowledge. In Recent Trends in Information Reuse and Integration. Springer, 363–379.

5. Uri Alon Shaked Brody Omer Levy and Eran Yahav. 2018. code2seq: Generating sequences from structured representations of code. arXiv preprint arXiv:1808.01400(2018). Uri Alon Shaked Brody Omer Levy and Eran Yahav. 2018. code2seq: Generating sequences from structured representations of code. arXiv preprint arXiv:1808.01400(2018).

Cited by 3 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Bilingual Neural Machine Translation From English To Yoruba Using A Transformer Model;International Journal of Innovative Science and Research Technology (IJISRT);2024-07-26

2. C2B: A Semantic Source Code Retrieval Model Using CodeT5 and Bi-LSTM;Applied Sciences;2024-07-02

3. Formally modeling and verifying a software component retrieval system using mCRL2;International Journal of System Assurance Engineering and Management;2023-08-27

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3