{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/a-transformer-based-approach-for-translating","title":"A Transformer-based Approach for Translating Natural Language to Bash Commands","arxiv_id":null,"date":"2021-12-14","proceeding":"20th IEEE International Conference on Machine Learning and Applications - ICMLA 2021 12","authors":["Quchen Fu","Zhongwei Teng","Jules White","Douglas C. Schmidt"],"abstract":"This paper explores the translation of natural language into Bash Commands, which developers commonly use to accomplish command-line tasks in a terminal. In our approach a terminal takes a command as a sentence in plain English and translates it into the corresponding string of Bash Commands. The paper analyzes the performance of several architectures on this translation problem using the data from the NLC2CMD competition at the NeurIPS 2020 conference. The approach presented in this paper is the best performing architecture on this problem to date and improves the current state-of-the-art accuracy on this translation task from 13.8% to 53.2%.","url_abs":"https://www.dre.vanderbilt.edu/~schmidt/PDF/A_Transformer_based_Approach_for_TranslatingNatural_Language_to_Bash_Commands.pdf","url_pdf":"https://www.dre.vanderbilt.edu/~schmidt/PDF/A_Transformer_based_Approach_for_TranslatingNatural_Language_to_Bash_Commands.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"a-transformer-based-approach-for-translating","repo_url":"https://github.com/magnumresearchgroup/magnum-nlc2cmd","is_official":0,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"code-translation","task_name":"Code Translation"},{"task_slug":"sentence","task_name":"Sentence"},{"task_slug":"translation","task_name":"Translation"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/code-translation-on-nlc2cmd","task":"Code Translation","dataset":"NLC2CMD","model":"Magnum","rank_in_archive_order":2,"of":2,"metrics":{"Accuracy":"0.532"},"uses_additional_data":false}],"syntology":{"atlas_url":null,"mcp":null,"developers":"https://syntology.ai/developers"},"arxiv_metadata":null,"syntology_extracted_results":null}