diff --git a/fluid/neural_machine_translation/transformer/.run_ce.sh b/fluid/neural_machine_translation/transformer/.run_ce.sh index 50161ca4662547dd19a098ee1f360a717da1b9a7..492150b37184230f0e54fca8914c2c9d30edf8cc 100644 --- a/fluid/neural_machine_translation/transformer/.run_ce.sh +++ b/fluid/neural_machine_translation/transformer/.run_ce.sh @@ -1,9 +1,8 @@ #!/bin/bash DATA_PATH=$HOME/.cache/paddle/dataset/wmt16 -if [ ! -d $DATA_PATH ] ; then - python -c 'import paddle;paddle.dataset.wmt16.train(10000, 10000, "en")'\ - '().next()' +if [ ! -d $DATA_PATH/en_10000.dict ] ; then + python -c 'import paddle;paddle.dataset.wmt16.train(10000, 10000, "en")().next()' tar -zxf $DATA_PATH/wmt16.tar.gz -C $DATA_PATH fi