NL2CMD: An Updated Workflow for Natural Language to Bash Commands Translation

Quchen Fu, Zhongwei Teng, Marco Georgaklis, Jules White, Douglas C. Schmidt
2/15/2023
cs.CLcs.AIcs.PF

No official code found. Best implementation: magnumresearchgroup/Magnum-NLC2CMD (34 stars, MIT, last commit 2023-03-06). 1 more below.

Abstract

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 knowledge, only two datasets are available, with one based on the other. Both datasets involve scraping through known data sources (through platforms like stack overflow, crowdsourcing, etc.) and hiring experts to validate and correct either the English text or Bash Commands. This paper provides two contributions to research on synthesizing Bash Commands from scratch. First, we describe a state-of-the-art translation model used to generate Bash Commands from the corresponding English text. Second, we introduce a new NL2CMD dataset that is automatically generated, involves minimal human intervention, and is over six times larger than prior datasets. Since the generation pipeline does not rely on existing Bash Commands, the distribution and types of commands can be custom adjusted. We evaluate the performance of ChatGPT on this task and discuss the potential of using it as a data generator. Our empirical results show how the scale and diversity of our dataset can offer unique opportunities for semantic parsing researchers.

View on arXivView PDF

Code Implementations(2)

MIT

Magnum-NLC2CMD is the winning solution for the NeurIPS 2020 NLC2CMD challenge.

348PythonDec 8, 20203 years agoMIT

A bash command generator with ChatGPT

70PythonOct 12, 20213 years ago

Similar Papers

Cite this paper

@article{fu2023nlcmd,
  title  = {NL2CMD: An Updated Workflow for Natural Language to Bash Commands Translation},
  author = {Quchen Fu and Zhongwei Teng and Marco Georgaklis and Jules White and Douglas C. Schmidt},
  year   = {2023},
  eprint = {2302.07845},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2302.07845v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2302.07845.svg)](https://codeofpaper.com/paper/2302.07845)

Discussion