├── .gitignore ├── README.md ├── astnode.py ├── code_gen.py ├── components.py ├── config.py ├── dataset.py ├── decoder.py ├── evaluation.py ├── interactive_mode.py ├── lang ├── __init__.py ├── grammar.py ├── ifttt │ ├── __init__.py │ ├── grammar.py │ ├── ifttt_dataset.py │ └── parse.py ├── py │ ├── __init__.py │ ├── grammar.py │ ├── parse.py │ ├── py_dataset.py │ ├── seq2tree_exp.py │ └── unaryclosure.py ├── type_system.py └── util.py ├── learner.py ├── main.py ├── model.py ├── nn ├── __init__.py ├── activations.py ├── initializations.py ├── layers │ ├── __init__.py │ ├── convolution.py │ ├── core.py │ ├── embeddings.py │ └── recurrent.py ├── objectives.py ├── optimizers.py └── utils │ ├── __init__.py │ ├── config_factory.py │ ├── generic_utils.py │ ├── io_utils.py │ ├── np_utils.py │ ├── test_utils.py │ └── theano_utils.py ├── parse.py ├── parse_hiro.py ├── run_interactive.sh ├── run_interactive_singlefile.sh ├── run_trained_model.sh ├── train.sh └── util.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcyin/NL2code/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcyin/NL2code/HEAD/README.md -------------------------------------------------------------------------------- /astnode.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcyin/NL2code/HEAD/astnode.py -------------------------------------------------------------------------------- /code_gen.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcyin/NL2code/HEAD/code_gen.py -------------------------------------------------------------------------------- /components.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcyin/NL2code/HEAD/components.py -------------------------------------------------------------------------------- /config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcyin/NL2code/HEAD/config.py -------------------------------------------------------------------------------- /dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcyin/NL2code/HEAD/dataset.py -------------------------------------------------------------------------------- /decoder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcyin/NL2code/HEAD/decoder.py -------------------------------------------------------------------------------- /evaluation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcyin/NL2code/HEAD/evaluation.py -------------------------------------------------------------------------------- /interactive_mode.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcyin/NL2code/HEAD/interactive_mode.py -------------------------------------------------------------------------------- /lang/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lang/grammar.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcyin/NL2code/HEAD/lang/grammar.py -------------------------------------------------------------------------------- /lang/ifttt/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lang/ifttt/grammar.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcyin/NL2code/HEAD/lang/ifttt/grammar.py -------------------------------------------------------------------------------- /lang/ifttt/ifttt_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcyin/NL2code/HEAD/lang/ifttt/ifttt_dataset.py -------------------------------------------------------------------------------- /lang/ifttt/parse.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcyin/NL2code/HEAD/lang/ifttt/parse.py -------------------------------------------------------------------------------- /lang/py/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lang/py/grammar.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcyin/NL2code/HEAD/lang/py/grammar.py -------------------------------------------------------------------------------- /lang/py/parse.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcyin/NL2code/HEAD/lang/py/parse.py -------------------------------------------------------------------------------- /lang/py/py_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcyin/NL2code/HEAD/lang/py/py_dataset.py -------------------------------------------------------------------------------- /lang/py/seq2tree_exp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcyin/NL2code/HEAD/lang/py/seq2tree_exp.py -------------------------------------------------------------------------------- /lang/py/unaryclosure.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcyin/NL2code/HEAD/lang/py/unaryclosure.py -------------------------------------------------------------------------------- /lang/type_system.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lang/util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcyin/NL2code/HEAD/lang/util.py -------------------------------------------------------------------------------- /learner.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcyin/NL2code/HEAD/learner.py -------------------------------------------------------------------------------- /main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcyin/NL2code/HEAD/main.py -------------------------------------------------------------------------------- /model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcyin/NL2code/HEAD/model.py -------------------------------------------------------------------------------- /nn/__init__.py: -------------------------------------------------------------------------------- 1 | __author__ = 'yinpengcheng' 2 | -------------------------------------------------------------------------------- /nn/activations.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcyin/NL2code/HEAD/nn/activations.py -------------------------------------------------------------------------------- /nn/initializations.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcyin/NL2code/HEAD/nn/initializations.py -------------------------------------------------------------------------------- /nn/layers/__init__.py: -------------------------------------------------------------------------------- 1 | __author__ = 'yinpengcheng' 2 | -------------------------------------------------------------------------------- /nn/layers/convolution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcyin/NL2code/HEAD/nn/layers/convolution.py -------------------------------------------------------------------------------- /nn/layers/core.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcyin/NL2code/HEAD/nn/layers/core.py -------------------------------------------------------------------------------- /nn/layers/embeddings.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcyin/NL2code/HEAD/nn/layers/embeddings.py -------------------------------------------------------------------------------- /nn/layers/recurrent.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcyin/NL2code/HEAD/nn/layers/recurrent.py -------------------------------------------------------------------------------- /nn/objectives.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcyin/NL2code/HEAD/nn/objectives.py -------------------------------------------------------------------------------- /nn/optimizers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcyin/NL2code/HEAD/nn/optimizers.py -------------------------------------------------------------------------------- /nn/utils/__init__.py: -------------------------------------------------------------------------------- 1 | __author__ = 'yinpengcheng' 2 | -------------------------------------------------------------------------------- /nn/utils/config_factory.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcyin/NL2code/HEAD/nn/utils/config_factory.py -------------------------------------------------------------------------------- /nn/utils/generic_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcyin/NL2code/HEAD/nn/utils/generic_utils.py -------------------------------------------------------------------------------- /nn/utils/io_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcyin/NL2code/HEAD/nn/utils/io_utils.py -------------------------------------------------------------------------------- /nn/utils/np_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcyin/NL2code/HEAD/nn/utils/np_utils.py -------------------------------------------------------------------------------- /nn/utils/test_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcyin/NL2code/HEAD/nn/utils/test_utils.py -------------------------------------------------------------------------------- /nn/utils/theano_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcyin/NL2code/HEAD/nn/utils/theano_utils.py -------------------------------------------------------------------------------- /parse.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcyin/NL2code/HEAD/parse.py -------------------------------------------------------------------------------- /parse_hiro.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcyin/NL2code/HEAD/parse_hiro.py -------------------------------------------------------------------------------- /run_interactive.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcyin/NL2code/HEAD/run_interactive.sh -------------------------------------------------------------------------------- /run_interactive_singlefile.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcyin/NL2code/HEAD/run_interactive_singlefile.sh -------------------------------------------------------------------------------- /run_trained_model.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcyin/NL2code/HEAD/run_trained_model.sh -------------------------------------------------------------------------------- /train.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcyin/NL2code/HEAD/train.sh -------------------------------------------------------------------------------- /util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pcyin/NL2code/HEAD/util.py --------------------------------------------------------------------------------