提交 6c4e1361 编写于 作者: H Hui Zhang

fix chunk mode test script

上级 a486f6e6
...@@ -17,7 +17,7 @@ config_path=$1 ...@@ -17,7 +17,7 @@ config_path=$1
ckpt_prefix=$2 ckpt_prefix=$2
chunk_mode=false chunk_mode=false
if [[ ${config_path} =~ ^chunk_ ]];then if [[ ${config_path} =~ ^.*chunk_.*yaml$ ]];then
chunk_mode=true chunk_mode=true
fi fi
......
...@@ -17,9 +17,10 @@ config_path=$1 ...@@ -17,9 +17,10 @@ config_path=$1
ckpt_prefix=$2 ckpt_prefix=$2
chunk_mode=false chunk_mode=false
if [[ ${config_path} =~ ^chunk_ ]];then if [[ ${config_path} =~ ^.*chunk_.*yaml$ ]];then
chunk_mode=true chunk_mode=true
fi fi
echo "chunk mode ${chunk_mode}"
# download language model # download language model
......
...@@ -17,7 +17,7 @@ config_path=$1 ...@@ -17,7 +17,7 @@ config_path=$1
ckpt_prefix=$2 ckpt_prefix=$2
chunk_mode=false chunk_mode=false
if [[ ${config_path} =~ ^chunk_ ]];then if [[ ${config_path} =~ ^.*chunk_.*yaml$ ]];then
chunk_mode=true chunk_mode=true
fi fi
......
...@@ -16,7 +16,7 @@ config_path=$1 ...@@ -16,7 +16,7 @@ config_path=$1
ckpt_prefix=$2 ckpt_prefix=$2
chunk_mode=false chunk_mode=false
if [[ ${config_path} =~ ^chunk_ ]];then if [[ ${config_path} =~ ^.*chunk_.*yaml$ ]];then
chunk_mode=true chunk_mode=true
fi fi
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册