download_lm_ch.sh 538 字节
Newer Older
1
#!/bin/bash
2

H
Hui Zhang 已提交
3 4 5 6
. ${MAIN_ROOT}/utils/utility.sh

DIR=data/lm
mkdir -p ${DIR}
7

Y
Yibing Liu 已提交
8
URL='https://deepspeech.bj.bcebos.com/zh_lm/zh_giga.no_cna_cmn.prune01244.klm'
9
MD5="29e02312deb2e59b3c8686c7966d4fe3"
H
Hui Zhang 已提交
10
TARGET=${DIR}/zh_giga.no_cna_cmn.prune01244.klm
11

H
huangyuxin 已提交
12 13
echo "Start downloading the language model. The language model is large, please wait for a moment ..."
download $URL $MD5 $TARGET > /dev/null 2>&1
14 15 16
if [ $? -ne 0 ]; then
    echo "Fail to download the language model!"
    exit 1
H
huangyuxin 已提交
17 18
else
    echo "Download the language model sucessfully"
19 20 21 22
fi


exit 0