arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1509.00413cs.PL
收藏

使用自然语言的程序合成

Program Synthesis using Natural Language

Aditya Desai, Sumit Gulwani, Vineet Hingorani, Nidhi Jain, Amey Karkare, Mark Marron, Sailesh R, Subhajit Roy

摘要:

与计算机交互是数百万人的一项无处不在的活动。重复性或专门的任务通常需要创建小型的,通常是一次性的程序。最终用户努力学习和使用大量的领域特定语言(DSL)来有效地完成这些任务。我们提出了一个一般的框架,用于构建程序合成器,采取自然语言(NL)的输入和产生的目标DSL的表达式。该框架将DSL定义和由NL/DSL对组成的训练数据作为输入。通过学习最佳权重和分类器(使用NLP特征),它构建了一个合成器,这些分类器对基于关键字编程的翻译的输出进行排名。我们将我们的框架应用于三个领域:重复的文本编辑,智能辅导系统,和航班信息查询。在1200多个英文描述中,各自的合成器分别将80%和90%的描述列为前1名和前3名。

英文摘要:

Interacting with computers is a ubiquitous activity for millions of people. Repetitive or specialized tasks often require creation of small, often one-off, programs. End-users struggle with learning and using the myriad of domain-specific languages (DSLs) to effectively accomplish these tasks. We present a general framework for constructing program synthesizers that take natural language (NL) inputs and produce expressions in a target DSL. The framework takes as input a DSL definition and training data consisting of NL/DSL pairs. From these it constructs a synthesizer by learning optimal weights and classifiers (using NLP features) that rank the outputs of a keyword-programming based translation. We applied our framework to three domains: repetitive text editing, an intelligent tutoring system, and flight information queries. On 1200+ English descriptions, the respective synthesizers rank the desired program as the top-1 and top-3 for 80% and 90% descriptions respectively.

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

↑