kaldi中thchs关于path.sh和cmd.sh

本文介绍了Kaldi项目中thchs配置的path.sh和cmd.sh文件,重点讲解如何设置环境变量,特别是将queue.pl和pl替换为run.pl的步骤。
摘要由CSDN通过智能技术生成
export KALDI_ROOT=`pwd`/../../..
# 告诉外面kaldi_root在哪里
[ -f $KALDI_ROOT/tools/env.sh ] && . $KALDI_ROOT/tools/env.sh
#是否存在正常文件并且执行这个文件
export PATH=$PWD/utils/:$KALDI_ROOT/tools/openfst/bin:$PWD:$PATH
# :代表路径分隔符,将上述变量都加入到环境变量
[ ! -f $KALDI_ROOT/tools/config/common_path.sh ] && echo >&2 "The standard file $KALDI_ROOT/tools/config/common_path.sh is not present -> Exit!" && exit 1
#不存在正常文件并且打印""中的这一段话
. $KALDI_ROOT/tools/config/common_path.sh #执行 公共的环境变量
export LC_ALL=C
#去除所有本地化的设置

 设置环境变量

# you can change cmd.sh depending on what type of queue you are using.
# If you have no queueing system and want to run on a local machine, you
# can change all instances 'queue.pl' to run.pl (but be careful and run
# commands one by one: most recipes will exhaust the memory on your
# machine).  queue.pl works with GridEngine (qsub).  slurm.pl work
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值