← 返回资源分享
A Syntactic Neural Model for General-Purpose Code Generation
论文
论文
发布时间2017-04-06
发表ACL 2017 7 · arXiv:1704.01696
作者:Graham Neubig,Pengcheng Yin
详细介绍
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.
代码仓库 (6)
zimengq/PyTorch-ReCodePyTorch
Peyvand-Andalibi/NL2Code
pcyin/NL2code
gsh2014/grammar-coarse2fine
yangkai2g7k/nl2code
pedrobragap/products_classification
