download_model.sh 561 字节
Newer Older
Y
Yibing Liu 已提交
1 2
#!/bin/bash

3 4
mkdir -p pretrain_models
cd pretrain_models
Y
Yibing Liu 已提交
5 6 7 8 9 10 11 12 13 14 15 16

# download pretrain model file to ./models/
MODEL_CNN=https://baidu-nlp.bj.bcebos.com/emotion_detection_textcnn-1.0.0.tar.gz
MODEL_ERNIE=https://baidu-nlp.bj.bcebos.com/emotion_detection_ernie_finetune-1.0.0.tar.gz
wget --no-check-certificate ${MODEL_CNN}
wget --no-check-certificate ${MODEL_ERNIE}

tar xvf emotion_detection_textcnn-1.0.0.tar.gz
tar xvf emotion_detection_ernie_finetune-1.0.0.tar.gz

/bin/rm emotion_detection_textcnn-1.0.0.tar.gz
/bin/rm emotion_detection_ernie_finetune-1.0.0.tar.gz