{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2025,2,21]],"date-time":"2025-02-21T06:43:19Z","timestamp":1740120199788,"version":"3.37.3"},"reference-count":29,"publisher":"World Scientific Pub Co Pte Ltd","issue":"03","funder":[{"DOI":"10.13039\/501100001809","name":"National Natural Science Foundation of China","doi-asserted-by":"publisher","award":["61772200"],"award-info":[{"award-number":["61772200"]}],"id":[{"id":"10.13039\/501100001809","id-type":"DOI","asserted-by":"publisher"}]},{"DOI":"10.13039\/100007219","name":"Natural Science Foundation of Shanghai","doi-asserted-by":"publisher","award":["21ZR1416300"],"award-info":[{"award-number":["21ZR1416300"]}],"id":[{"id":"10.13039\/100007219","id-type":"DOI","asserted-by":"publisher"}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Int. J. Soft. Eng. Knowl. Eng."],"published-print":{"date-parts":[[2022,3]]},"abstract":"<jats:p> Due to the growing need for faster software delivery, code generation has attracted more and more attention, since it could improve code maintainability by providing suggestions for coding. In the model of generating program source code from natural language (NL), the most effective method is to generate an intermediate architecture (such as Abstract Syntax Tree) combined with a deep learning model. However, these models have the following drawbacks: (1) The data structural information is underutilized and the correlation between samples is not considered. (2) Lack of the ability to memorize large and complex structures, so that complex codes cannot be generated correctly. To address these issues, we propose HRCODE model, a code generation architecture based on Hybrid of structural and semantic features Retrieval CODE model. We transform the NL description into an intermediate structure with structural features. Then, the NL and the intermediate structure are embedded into a vector through weight mixing, and we calculate the similarity score between each vector to retrieve the most relevant samples. Finally, the new input is brought into the PLBART model to generate code. Experiments show that HRCODE is at least 4.7% higher than the state-of-the-art models in the ACC metric and at least 10.3% higher in the BLEU-4 score. We have released our code at https:\/\/github.com\/jesokang\/HRCODE. <\/jats:p>","DOI":"10.1142\/s0218194022500267","type":"journal-article","created":{"date-parts":[[2022,4,12]],"date-time":"2022-04-12T16:52:52Z","timestamp":1649782372000},"page":"457-478","source":"Crossref","is-referenced-by-count":0,"title":["Code Generation with Hybrid of Structural and Semantic Features Retrieval"],"prefix":"10.1142","volume":"32","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-5863-1003","authenticated-orcid":false,"given":"Kang","family":"Yang","sequence":"first","affiliation":[{"name":"Department of Computer Science and Engineering, East China University of Science and Technology, Shanghai 200237, P.\u00a0R.\u00a0China"},{"name":"Shanghai Key Laboratory of Computer Software Evaluating and Testing, Shanghai 201112, P.\u00a0R.\u00a0China"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Huiqun","family":"Yu","sequence":"additional","affiliation":[{"name":"Department of Computer Science and Engineering, East China University of Science and Technology, Shanghai 200237, P.\u00a0R.\u00a0China"},{"name":"Shanghai Engineering Research Center of Smart Energy, Shanghai, P.\u00a0R.\u00a0China"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Guisheng","family":"Fan","sequence":"additional","affiliation":[{"name":"Department of Computer Science and Engineering, East China University of Science and Technology, Shanghai 200237, P.\u00a0R.\u00a0China"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Zijie","family":"Huang","sequence":"additional","affiliation":[{"name":"Department of Computer Science and Engineering, East China University of Science and Technology, Shanghai 200237, P.\u00a0R.\u00a0China"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Ziyi","family":"Zhou","sequence":"additional","affiliation":[{"name":"Department of Computer Science and Engineering, East China University of Science and Technology, Shanghai 200237, P.\u00a0R.\u00a0China"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"219","published-online":{"date-parts":[[2022,5,5]]},"reference":[{"key":"S0218194022500267BIB003","series-title":"Advances in Neural Information Processing Systems","first-page":"4574","volume-title":"Advances in Neural Information Processing Systems 29: Annual Conf. Neural Information Processing Systems","author":"Liu C.","year":"2016"},{"key":"S0218194022500267BIB004","doi-asserted-by":"publisher","DOI":"10.1109\/ICSE.2012.6227135"},{"key":"S0218194022500267BIB005","doi-asserted-by":"publisher","DOI":"10.1109\/TSE.2017.2734091"},{"key":"S0218194022500267BIB006","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-24485-8_14"},{"key":"S0218194022500267BIB007","doi-asserted-by":"publisher","DOI":"10.1016\/S0306-4379(02)00014-5"},{"key":"S0218194022500267BIB009","doi-asserted-by":"publisher","DOI":"10.18653\/v1\/D16-1197"},{"key":"S0218194022500267BIB011","doi-asserted-by":"publisher","DOI":"10.18653\/v1\/D18-2002"},{"key":"S0218194022500267BIB015","doi-asserted-by":"publisher","DOI":"10.18653\/v1\/D18-1111"},{"key":"S0218194022500267BIB017","first-page":"5133","volume-title":"Proc. Thirty-Second AAAI Conf. Artificial Intelligence, 30th Innovative Applications of Artificial Intelligence, and 8th AAAI Symp. Educational Advances in Artificial Intelligence","author":"Gu J.","year":"2018"},{"key":"S0218194022500267BIB018","first-page":"910","volume-title":"Proc. Eleventh Int. Conf. Language Resources and Evaluation","author":"Li X.","year":"2018"},{"key":"S0218194022500267BIB019","doi-asserted-by":"publisher","DOI":"10.18653\/v1\/2021.naacl-main.211"},{"key":"S0218194022500267BIB020","first-page":"241","volume-title":"Proc. 1st Int. Joint Conf. Artificial Intelligence","author":"Waldinger R. J.","year":"1969"},{"key":"S0218194022500267BIB021","doi-asserted-by":"publisher","DOI":"10.21236\/ADA459656"},{"key":"S0218194022500267BIB022","doi-asserted-by":"publisher","DOI":"10.1145\/362566.362568"},{"key":"S0218194022500267BIB025","first-page":"1057","volume-title":"Advances in Neural Information Processing Systems 12, NIPS Conf.","author":"Sutton R. S.","year":"1999"},{"key":"S0218194022500267BIB026","doi-asserted-by":"publisher","DOI":"10.1109\/ICSE.2013.6606630"},{"key":"S0218194022500267BIB027","doi-asserted-by":"publisher","DOI":"10.1109\/CSMR-WCRE.2014.6747190"},{"key":"S0218194022500267BIB028","first-page":"545","volume-title":"22nd IEEE Int. Conf. Software Analysis, Evolution, and Reengineering","author":"Lu M.","year":"2015"},{"key":"S0218194022500267BIB029","doi-asserted-by":"publisher","DOI":"10.1145\/219717.219748"},{"key":"S0218194022500267BIB030","doi-asserted-by":"publisher","DOI":"10.1145\/2568225.2568292"},{"key":"S0218194022500267BIB031","doi-asserted-by":"publisher","DOI":"10.1145\/3018661.3018691"},{"key":"S0218194022500267BIB032","doi-asserted-by":"publisher","DOI":"10.1145\/3180155.3180167"},{"key":"S0218194022500267BIB034","first-page":"89","volume-title":"Proc. 23rd European Symp. Artificial Neural Networks","author":"Malhotra P.","year":"2015"},{"key":"S0218194022500267BIB035","doi-asserted-by":"publisher","DOI":"10.1145\/3238147.3240471"},{"key":"S0218194022500267BIB036","doi-asserted-by":"publisher","DOI":"10.18653\/v1\/K16-1002"},{"key":"S0218194022500267BIB037","doi-asserted-by":"publisher","DOI":"10.18653\/v1\/D15-1166"},{"key":"S0218194022500267BIB038","doi-asserted-by":"publisher","DOI":"10.1162\/tacl_a_00343"},{"key":"S0218194022500267BIB039","first-page":"311","volume-title":"Proc. 40th Annual Meeting of the Association for Computational Linguistics","author":"Papineni K.","year":"2002"},{"key":"S0218194022500267BIB040","doi-asserted-by":"publisher","DOI":"10.1109\/ASE.2015.36"}],"container-title":["International Journal of Software Engineering and Knowledge Engineering"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.worldscientific.com\/doi\/pdf\/10.1142\/S0218194022500267","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2022,5,11]],"date-time":"2022-05-11T08:39:55Z","timestamp":1652258395000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.worldscientific.com\/doi\/10.1142\/S0218194022500267"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2022,3]]},"references-count":29,"journal-issue":{"issue":"03","published-print":{"date-parts":[[2022,3]]}},"alternative-id":["10.1142\/S0218194022500267"],"URL":"https:\/\/doi.org\/10.1142\/s0218194022500267","relation":{},"ISSN":["0218-1940","1793-6403"],"issn-type":[{"type":"print","value":"0218-1940"},{"type":"electronic","value":"1793-6403"}],"subject":[],"published":{"date-parts":[[2022,3]]}}}