Skip to content
forked from xlang-ai/Binder

Code for the paper "Binding Language Models in Symbolic Languages"

License

Notifications You must be signed in to change notification settings

Yale-LILY/Binder

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Binder🔗: Binding Language Models in Symbolic Languages


Code for paper Binding Language Models in Symbolic Languages. Please refer to our project page for more demonstrations and up-to-date related resources. Check out our demo page to have an instant experience of Binder, which achieves sota or comparable performance with only dozens of(~10) program annotations.

Updates

Dependencies

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.

Usage

Environment setup

Activate the environment by running

conda activate binder

Add key

Apply and get API keys(sk-xxxx like) from OpenAI API, save the key in key.txt file, make sure you have the rights to access the model(in the implementation of this repo, code-davinci-002) you need.

Run

Check out commands in run.py

Citation

If you find our work helpful, please cite as

@article{Cheng2022BindingLM,
  title={Binding Language Models in Symbolic Languages},
  author={Zhoujun Cheng and Tianbao Xie and Peng Shi and Chengzu Li and Rahul Nadkarni and Yushi Hu and Caiming Xiong and Dragomir Radev and Mari Ostendorf and Luke Zettlemoyer and Noah A. Smith and Tao Yu},
  journal={ArXiv},
  year={2022},
  volume={abs/2210.02875}
}

Contributors

About

Code for the paper "Binding Language Models in Symbolic Languages"

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%