Explainable Natural Language to Bash Translation using Abstract Syntax Tree
Natural language processing for program synthesis has been widely researched. In this work, we focus on generating Bash commands from natural language invocations with explanations. We propose a novel transformer based solution by utilizing Bash Abstract Syntax Trees and manual pages. Our method incorporates tree structure information in the transformer architecture and provides explanations for its predictions via alignment matrices between user invocation and manual page text. Our method performs on par with the state of the art performance on Natural Language Context to Command task and performs better than fine-tuned T5 and Seq2Seq models.
Code (1)
Tasks
Program SynthesisTranslationSimilar Papers 제목 키워드 기반
Structural Transfer Learning in NL-to-Bash Semantic Parsers
Large-scale pre-training has made progress in many fields of natural language processing, though little is understood about the design of pre-training datasets. We propose a methodology for obtaining a quantitative under…
Machine TranslationSemantic ParsingTransfer LearningTranslationEfficient Constituency Tree based Encoding for Natural Language to Bash Translation
Bash is a Unix command language used for interacting with the Operating System. Recent works on natural language to Bash translation have made significant advances, but none of the previous methods utilize the problem’s …
CPUGPUTranslationA Transformer-based Approach for Translating Natural Language to Bash Commands
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 …
Code TranslationSentenceTranslationNL2CMD: An Updated Workflow for Natural Language to Bash Commands Translation
Translating natural language into Bash Commands is an emerging research field that has gained attention in recent years. Most efforts have focused on producing more accurate translation models. To the best of our knowled…
Code TranslationDiversitySemantic ParsingTranslationLLM-Supported Natural Language to Bash Translation
The Bourne-Again Shell (Bash) command-line interface for Linux systems has complex syntax and requires extensive specialized knowledge. Using the natural language to Bash command (NL2SH) translation capabilities of large…
In-Context LearningTranslation