From 5d68ba1a73fe8f16102311141bd150811c7c8537 Mon Sep 17 00:00:00 2001 From: tensor-tang Date: Thu, 7 Sep 2017 20:20:23 +0800 Subject: [PATCH 1/2] fix missing import --- models/model.py | 1 + 1 file changed, 1 insertion(+) diff --git a/models/model.py b/models/model.py index 93c4c41b..c072a5f6 100644 --- a/models/model.py +++ b/models/model.py @@ -10,6 +10,7 @@ import gzip import paddle.v2 as paddle from lm.lm_scorer import LmScorer from models.decoder import ctc_greedy_decoder, ctc_beam_search_decoder +from models.decoder import ctc_beam_search_decoder_batch from models.network import deep_speech_v2_network From 69e0d86ddb9661b701979c45d3d121dd51496533 Mon Sep 17 00:00:00 2001 From: Luo Tao Date: Thu, 7 Sep 2017 21:24:10 +0800 Subject: [PATCH 2/2] fix wrong path in prepare.sh --- examples/librispeech/prepare_data.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/librispeech/prepare_data.sh b/examples/librispeech/prepare_data.sh index 162a38c4..10b85d05 100644 --- a/examples/librispeech/prepare_data.sh +++ b/examples/librispeech/prepare_data.sh @@ -6,7 +6,7 @@ pushd ../.. python data/librispeech/librispeech.py \ --manifest_prefix='data/librispeech/manifest' \ --full_download='True' \ ---target_dir='~/.cache/paddle/dataset/speech/Libri' +--target_dir=$HOME'/.cache/paddle/dataset/speech/Libri' if [ $? -ne 0 ]; then echo "Prepare LibriSpeech failed. Terminated."