DialogZoo / src /scripts /convert_to_unified_dialoglue.sh
AnAutomaticPencil's picture
data preprocessing update
a6326c7
raw
history blame
1.56 kB
#!/bin/bash
TARGET_DIR=../../data/unified_dialoglue
if [ ! -d "${TARGET_DIR}" ]; then
mkdir -p ${TARGET_DIR}
fi
# Banking77
if [ ! -d "${TARGET_DIR}/Banking77" ]; then
echo "Converting Banking77 to unified format"
python preprocess/Banking77.py \
--input_dir ../../data/origin/dialoglue/banking \
--output_dir ${TARGET_DIR}/Banking77
fi
# CLINC150
if [ ! -d "${TARGET_DIR}/CLINC150" ]; then
echo "Converting CLINC150 to unified format"
python preprocess/Banking77.py \
--input_dir ../../data/origin/dialoglue/clinc \
--output_dir ${TARGET_DIR}/CLINC150
fi
# HWU64
if [ ! -d "${TARGET_DIR}/HWU64" ]; then
echo "Converting HWU64 to unified format"
python preprocess/Banking77.py \
--input_dir ../../data/origin/dialoglue/hwu \
--output_dir ${TARGET_DIR}/HWU64
fi
# Restaurant8k
if [ ! -d "${TARGET_DIR}/Restaurant8k" ]; then
echo "Converting Restaurant8k to unified format"
python preprocess/Restaurant8k.py \
--input_dir ../../data/origin/dialoglue/restaurant8k \
--output_dir ${TARGET_DIR}/Restaurant8k
fi
# DSTC 8
if [ ! -d "${TARGET_DIR}/DSTC8" ]; then
echo "Converting DSTC8 to unified format"
python preprocess/DSTC8.py \
--input_dir ../../data/origin/dialoglue/dstc8 \
--output_dir ${TARGET_DIR}/DSTC8
fi
# TOP
if [ ! -d "${TARGET_DIR}/TOP" ]; then
echo "Converting TOP to unified format"
python preprocess/TOP.py \
--input_dir ../../data/origin/dialoglue/top \
--output_dir ${TARGET_DIR}/TOP
fi