langs1_snips=( \
    "en"
)

langs2_snips=( \
    "en"
)

langs1_mtop=( \
    "de" "en" "es" "fr"
)

langs2_mtop=( \
    "de" "en" "es" "fr"
)

langs1_multi_nlu=( \
    "en" "es"
)

langs2_multi_nlu=( \
    "en" "es"
)


for lang1 in "${langs1_snips[@]}"; do
    for lang2 in "${langs2_snips[@]}"; do
        echo "Running snips $lang1 $lang2"
        python create_graph.py --dataset snips --src_lang $lang1 --tgt_lang $lang2
    done
done

for lang1 in "${langs1_mtop[@]}"; do
    for lang2 in "${langs2_mtop[@]}"; do
        if [ "$lang1" == "en" ]; then
            if [ "$lang1" != "$lang2" ]; then
                echo "Running mtop $lang1 $lang2"
                python create_graph.py --dataset mtop --src_lang $lang1 --tgt_lang $lang2
            fi
        fi
    done
done

for lang1 in "${langs1_mtop[@]}"; do
    for lang2 in "${langs2_mtop[@]}"; do
        if [ "$lang1" == "$lang2" ]; then
            echo "Running mtop $lang1 $lang2"
            python create_graph.py --dataset mtop --src_lang $lang1 --tgt_lang $lang2
        fi
    done
done

for lang1 in "${langs1_multi_nlu[@]}"; do
    for lang2 in "${langs2_multi_nlu[@]}"; do
        if [ "$lang1" == "en" ]; then
            if [ "$lang1" != "$lang2" ]; then
                echo "Running multi-nlu $lang1 $lang2"
                python create_graph.py --dataset multi-nlu --src_lang $lang1 --tgt_lang $lang2
            fi
        fi
    done
done

for lang1 in "${langs1_multi_nlu[@]}"; do
    for lang2 in "${langs2_multi_nlu[@]}"; do
        if [ "$lang1" == "$lang2" ]; then
            echo "Running multi-nlu $lang1 $lang2"
            python create_graph.py --dataset multi-nlu --src_lang $lang1 --tgt_lang $lang2
        fi
    done
done