From 8dcf1d56670d5708d8b234ee4af0c4dc7544d650 Mon Sep 17 00:00:00 2001 From: Yibing Liu Date: Wed, 27 Sep 2017 18:44:13 +0800 Subject: [PATCH] fix bugs in preparing data scripts --- examples/librispeech/run_data.sh | 2 +- examples/tiny/run_data.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/librispeech/run_data.sh b/examples/librispeech/run_data.sh index b1ad68ab..12f2dc6d 100644 --- a/examples/librispeech/run_data.sh +++ b/examples/librispeech/run_data.sh @@ -3,7 +3,7 @@ cd ../.. > /dev/null # download data, generate manifests -PYTHONPATH=.:$PYPYTHONPATH python data/librispeech/librispeech.py \ +PYTHONPATH=.:$PYTHONPATH python data/librispeech/librispeech.py \ --manifest_prefix='data/librispeech/manifest' \ --target_dir='~/.cache/paddle/dataset/speech/Libri' \ --full_download='True' diff --git a/examples/tiny/run_data.sh b/examples/tiny/run_data.sh index 0b03ec5d..ba55d284 100644 --- a/examples/tiny/run_data.sh +++ b/examples/tiny/run_data.sh @@ -9,7 +9,7 @@ fi # download data, generate manifests -python data/librispeech/librispeech.py \ +PYTHONPATH=.:$PYTHONPATH python data/librispeech/librispeech.py \ --manifest_prefix='data/tiny/manifest' \ --target_dir='~/.cache/paddle/dataset/speech/libri' \ --full_download='False' @@ -26,7 +26,7 @@ head -n 64 data/tiny/manifest.dev-clean > data/tiny/manifest.tiny python tools/build_vocab.py \ --count_threshold=0 \ --vocab_path='data/tiny/vocab.txt' \ ---manifest_paths='data/tiny/manifest.dev' +--manifest_paths='data/tiny/manifest.dev-clean' if [ $? -ne 0 ]; then echo "Build vocabulary failed. Terminated."