From: Simon K. <sim...@gm...> - 2014-04-11 12:03:08
Attachments:
decode.1.log
config
|
Hi, I tried to test the online decoder in sandbox/online, and get an error. I used my own models trained earlier, and the steps/online/prepare_online_decoding.sh step went fine, after I removed the check for the file 'trans.1' (as I do not have it). If I got it right from the script, it is not needed in general. When trying to decode, I get the error (see attached log file): KALDI_ASSERT: at online2-wav-gmm-latgen-faster:SplitLongArg:parse-options.cc:491, failed: in.substr(0, 2) == "--" It seems to me it has problems parsing the options. I also attached the config file specified in the call to online2-wav-gmm-latgen-faster I hope you can point me to what is going wrong. I'm using revision 3870. Thanks a lot, Simon |
From: Daniel P. <dp...@gm...> - 2014-04-11 18:56:14
|
It's good that you're testing this, I think what is going on is that you are somehow mixing up different types of config in the conf/ subdirectory: the "*.conf" files, which are intended for use by Kaldi command-line programs, and which have lines like --X=Y and the "*.config" files, which are intended to be sourced by bash scripts, and which have lines like X=Y I'll modify that assert statement to be a bit more user friendly. The file "config" that you attached (and which I perhaps should have named "conf", according to that naming scheme), does not look like the "config" file that is created by "prepare_online_decoding.sh". It should have lines like --mfcc-config=exp/tri1_150_20000/conf/mfcc.conf but the file you attached has lines like beam=11.0 # beam for decoding. Was 13.0 in the scripts. first_beam=8.0 # beam for 1st-pass decoding in SAT. It looks like you copied it from the conf/ subdirectory to exp/tri_150_20000/conf/. Dan On Fri, Apr 11, 2014 at 5:02 AM, Simon Klüpfel <sim...@gm...>wrote: > Hi, > > I tried to test the online decoder in sandbox/online, and get an error. > > I used my own models trained earlier, and the steps/online/prepare_online_decoding.sh > step went fine, after I removed the check for the file 'trans.1' (as I do > not have it). If I got it right from the script, it is not needed in > general. > > When trying to decode, I get the error (see attached log file): > > KALDI_ASSERT: at online2-wav-gmm-latgen-faster: > SplitLongArg:parse-options.cc:491, failed: in.substr(0, 2) == "--" > > It seems to me it has problems parsing the options. > > I also attached the config file specified in the call to > online2-wav-gmm-latgen-faster > > I hope you can point me to what is going wrong. > > I'm using revision 3870. > > Thanks a lot, > > Simon > > > ------------------------------------------------------------------------------ > Put Bad Developers to Shame > Dominate Development with Jenkins Continuous Integration > Continuously Automate Build, Test & Deployment > Start a new project now. Try Jenkins in the cloud. > http://p.sf.net/sfu/13600_Cloudbees > _______________________________________________ > Kaldi-developers mailing list > Kal...@li... > https://lists.sourceforge.net/lists/listinfo/kaldi-developers > > |
From: Simon K. <sim...@gm...> - 2014-04-14 10:54:28
|
Hi, thanks for the explanations. I found the mistake regarding the wrong config file. When adjusting the main script, I passed the original directory to the decoder, not the one created by prepare_online_decoding.sh. Then I probably tried to fix the (to be expected) errors by copying/creating files. Once I fixed this, it did work. All the best, Simon On 04/11/2014 06:56 PM, Daniel Povey wrote: > It's good that you're testing this, > > I think what is going on is that you are somehow mixing up different > types of config in the conf/ subdirectory: the "*.conf" files, which are > intended for use by Kaldi command-line programs, and which have lines like > --X=Y > and the "*.config" files, which are intended to be sourced by bash > scripts, and which have lines like > X=Y > I'll modify that assert statement to be a bit more user friendly. > > The file "config" that you attached (and which I perhaps should have > named "conf", according to that naming scheme), does not look like the > "config" file that is created by "prepare_online_decoding.sh". It > should have lines like > --mfcc-config=exp/tri1_150_20000/conf/mfcc.conf > but the file you attached has lines like > beam=11.0 # beam for decoding. Was 13.0 in the scripts. > first_beam=8.0 # beam for 1st-pass decoding in SAT. > > It looks like you copied it from the conf/ subdirectory > to exp/tri_150_20000/conf/. > > Dan > > > > On Fri, Apr 11, 2014 at 5:02 AM, Simon Klüpfel <sim...@gm... > <mailto:sim...@gm...>> wrote: > > Hi, > > I tried to test the online decoder in sandbox/online, and get an error. > > I used my own models trained earlier, and the > steps/online/prepare_online___decoding.sh step went fine, after I > removed the check for the file 'trans.1' (as I do not have it). If I > got it right from the script, it is not needed in general. > > When trying to decode, I get the error (see attached log file): > > KALDI_ASSERT: at > online2-wav-gmm-latgen-faster:__SplitLongArg:parse-options.cc:__491, > failed: in.substr(0, 2) == "--" > > It seems to me it has problems parsing the options. > > I also attached the config file specified in the call to > online2-wav-gmm-latgen-faster > > I hope you can point me to what is going wrong. > > I'm using revision 3870. > > Thanks a lot, > > Simon > > ------------------------------------------------------------------------------ > Put Bad Developers to Shame > Dominate Development with Jenkins Continuous Integration > Continuously Automate Build, Test & Deployment > Start a new project now. Try Jenkins in the cloud. > http://p.sf.net/sfu/13600_Cloudbees > _______________________________________________ > Kaldi-developers mailing list > Kal...@li... > <mailto:Kal...@li...> > https://lists.sourceforge.net/lists/listinfo/kaldi-developers > > |