|
From: Karel V. <ive...@fi...> - 2014-02-04 16:22:38
|
Hi, sure, recently I rewrote that script recently in cooperation with Korbinian. I'll have a look at it, Karel. Dne 4.2.2014 17:05, Daniel Povey napsal(a): > You may have seen the message because lattice-word-align expects the > model file as its first argument; this is an error in the help message > of utils/convert_slf.pl <http://convert_slf.pl>. Also, the help > messagepl should probably be updated to use lattice-align-words as its > suggested input. > Karel, you made some recent changes to that program; do you think you > could help with this? > Dan > > > Hi, > After running the egs/wsj/s5/run.sh I call the convert_slf.pl > <http://convert_slf.pl> script on one of the lattices in tri3b > step following an exampl in the scripts help output and get a > deprecation message: > > [davidm@code7 s5]$ utils/convert_slf.pl <http://convert_slf.pl> > Convert kaldi lattices to HTK SLF (v1.1) format. > Usage: convert_slf.pl <http://convert_slf.pl> [options] > lat-file.txt [out-dir] > e.g. lattice-word-align 'ark:gunzip -c lat.gz |' ark,t:- | > utils/convert_slf.pl <http://convert_slf.pl> - slf/ > Options regarding the SLF output: > --lmscale x LM weight (default: lmscale=1) > --acscale x Acoustic weight (default: acscale=1) > --wdpenalty x Word insertion penalty (default: 0) > --framerate x Frame rate to compute timing information > (default: 0.01) > [davidm@code7 s5]$ lattice-word-align 'ark:gunzip -c > exp/tri3b/decode_bd_tgpr_eval92_fg/lat.1.gz |' ark,t:- | > utils/convert_slf.pl <http://convert_slf.pl> - ~/slf/ > lattice-word-align 'ark:gunzip -c > exp/tri3b/decode_bd_tgpr_eval92_fg/lat.1.gz |' ark,t:- > > (note: from the s5 scripts onward, this is deprecated, see > lattice-align-words) > Create word-aligned lattices (in which the arcs correspond with > word boundaries) > Usage: lattice-word-align [options] <model> <lattice-rspecifier> > <lattice-wspecifier> > e.g.: lattice-word-align --silence-phones=1:2 > --wbegin-phones=2:6:10:14 \ > --wend-phones=3:7:11:15 --winternal-phones=4:8:12:16 > --wbegin-and-end-phones=5:9:13:17 \ > --silence-label=2 --partial-word-label=16342 \ > final.mdl ark:1.lats ark:aligned.lats > > Options: > --output-error-lats : If true, output aligned lattices > even if there was an error (e.g. caused by forced-out lattice) > (bool, default = true) > --partial-word-label : Numeric id of word symbol that is > to be used for arcs in the word-aligned lattice corresponding to > partial words at the end of "forced-out" utterances (zero is OK) > (int, default = 0) > --reorder : True if the lattices were > generated from graphs that had the --reorder option true, relating > to reordering self-loops (typically true) (bool, default = true) > --silence-has-olabels : If true, silence phones have > output labels in the lattice, just > like regular words. [This means you can't have un-labeled > silences] (bool, default = false) > --silence-label : Numeric id of word symbol that is > to be used for silence arcs in the word-aligned lattice (zero is > OK) (int, default = 0) > --silence-may-be-word-internal : If true, silence may appear > inside words' prons (but not at begin/end!) > (bool, default = false) > --silence-phones : Colon-separated list of numeric > ids of phones that are used for silence (and other non-word events > such as noise) (string, default = "") > --test : If true, activate checks designed > to test the code. (bool, default = false) > --wbegin-and-end-phones : Colon-separated list of numeric > ids of phones that are used for single-phone words. (string, > default = "") > --wbegin-phones : Colon-separated list of numeric > ids of phones that begin a word (string, default = "") > --wend-phones : Colon-separated list of numeric > ids of phones that end a word (string, default = "") > --winternal-phones : Colon-separated list of numeric > ids of phones that are internal to a word (string, default = "") > > Standard options: > --config : Configuration file with options > (string, default = "") > --help : Print out usage message (bool, > default = false) > --print-args : Print the command line arguments > (to stderr) (bool, default = true) > --verbose : Verbose level (higher->more > logging) (int, default = 0) > > What is the right command-line now for calling the convert_slf.pl > <http://convert_slf.pl> script on a binary lattice file(s)? > > Many thanks, > David > > > > > On 20/12/2013 10:44, Karel Veselý wrote: >> There is also a script directly in kaldi wsj/s5 from Korbinian >> Riedhammer: >> >> http://sourceforge.net/p/kaldi/code/HEAD/tree/trunk/egs/wsj/s5/utils/convert_slf.pl >> >> Karel >> >> Dne 19. 12. 2013 21:05, Daniel Povey napsal(a): >>> It looks like Paul Dixon has published something he wrote, here: >>> >>> https://gist.github.com/edobashira/5811963 >>> >>> Dan >>> >>> >>> >>> On Thu, Dec 19, 2013 at 3:20 AM, wei.shi-新 <we...@im... >>> <mailto:we...@im...>> wrote: >>> >>> Hi all, >>> Though I know the purpose of kaldi is not to be compatible >>> with HTK, I still want to ask, is there a tool that can >>> convert kaldi lattices( e.g., generated by >>> gmm-latgen-faster ) to HTK compatible format? >>> Shi Wei >>> >>> ------------------------------------------------------------------------------ >>> Rapidly troubleshoot problems before they affect your >>> business. Most IT >>> organizations don't have a clear picture of how application >>> performance >>> affects their revenue. With AppDynamics, you get 100% >>> visibility into your >>> Java,.NET, & PHP application. Start your 15-day FREE TRIAL >>> of AppDynamics Pro! >>> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >>> _______________________________________________ >>> Kaldi-users mailing list >>> Kal...@li... >>> <mailto:Kal...@li...> >>> https://lists.sourceforge.net/lists/listinfo/kaldi-users >>> >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Rapidly troubleshoot problems before they affect your business. Most IT >>> organizations don't have a clear picture of how application performance >>> affects their revenue. With AppDynamics, you get 100% visibility into your >>> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! >>> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >>> >>> >>> _______________________________________________ >>> Kaldi-users mailing list >>> Kal...@li... <mailto:Kal...@li...> >>> https://lists.sourceforge.net/lists/listinfo/kaldi-users >> >> >> >> ------------------------------------------------------------------------------ >> Rapidly troubleshoot problems before they affect your business. Most IT >> organizations don't have a clear picture of how application performance >> affects their revenue. With AppDynamics, you get 100% visibility into your >> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! >> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >> >> >> _______________________________________________ >> Kaldi-users mailing list >> Kal...@li... <mailto:Kal...@li...> >> https://lists.sourceforge.net/lists/listinfo/kaldi-users > > > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk > _______________________________________________ > Kaldi-users mailing list > Kal...@li... > <mailto:Kal...@li...> > https://lists.sourceforge.net/lists/listinfo/kaldi-users > > |