download.sh 391 字节
Newer Older
P
Peng Li 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#!/bin/bash
if [[ -d data ]] && [[ -d embedding ]] && [[ -d evaluation ]]; then
  echo "data exist"
  exit 0
else
  wget -c http://paddlepaddle.bj.bcebos.com/dataset/webqa/WebQA.v1.0.zip
fi

if [[ `md5sum -c md5sum.txt` =~ 'OK' ]] ; then
    unzip WebQA.v1.0.zip
    mv WebQA.v1.0/* .
    rmdir WebQA.v1.0
    rm WebQA.v1.0.zip
else
  echo "download data error!" >> /dev/stderr
  exit 1
fi