This repository is an implementation of the original NATURAL experiments in End-To-End Causal Effect Estimation from Unstructured Natural Language Data. See naturalv2 for an improved version that is faster, configurable, and extensible.
git clone https://github.com/nikitadhawan/natural.git
cd natural
conda create --name natural_env --file requirements.txt
conda activate natural_env
python setup.py installTo use Open AI models, request a key to use the API and copy it into natural/key.txt.
Follow instructions in the LLAMA2 and LLAMA3 repositories to download model weights.
See post_generation/scripts.
The resulting datasets are also available for download in data/.
See llm_extraction/scripts.
See causal_inf/scripts.