English

Machine Translation from Natural Language to Code using Long-Short Term Memory

Computation and Language 2019-10-28 v1 Artificial Intelligence Programming Languages

Abstract

Making computer programming language more understandable and easy for the human is a longstanding problem. From assembly language to present day's object-oriented programming, concepts came to make programming easier so that a programmer can focus on the logic and the architecture rather than the code and language itself. To go a step further in this journey of removing human-computer language barrier, this paper proposes machine learning approach using Recurrent Neural Network (RNN) and Long-Short Term Memory (LSTM) to convert human language into programming language code. The programmer will write expressions for codes in layman's language, and the machine learning model will translate it to the targeted programming language. The proposed approach yields result with 74.40% accuracy. This can be further improved by incorporating additional techniques, which are also discussed in this paper.

Keywords

Cite

@article{arxiv.1910.11471,
  title  = {Machine Translation from Natural Language to Code using Long-Short Term Memory},
  author = {K. M. Tahsin Hassan Rahit and Rashidul Hasan Nabil and Md Hasibul Huq},
  journal= {arXiv preprint arXiv:1910.11471},
  year   = {2019}
}

Comments

8 pages, 3 figures, conference

R2 v1 2026-06-23T11:54:25.203Z