通过交互式学习自然化程序设计语言
Naturalizing a Programming Language via Interactive Learning
摘要:
我们的目标是创建一个方便的自然语言接口,用于执行指定良好但复杂的操作,如分析数据、操作文本和查询数据库。然而,与程序设计语言所具有的能力相比,用于这些任务的现有自然语言接口是相当原始的。为了弥合这一差距,我们从核心程序设计语言开始,并允许用户通过定义替代的、更自然的语法和越来越复杂的概念来逐步“自然化”核心语言。在体素的世界中,我们表明,一个社区的用户可以同时教一个共同的系统不同的语言,并用它来建立数百个复杂的体素结构。在三天的时间里,这些用户从只使用核心语言到使用最后10K话语中的85.9%的归化语言。
英文摘要:
Our goal is to create a convenient natural language interface for performing well-specified but complex actions such as analyzing data, manipulating text, and querying databases. However, existing natural language interfaces for such tasks are quite primitive compared to the power one wields with a programming language. To bridge this gap, we start with a core programming language and allow users to "naturalize" the core language incrementally by defining alternative, more natural syntax and increasingly complex concepts in terms of compositions of simpler ones. In a voxel world, we show that a community of users can simultaneously teach a common system a diverse language and use it to build hundreds of complex voxel structures. Over the course of three days, these users went from using only the core language to using the naturalized language in 85.9\% of the last 10K utterances.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。