Code for paper Binding Language Models in Symbolic Languages. Please refer to our demo page to have an instant experience of Binder.
To establish the environment run this code in the shell:
conda env create -f py3.7binder.yaml
pip install records==0.5.3
That will create the environment binder
we used.
Activate the environment by running
conda activate binder
Get private key
(sk-xxxx like) from OpenAI, and save the key in key.txt
file, make sure you have the rights to access the model you need.
Check out commands in run.py
If you find our work helpful, please cite as
@inproceedings{Cheng2022BindingLM,
title={Binding Language Models in Symbolic Languages},
author={Zhoujun Cheng and Tianbao Xie and Peng Shi and Chengzu Li and R.K. Nadkarni and Yushi Hu and Caiming Xiong and Dragomir Radev and Marilyn Ostendorf and Luke Zettlemoyer and Noah A. Smith and Tao Yu},
journal={arXiv preprint arXiv:2210.02875},
year={2022}
}