Advancing Source Code Summaries via Abstract Syntax Trees and Neural Machine Translation
- Authors
-
-
Rowan Sinclair
-
- Abstract
-
Source code summarization generates brief natural language descriptions of code, aiding developer documentation. Traditional neural models often overlook the hierarchical structure of code, leading to inaccuracies. This study introduces the ast-attendgru model, utilizing Abstract Syntax Trees (AST) to capture structural features. Evaluated on Java methods using the BLEU metric, our model outperforms traditional methods and an NLP baseline, especially in cases with minimal documentation. Incorporating AST significantly improves the coherence and accuracy of code summaries.
- References
- Downloads
- Published
- 2023-07-30
- Issue
- Vol. 2 No. 3 (2023)
- Section
- Articles
- License
-

This work is licensed under a Creative Commons Attribution 4.0 International License.
Academic Scholar Hub Press also operates under the Creative Commons Licence CC-BY 4.0. This allows for copy and redistribute the material in any medium or format for any purpose, even commercially. The premise is that you must provide appropriate citation information.
