计算机科学 > 计算与语言
[提交于 2017年4月7日]
标题:A Syntactic Neural Model for General-Purpose Code Generation
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:We consider the problem of parsing natural language descriptions into source code written in a general-purpose programming language like Python. Existing data-driven methods treat this problem as a language generation task without considering the underlying syntax of the target programming language. Informed by previous work in semantic parsing, in this paper we propose a novel neural architecture powered by a grammar model to explicitly capture the target syntax as prior knowledge. Experiments find this an effective way to scale up to generation of complex programs from natural language descriptions, achieving state-of-the-art results that well outperform previous code generation and semantic parsing approaches.
提交历史
来自:Pengcheng Yin[v1] 2017年4月7日 星期五 00:00:00 UTC