run.pl failed in stage 7 of run.sh

176 views
Skip to first unread message

BHAVYA TRIPATHI

unread,
Feb 9, 2021, 6:00:17 AM2/9/21
to kaldi-help

Hi,
I'm new to kaldi and was trying out the mini_librispeech recipe. Since I do not have a grid engine installed, I changed queue.pl to run.pl in the cmd.sh script and I am running the run.sh script step by step (like ./run.sh --stage 2). It executed properly till stage 6 but I am getting the following error in stage 7:

local/download_and_untar.sh: data part dev-clean-2 was already successfully extracted, nothing to do.
local/download_and_untar.sh: data part train-clean-5 was already successfully extracted, nothing to do.
steps/get_prons.sh --cmd run.pl data/train_clean_5 data/lang_nosp exp/tri3b
steps/get_prons.sh: exp/tri3b/ali.1.gz exists, so starting from alignments.
run.pl: 5 / 5 failed, log is in exp/tri3b/log/nbest_to_prons.*.log

And this is the log mentioned in the error message:

#linear-to-nbest "ark:gunzip -c exp/tri3b/ali.5.gz|" "ark:sym2int.pl --map-oov 3 -f 2- data/lang_nosp/words.txt <data/train_clean_5/split5/5/text |" "" "" ark:- | lattice-align-words data/lang_nosp/phones/word_boundary.int exp/tri3b/final.mdl ark:- ark:- | nbest-to-prons exp/tri3b/final.mdl ark:- "|gzip -c >exp/tri3b/prons.5.gz"

bash: line 1: linear-to-nbest: command not found
bash: line 1: lattice-align-words: command not found
bash: line 1: nbest-to-prons: command not found

# Accounting: time=0 threads=1
# Ended (code 127)

Can somebody tell me what seems to be the problem here?

Daniel Povey

unread,
Feb 9, 2021, 6:02:36 AM2/9/21
to kaldi-help
Likely a path issue, e.g. latbin is not in your path (or that directory was not compiled for some reason).

--
Go to http://kaldi-asr.org/forums.html to find out how to join the kaldi-help group
---
You received this message because you are subscribed to the Google Groups "kaldi-help" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kaldi-help+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kaldi-help/113f70af-aa3d-443e-b4a1-0a494a96b0e6n%40googlegroups.com.

Bhavya Tripathi

unread,
Feb 9, 2021, 6:37:38 AM2/9/21
to kaldi-help
Hi Dan,
The path.sh file in mini_librispeech/s5 directory looks like this:

export KALDI_ROOT=`pwd`/../../..
[ -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
# Adding src/lmbin to path to include arpa2fst
export arpa2fst="$KALDI_ROOT/src/lmbin"

# For now, don't include any of the optional dependenices of the main
# librispeech recipe

And latbin is there in $KALDI_ROOT/tools/config/common_path.sh, should I add the path to latbin explicitly in path.sh?
Reply all
Reply to author
Forward
0 new messages