error from WSJ recipe

183 views
Skip to first unread message

tfpeach

unread,
Dec 19, 2016, 9:30:13 PM12/19/16
to kaldi-help
Hi, I am using the WSJ recipe to run on the WSJ complete corpus (I have already adjust the files organization for running the data preparation scripts).

However, when I run the following scripts(lang prepare, dict prepare and etc.), I have the errors like this:

apply_map.pl: undefined key AA0
apply_map.pl: undefined key AA0
apply_map.pl: undefined key AA1
sym2int.pl: undefined symbol EH2_B (in position 3)
FATAL: FstCompiler: Symbol "EH2_B" is not mapped to any integer arc ilabel, symbol table = data/lang_nosp/phones.txt, source = standard input, line = 4
ERROR: FstHeader::Read: Bad FST header: standard input

And the program is terminated. I checked the first one "apply_map.pl: undefined key AA0". It is from the script "prepare_lang.sh" in this piece of command:

  cat $srcdir/{,non}silence_phones.txt | utils/apply_map.pl $tmpdir/phone_map.txt > $dir/phones/sets.txt

My nonsilence_phones.txt content is listed as below:

SH 
AA AA0 AA1 AA2 
IH IH0 IH1 IH2 
AY AY0 AY1 AY2 
UH UH0 UH1 UH2 
HH 
NG 
IY IY0 IY1 IY2 
OY OY0 OY1 OY2 
DH 
CH 
AO AO0 AO1 AO2 
AE AE0 AE1 AE2 
ER ER0 ER1 ER2 
OW OW0 OW1 OW2 
ZH 
JH 
EH EH0 EH1 EH2 
UW UW0 UW1 UW2 
AW AW0 AW1 AW2 
TH 
AH AH0 AH1 AH2 
EY EY0 EY1 EY2 

Could anyone tell me why this happen and how I can fix this problem?

Thank you very much!

Daniel Povey

unread,
Dec 19, 2016, 10:58:14 PM12/19/16
to kaldi-help
Make sure your Kaldi is up-to-date and that you have not changed the
scripts in steps/ and utils/. And if you are using Windows for any
part of this process (e.g. you may have edited some files or
transferred some files on Windows) this may be relevant also--
sometimes the \r (linefeed) characters can mess things up, although I
thought our current scripts checked for that.

Dan
> --
> 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.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages