-
install the required packages using pip install -r requierments.txt make sure you have pytorch installed
-
replace <<API_KEY>> inside config.ini with your openAI API key
-
make sure the run_scripts.sh file has permission to execute by running chmod
-
replace all required inputs surrounded by <<>> inside config.ini by following the comment instructions on each line
-
run the following command:
./run_scripts.sh
This file iteratively trains the symbolic model and generates patterns using the data's ground truth. The initial run may take several minutes due to caching, but subsequent runs should be quicker.
This file uses the candidate phrases generated in the previous file to generate the counterfactual examples that will be used for finetuning a GPT-3.5.
This file uses the three level filters -- herustic, symbolic, and GPT-discriminator -- to assess the qualtity of previously generated counterfactuals.
This file fine-tunes a GPT-3.5 model to generate counterfactual data.
These files iteratevely train BERT and GPT models using the different cases and meaure the performance of the trained models.