#!/bin/bash TARGET_DIR=../../data/unified if [ ! -d "${TARGET_DIR}" ]; then mkdir -p ${TARGET_DIR} fi # DSTC 2 if [ ! -d "${TARGET_DIR}/DSTC2" ]; then echo "Converting DSTC2 to unified format" python preprocess/DSTC2.py \ --input_dir ../../data/origin/DSTC2 \ --output_dir ${TARGET_DIR}/DSTC2 fi # sim-M if [ ! -d "${TARGET_DIR}/sim-M" ]; then echo "Converting sim-M to unified format" python preprocess/Google_Simulated_Dialogue.py \ --input_dir ../../data/origin/sim-M \ --output_dir ${TARGET_DIR}/sim-M \ --domain "movie" fi # sim-R if [ ! -d "${TARGET_DIR}/sim-R" ]; then echo "Converting sim-R to unified format" python preprocess/Google_Simulated_Dialogue.py \ --input_dir ../../data/origin/sim-R \ --output_dir ${TARGET_DIR}/sim-R \ --domain "restaurant" fi # MultiWOZ 2.2 if [ ! -d "${TARGET_DIR}/MultiWOZ_2.2" ]; then echo "Converting MultiWOZ_2.2 to unified format" python preprocess/MultiWOZ_2.2.py \ --input_dir ../../data/origin/MultiWOZ_2.2 \ --output_dir ${TARGET_DIR}/MultiWOZ_2.2 fi # SGD if [ ! -d "${TARGET_DIR}/SGD" ]; then echo "Converting SGD to unified format" python preprocess/SGD.py \ --input_dir ../../data/origin/SGD \ --output_dir ${TARGET_DIR}/SGD fi # MultiWOZ 2.1 if [ ! -d "${TARGET_DIR}/MultiWOZ_2.1" ]; then echo "Converting MultiWOZ_2.1 to unified format" python preprocess/MultiWOZ_2.1.py \ --input_dir ../../data/origin/MultiWOZ_2.1 \ --output_dir ${TARGET_DIR}/MultiWOZ_2.1 fi # Spider if [ ! -d "${TARGET_DIR}/Spider" ]; then echo "Converting Spider to unified format" python preprocess/Spider.py \ --input_dir ../../data/origin/Spider \ --output_dir ${TARGET_DIR}/Spider fi # SParC if [ ! -d "${TARGET_DIR}/SParC" ]; then echo "Converting SParC to unified format" python preprocess/SParC.py \ --input_dir ../../data/origin/SParC/sparc \ --output_dir ${TARGET_DIR}/SParC fi # CoSQL if [ ! -d "${TARGET_DIR}/CoSQL" ]; then echo "Converting CoSQL to unified format" python preprocess/CoSQL.py \ --input_dir ../../data/origin/CoSQL/cosql_dataset \ --output_dir ${TARGET_DIR}/CoSQL fi # MultiDoGo if [ ! -d "${TARGET_DIR}/MultiDoGo" ]; then echo "Converting MultiDoGo to unified format" python preprocess/MultiDoGo.py \ --input_dir ../../data/origin/MultiDoGo \ --output_dir ${TARGET_DIR}/MultiDoGo fi # Restaurant8k if [ ! -d "${TARGET_DIR}/Restaurant8k" ]; then echo "Converting Restaurant8k to unified format" python preprocess/Restaurant8k.py \ --input_dir ../../data/origin/Restaurant8k \ --output_dir ${TARGET_DIR}/Restaurant8k fi # SNIPS if [ ! -d "${TARGET_DIR}/SNIPS" ]; then echo "Converting SNIPS to unified format" python preprocess/SNIPS.py \ --input_dir ../../data/origin/SNIPS \ --output_dir ${TARGET_DIR}/SNIPS fi # DDRel if [ ! -d "${TARGET_DIR}/DDRel" ]; then echo "Converting DDRel to unified format" python preprocess/DDRel.py \ --input_dir ../../data/origin/DDRel \ --output_dir ${TARGET_DIR}/DDRel fi # CamRest676 if [ ! -d "${TARGET_DIR}/CamRest676" ]; then echo "Converting CamRest676 to unified format" python preprocess/CamRest676.py \ --input_dir ../../data/origin/CamRest676 \ --output_dir ${TARGET_DIR}/CamRest676 fi # CANARD if [ ! -d "${TARGET_DIR}/CANARD" ]; then echo "Converting CANARD to unified format" python preprocess/CANARD.py \ --input_dir ../../data/origin/CANARD \ --output_dir ${TARGET_DIR}/CANARD fi # AlphaNLI if [ ! -d "${TARGET_DIR}/AlphaNLI" ]; then echo "Converting AlphaNLI to unified format" python preprocess/AlphaNLI.py \ --input_dir ../../data/origin/AlphaNLI \ --output_dir ${TARGET_DIR}/AlphaNLI fi # CoQA if [ ! -d "${TARGET_DIR}/CoQA" ]; then echo "Converting CoQA to unified format" python preprocess/CoQA.py \ --input_dir ../../data/origin/CoQA \ --output_dir ${TARGET_DIR}/CoQA fi # DoQA if [ ! -d "${TARGET_DIR}/DoQA" ]; then echo "Converting DoQA to unified format" python preprocess/DoQA.py \ --input_dir ../../data/origin/DoQA \ --output_dir ${TARGET_DIR}/DoQA fi # FriendsQA if [ ! -d "${TARGET_DIR}/FriendsQA" ]; then echo "Converting FriendsQA to unified format" python preprocess/FriendsQA.py \ --input_dir ../../data/origin/FriendsQA \ --output_dir ${TARGET_DIR}/FriendsQA fi # Molweni if [ ! -d "${TARGET_DIR}/Molweni" ]; then echo "Converting Molweni to unified format" python preprocess/Molweni.py \ --input_dir ../../data/origin/Molweni \ --output_dir ${TARGET_DIR}/Molweni fi # QuAC if [ ! -d "${TARGET_DIR}/QuAC" ]; then echo "Converting QuAC to unified format" python preprocess/QuAC.py \ --input_dir ../../data/origin/QuAC \ --output_dir ${TARGET_DIR}/QuAC fi # SQuAD 2.0 if [ ! -d "${TARGET_DIR}/SQuAD_2.0" ]; then echo "Converting SQuAD 2.0 to unified format" python preprocess/SQuAD_2.0.py \ --input_dir ../../data/origin/SQuAD_2.0 \ --output_dir ${TARGET_DIR}/SQuAD_2.0 fi # CommonsenseQA if [ ! -d "${TARGET_DIR}/CommonsenseQA" ]; then echo "Converting CommonsenseQA to unified format" python preprocess/CommonsenseQA.py \ --input_dir ../../data/origin/CommonsenseQA \ --output_dir ${TARGET_DIR}/CommonsenseQA fi # CommonsenseQA 2.0 if [ ! -d "${TARGET_DIR}/CommonsenseQA_2.0" ]; then echo "Converting CommonsenseQA 2.0 to unified format" python preprocess/CommonsenseQA_2.0.py \ --input_dir ../../data/origin/CommonsenseQA_2.0 \ --output_dir ${TARGET_DIR}/CommonsenseQA_2.0 fi # CosmosQA if [ ! -d "${TARGET_DIR}/CosmosQA" ]; then echo "Converting CosmosQA to unified format" python preprocess/CosmosQA.py \ --input_dir ../../data/origin/CosmosQA \ --output_dir ${TARGET_DIR}/CosmosQA fi # DREAM if [ ! -d "${TARGET_DIR}/DREAM" ]; then echo "Converting DREAM to unified format" python preprocess/DREAM.py \ --input_dir ../../data/origin/DREAM \ --output_dir ${TARGET_DIR}/DREAM fi # MuTual if [ ! -d "${TARGET_DIR}/MuTual" ]; then echo "Converting MuTual to unified format" python preprocess/MuTual.py \ --input_dir ../../data/origin/MuTual \ --output_dir ${TARGET_DIR}/MuTual fi # RACE if [ ! -d "${TARGET_DIR}/RACE" ]; then echo "Converting RACE to unified format" python preprocess/RACE.py \ --input_dir ../../data/origin/RACE \ --output_dir ${TARGET_DIR}/RACE fi # PCMD if [ ! -d "${TARGET_DIR}/PCMD" ]; then echo "Converting PCMD to unified format" python preprocess/PCMD.py \ --input_dir ../../data/origin/PCMD \ --output_dir ${TARGET_DIR}/PCMD fi # SocialIQA if [ ! -d "${TARGET_DIR}/SocialIQA" ]; then echo "Converting SocialIQA to unified format" python preprocess/SocialIQA.py \ --input_dir ../../data/origin/SocialIQA \ --output_dir ${TARGET_DIR}/SocialIQA fi # DialogSum if [ ! -d "${TARGET_DIR}/DialogSum" ]; then echo "Converting DialogSum to unified format" python preprocess/DialogSum.py \ --input_dir ../../data/origin/DialogSum \ --output_dir ${TARGET_DIR}/DialogSum fi # SAMSum if [ ! -d "${TARGET_DIR}/SAMSum" ]; then echo "Converting SAMSum to unified format" python preprocess/SAMSum.py \ --input_dir ../../data/origin/SAMSum \ --output_dir ${TARGET_DIR}/SAMSum fi # CMUDoG if [ ! -d "${TARGET_DIR}/CMUDoG" ]; then echo "Converting CMUDoG to unified format" python preprocess/CMUDoG.py \ --input_dir ../../data/origin/CMUDoG \ --output_dir ${TARGET_DIR}/CMUDoG fi # CommonsenseDialog if [ ! -d "${TARGET_DIR}/CommonsenseDialog" ]; then echo "Converting CommonsenseDialog to unified format" python preprocess/CommonsenseDialog.py \ --input_dir ../../data/origin/CommonsenseDialog \ --output_dir ${TARGET_DIR}/CommonsenseDialog fi # EmpathicDialogue if [ ! -d "${TARGET_DIR}/EmpathicDialogue" ]; then echo "Converting EmpathicDialogue to unified format" python preprocess/EmpathicDialogue.py \ --input_dir ../../data/origin/EmpathicDialogue \ --output_dir ${TARGET_DIR}/EmpathicDialogue fi # NarrativeQA if [ ! -d "${TARGET_DIR}/NarrativeQA" ]; then echo "Converting NarrativeQA to unified format" python preprocess/NarrativeQA.py \ --input_dir ../../data/origin/NarrativeQA \ --output_dir ${TARGET_DIR}/NarrativeQA fi # Soccer if [ ! -d "${TARGET_DIR}/Soccer" ]; then echo "Converting Soccer to unified format" python preprocess/Soccer.py \ --input_dir ../../data/origin/Soccer \ --output_dir ${TARGET_DIR}/Soccer fi # Incar if [ ! -d "${TARGET_DIR}/Incar" ]; then echo "Converting Incar to unified format" python preprocess/Incar.py \ --input_dir ../../data/origin/Incar \ --output_dir ${TARGET_DIR}/Incar fi # CornellMovie if [ ! -d "${TARGET_DIR}/CornellMovie" ]; then echo "Converting CornellMovie to unified format" python preprocess/CornellMovie.py \ --input_dir ../../data/origin/CornellMovie \ --output_dir ${TARGET_DIR}/CornellMovie fi # DailyDialog if [ ! -d "${TARGET_DIR}/DailyDialog" ]; then echo "Converting DailyDialog to unified format" python preprocess/DailyDialog.py \ --input_dir ../../data/origin/DailyDialog \ --output_dir ${TARGET_DIR}/DailyDialog fi # EmoryNLP if [ ! -d "${TARGET_DIR}/EmoryNLP" ]; then echo "Converting EmoryNLP to unified format" python preprocess/EmoryNLP.py \ --input_dir ../../data/origin/EmoryNLP \ --output_dir ${TARGET_DIR}/EmoryNLP fi # GoEmotions if [ ! -d "${TARGET_DIR}/GoEmotions" ]; then echo "Converting GoEmotions to unified format" python preprocess/GoEmotions.py \ --input_dir ../../data/origin/GoEmotions \ --output_dir ${TARGET_DIR}/GoEmotions fi # MELD if [ ! -d "${TARGET_DIR}/MELD" ]; then echo "Converting MELD to unified format" python preprocess/MELD.py \ --input_dir ../../data/origin/MELD \ --output_dir ${TARGET_DIR}/MELD fi # IEMOCAP if [ ! -d "${TARGET_DIR}/IEMOCAP" ]; then echo "Converting IEMOCAP to unified format" python preprocess/IEMOCAP.py \ --input_dir ../../data/origin/IEMOCAP \ --output_dir ${TARGET_DIR}/IEMOCAP fi # Banking77 if [ ! -d "${TARGET_DIR}/Banking77" ]; then echo "Converting Banking77 to unified format" python preprocess/Banking77.py \ --input_dir ../../data/origin/Banking77 \ --output_dir ${TARGET_DIR}/Banking77 fi # CLINC150 if [ ! -d "${TARGET_DIR}/CLINC150" ]; then echo "Converting CLINC150 to unified format" python preprocess/CLINC150.py \ --input_dir ../../data/origin/CLINC150 \ --output_dir ${TARGET_DIR}/CLINC150 fi # HWU64 if [ ! -d "${TARGET_DIR}/HWU64" ]; then echo "Converting HWU64 to unified format" python preprocess/HWU64.py \ --input_dir ../../data/origin/HWU64 \ --output_dir ${TARGET_DIR}/HWU64 fi # E2E if [ ! -d "${TARGET_DIR}/E2E" ]; then echo "Converting E2E to unified format" python preprocess/E2E.py \ --input_dir ../../data/origin/E2E \ --output_dir ${TARGET_DIR}/E2E fi # RNNLG if [ ! -d "${TARGET_DIR}/RNNLG" ]; then echo "Converting RNNLG to unified format" python preprocess/RNNLG.py \ --input_dir ../../data/origin/RNNLG \ --output_dir ${TARGET_DIR}/RNNLG fi # PERSONA-CHAT if [ ! -d "${TARGET_DIR}/PERSONA-CHAT" ]; then echo "Converting PERSONA-CHAT to unified format" python preprocess/PERSONA-CHAT.py \ --input_dir ../../data/origin/PERSONA-CHAT \ --output_dir ${TARGET_DIR}/PERSONA-CHAT fi # ENLP if [ ! -d "${TARGET_DIR}/ENLP" ]; then echo "Converting ENLP to unified format" python preprocess/ENLP.py \ --input_dir ../../data/origin/ENLP \ --output_dir ${TARGET_DIR}/ENLP fi # ASTE if [ ! -d "${TARGET_DIR}/ASTE" ]; then echo "Converting ASTE to unified format" python preprocess/ASTE.py \ --input_dir ../../data/origin/ASTE \ --output_dir ${TARGET_DIR}/ASTE fi # MAMS-ACSA if [ ! -d "${TARGET_DIR}/MAMS-ACSA" ]; then echo "Converting MAMS-ACSA to unified format" python preprocess/MAMS-ACSA.py \ --input_dir ../../data/origin/MAMS/MAMS-ACSA/raw \ --output_dir ${TARGET_DIR}/MAMS-ACSA fi # MAMS-ATSA if [ ! -d "${TARGET_DIR}/MAMS-ATSA" ]; then echo "Converting MAMS-ATSA to unified format" python preprocess/MAMS-ATSA.py \ --input_dir ../../data/origin/MAMS/MAMS-ATSA/raw \ --output_dir ${TARGET_DIR}/MAMS-ATSA fi # Twitter if [ ! -d "${TARGET_DIR}/Twitter" ]; then echo "Converting Twitter to unified format" python preprocess/Twitter.py \ --input_dir ../../data/origin/Twitter \ --output_dir ${TARGET_DIR}/Twitter fi