arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2302.07845cs.CLcs.AIcs.PF
收藏

NL2CMD:自然语言到Bash命令翻译的更新工作流

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

Vanderbilt University(范德堡大学)

Quchen Fu, Zhongwei Teng, Marco Georgaklis, Jules White, Douglas C. Schmidt

AI总结:

本文提出NL2CMD工作流,介绍一个最新Bash命令翻译模型和一个自动生成、规模扩大六倍的数据集,并评估ChatGPT作为数据生成器的潜力。

摘要:

将自然语言翻译成Bash命令是一个新兴的研究领域,近年来受到越来越多的关注。大多数研究致力于生成更准确的翻译模型。据我们所知,目前仅有两种数据集可用,其中一种基于另一种。这两种数据集都涉及通过已知数据源(如Stack Overflow、众包等平台)进行数据抓取,并聘请专家验证和纠正英文文本或Bash命令。本文对从零开始合成Bash命令的研究做出了两项贡献。首先,我们描述了一个用于从相应英文文本生成Bash命令的最新翻译模型。其次,我们引入了一个新的NL2CMD数据集,该数据集自动生成,人工干预极少,且规模比先前数据集大六倍以上。由于生成流程不依赖于现有的Bash命令,命令的分布和类型可以自定义调整。我们评估了ChatGPT在此任务上的性能,并讨论了将其用作数据生成器的潜力。我们的实证结果表明,我们数据集的规模和多样性可以为语义解析研究人员提供独特的机会。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑