Abstract

Our work investigates using semantic indicators in source code to generate descriptions of its functionality. We applied natural language processing (NLP) techniques to improve the performance of a neural machine translation (NMT) model on source code. We trained the model on 20,000 code-comment pairs from the Source Code Analysis Dataset (SCAD) using a custom Python source code tokenizer and a learning model with attention, RNNs, LSTMs, and auto-encoders. We evaluated the model’s performance on a hold-out dataset using several established translation metrics, and found that our methods outperform prior work with a mean Bilingual Evaluation Understudy (BLEU) score of 0.47.

Full Text
Paper version not known

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.