|
|
@ -9,11 +9,13 @@ URL=https://deepspeech.bj.bcebos.com/en_lm/common_crawl_00.prune01111.trie.klm
|
|
|
|
MD5="099a601759d467cd0a8523ff939819c5"
|
|
|
|
MD5="099a601759d467cd0a8523ff939819c5"
|
|
|
|
TARGET=${DIR}/common_crawl_00.prune01111.trie.klm
|
|
|
|
TARGET=${DIR}/common_crawl_00.prune01111.trie.klm
|
|
|
|
|
|
|
|
|
|
|
|
echo "Download language model ..."
|
|
|
|
echo "Start downloading the language model. The language model is large, please wait for a moment ..."
|
|
|
|
download $URL $MD5 $TARGET
|
|
|
|
download $URL $MD5 $TARGET > /dev/null 2>&1
|
|
|
|
if [ $? -ne 0 ]; then
|
|
|
|
if [ $? -ne 0 ]; then
|
|
|
|
echo "Fail to download the language model!"
|
|
|
|
echo "Fail to download the language model!"
|
|
|
|
exit 1
|
|
|
|
exit 1
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
echo "Download the language model sucessfully"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|