File size: 1,557 Bytes
a6326c7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/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