This repo contains code for Tabular Reasoning via Two-stage Knowledge Injection.
Run the following command to install the dependency packages.
pip install requirements.txtRun the following command to install the dependency packages.
cd generate_lf
python generate_lf.py --output OUTPUT_DIR --table_id_file ./table_id.txt --table_source_folder TABLE_FOLDERThe TABLE_FOLDER can be found in the repo https://github.com/wenhuchen/Table-Fact-Checking.
Run the following command to perform pre-training and fine-tuning respectively.
bash run_pretrain.shbash run_finetune.shFor the model evaluation, you can remove the --do-train in all scripts and change the --model_name_or_path to the trained model paths.