Setup the environment using environment.yaml
Data is uploaded to huggingface. Do not extract from zip and upload anywhere to prevent data leakage.
args/args_qa: Main args file for the experiments
config_gen/- Contains model names and prefixes
config/- Contains other CONSTANTS
human_data- Download from this gdrive for human evaluation data
metadatagender_info_final.csv: Contains the gender information of the questions of the benchmark.pron_dialogue_info.csv: Contains whether the pronoun is part of a dialogue or not.
qas/data/: Download from gdrive for all splits. Test split - Benchmark is available at huggingfaceqas_dev: 600-question dev setqas_test: 1200-question test setqas_random_{i}: 600-question non-repetitive questions
prompts/base/: Prompt information for the version without explanationsdesc/: Prompt information for the version with explanationscoref/: Prompt information for the version with explanations directed towards coref-chains.
raw_data/: Not necessary for the evaluation alone. Download for reference from gdrive here
python -m qa_generation.constrained.generate \
model_name={model_full_name} \
device="cuda:0/auto" \
split="dev/test/random_{i}" \
cot="base/desc/coref"python -m qa_generation.closed.generate_openai \
model_name={model_full_name} \
split="dev/test/random_{i}" \
cot="base/desc/coref"python -m qa_generation.closed.generate_gemini \
model_name={model_full_name} \
split="dev/test/random_{i}" \
cot="base/desc/coref"