| | #!/bin/bash |
| |
|
| | |
| | |
| | |
| | |
| |
|
| | DIR=`pwd` |
| | |
| | |
| | WOW_DATA_FOLDER=<PATH_OF_WIZARD_OF_WIKIPEDIA_DATA_FOLDER> |
| | WOI_DATA_FOLDER=<PATH_OF_WIZARD_OF_INTERNET_DATA_FOLDER> |
| |
|
| | |
| | |
| | python ${DIR}/tasks/msdp/preprocessing.py \ |
| | --func process_wow_dataset \ |
| | --raw_file ${WOW_DATA_FOLDER}/train.json \ |
| | --processed_file ${WOW_DATA_FOLDER}/train_processed.txt |
| |
|
| | |
| | python ${DIR}/tasks/msdp/preprocessing.py \ |
| | --func process_wow_dataset \ |
| | --raw_file ${WOW_DATA_FOLDER}/test_random_split.json \ |
| | --processed_file ${WOW_DATA_FOLDER}/testseen_processed.txt \ |
| | --knwl_ref_file ${WOW_DATA_FOLDER}/output_testseen_knowledge_reference.txt \ |
| | --resp_ref_file ${WOW_DATA_FOLDER}/output_testseen_response_reference.txt |
| |
|
| | |
| | python ${DIR}/tasks/msdp/preprocessing.py \ |
| | --func process_wow_dataset \ |
| | --raw_file ${WOW_DATA_FOLDER}/test_topic_split.json \ |
| | --processed_file ${WOW_DATA_FOLDER}/testunseen_processed.txt \ |
| | --knwl_ref_file ${WOW_DATA_FOLDER}/output_testunseen_knowledge_reference.txt \ |
| | --resp_ref_file ${WOW_DATA_FOLDER}/output_testunseen_response_reference.txt |
| |
|
| |
|
| | |
| | |
| | python ${DIR}/tasks/msdp/preprocessing.py \ |
| | --func process_woi_dataset \ |
| | --raw_file ${WOI_DATA_FOLDER}/test.jsonl \ |
| | --processed_file ${WOI_DATA_FOLDER}/test_processed.txt \ |
| | --knwl_ref_file ${WOI_DATA_FOLDER}/output_test_knowledge_reference.txt \ |
| | --resp_ref_file ${WOI_DATA_FOLDER}/output_test_response_reference.txt |
| |
|
| |
|
| | |
| | MODEL_FILE=<PATH_OF_THE_FINETUNED_DPR_MODEL> |
| | |
| | python ${DIR}/tasks/msdp/preprocessing.py \ |
| | --func get_knwl_gen_prompts \ |
| | --test_file ${WOW_DATA_FOLDER}/testseen_processed.txt \ |
| | --train_file ${WOW_DATA_FOLDER}/train_processed.txt \ |
| | --model_file ${MODEL_FILE} \ |
| | --processed_file ${WOW_DATA_FOLDER}/output_testseen_knowledge_prompts.json \ |
| | --data_type wow_seen |
| |
|
| | |
| | python ${DIR}/tasks/msdp/preprocessing.py \ |
| | --func get_knwl_gen_prompts \ |
| | --test_file ${WOW_DATA_FOLDER}/testunseen_processed.txt \ |
| | --train_file ${WOW_DATA_FOLDER}/train_processed.txt \ |
| | --model_file ${MODEL_FILE} \ |
| | --processed_file ${WOW_DATA_FOLDER}/output_testunseen_knowledge_prompts.json \ |
| | --data_type wow_unseen |
| |
|
| | |
| | python ${DIR}/tasks/msdp/preprocessing.py \ |
| | --func get_knwl_gen_prompts \ |
| | --test_file ${WOI_DATA_FOLDER}/test_processed.txt \ |
| | --train_file ${WOW_DATA_FOLDER}/train_processed.txt \ |
| | --model_file ${MODEL_FILE} \ |
| | --processed_file ${WOI_DATA_FOLDER}/output_test_knowledge_prompts.json \ |
| | --data_type woi |
| |
|
| |
|
| | |
| | python ${DIR}/tasks/msdp/preprocessing.py \ |
| | --func get_resp_gen_prompts \ |
| | --train_file ${WOW_DATA_FOLDER}/train_processed.txt \ |
| | --processed_file ${WOW_DATA_FOLDER}/output_response_prompts.txt |
| |
|
| |
|