Explainable Natural Language to Bash Translation using Abstract Syntax Tree
2021-11-01CoNLL (EMNLP) 2021Code Available0· sign in to hype
Shikhar Bharadwaj, Shirish Shevade
Code Available — Be the first to reproduce this paper.
ReproduceCode
- github.com/shikhar-s/explainable-nl-to-bash-astOfficialIn papernone★ 4
Abstract
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.