You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
540 B
23 lines
540 B
4 years ago
|
#!/bin/bash
|
||
7 years ago
|
|
||
4 years ago
|
. ${MAIN_ROOT}/utils/utility.sh
|
||
|
|
||
|
DIR=data/lm
|
||
|
mkdir -p ${DIR}
|
||
7 years ago
|
|
||
6 years ago
|
URL=https://deepspeech.bj.bcebos.com/en_lm/common_crawl_00.prune01111.trie.klm
|
||
7 years ago
|
MD5="099a601759d467cd0a8523ff939819c5"
|
||
4 years ago
|
TARGET=${DIR}/common_crawl_00.prune01111.trie.klm
|
||
7 years ago
|
|
||
3 years ago
|
echo "Start downloading the language model. The language model is large, please wait for a moment ..."
|
||
|
download $URL $MD5 $TARGET > /dev/null 2>&1
|
||
7 years ago
|
if [ $? -ne 0 ]; then
|
||
|
echo "Fail to download the language model!"
|
||
|
exit 1
|
||
3 years ago
|
else
|
||
|
echo "Download the language model sucessfully"
|
||
7 years ago
|
fi
|
||
|
|
||
|
|
||
|
exit 0
|