Skip to content
/ NL2code Public

A syntactic neural model for parsing natural language to executable code

Notifications You must be signed in to change notification settings

pcyin/NL2code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f9732f1 · Jul 6, 2017

History

91 Commits
Feb 5, 2017
Dec 28, 2016
Apr 20, 2017
Jun 10, 2017
Feb 5, 2017
Apr 20, 2017
Feb 5, 2017
Dec 28, 2016
Jan 3, 2017
Dec 28, 2016
Apr 20, 2017
Jul 6, 2017
Jan 3, 2017
Nov 26, 2016
Feb 5, 2017
Nov 26, 2016
Oct 26, 2016
Jun 10, 2017
Jul 5, 2017
Apr 21, 2017
Apr 21, 2017
Nov 12, 2016

Repository files navigation

NL2code

A syntactic neural model for parsing natural language to executable code paper.

Dataset and Trained Models

Get serialized datasets and trained models from here. Put models/ and data/ folders under the root directory of the project.

Usage

To train new model

. train.sh [hs|django]

To use trained model for decoding test sets

. run_trained_model.sh [hs|django]

Dependencies

  • Theano
  • vprof
  • NLTK 3.2.1
  • astor 0.6

Reference

@inproceedings{yin17acl,
    title = {A Syntactic Neural Model for General-Purpose Code Generation},
    author = {Pengcheng Yin and Graham Neubig},
    booktitle = {The 55th Annual Meeting of the Association for Computational Linguistics (ACL)},
    address = {Vancouver, Canada},
    month = {July},
    url = {https://arxiv.org/abs/1704.01696},
    year = {2017}
}

About

A syntactic neural model for parsing natural language to executable code

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published