From: Daniel P. <dp...@gm...> - 2014-02-09 00:04:06
|
In OpenFst the convention is that if the fourth field is not present, it means the "unit weight", i.e. equivalent to "0,0," in this case. Karel should be able to fix it. Dan Hi, > I want to convert kaldi n-best lattices to HTK SLF format. For this I use > the commands lattice-to-nbest and convert_slf.pl > > I am encountering an error in some cases when the input of convert_slf.plis something like the following: > > 0 1 <eps> > 1 2 sil 5.98436,615.382, > 2 3 hh_B 8.18498,343.171,2_8_18 > 3 4 ah_E 0,0,7762_7788_7787_7810 > 4 5 dh_B 4.07396,1041.53,17278_17346_17396_17395_17395 > 5 6 ae_I 0,0,6934_6976_6975_6975_7010_7009_7009 > 6 7 n_I 7.94708,1145.48,16638_16730_16729_16729_16790_16789 > 7 8 ch_I 3.78969,383.177,11742_11812_11811_11830_11829_11829 > 8 9 ax_I 1.75077,720.301,540_556_555_568_567_567_567 > 9 10 l_E 11.86,1544.22,1968_1967_1967_2080_2079_2079_2098 > 10 11 iy_S > 3.74688,373.832,10382_10381_10381_10381_10381_10381_10426_10425_10425_10425_10498_5694_5693_5693_5728_5727_5727_5834_5833_5833 > 11 > > Digging into convert_slf.pl I see that when the phoneme <eps> appears, it > is expected to always have a 4th column. Given that in my example it has > only 3, it crashes. > I modified the perl script and got it to work when finding only 3 columns, > but I wonder whether the lack of a score might be indicating some deeper > and more obscure error I should be aware of. > > Thanks for your help, > > Xavier Anguera > > > ------------------------------------------------------------------------------ > 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-developers mailing list > Kal...@li... > https://lists.sourceforge.net/lists/listinfo/kaldi-developers > > |