From: Kirill K. <kir...@sm...> - 2015-05-02 00:37:17
|
> -----Original Message----- > From: Kirill Katsnelson [mailto:kir...@sm...] > Sent: 2015-05-01 1733 > > Here's a small patch to make_denlats.sh. My awk does not have a > function gensub() (Ubuntu 14.04 packages gawk separately from awk!), > and because of that the generated lat.scp was empty. Compounding the > problem, mpe training happily proceeded, even though missing lattices > for every utterance. Took me a while to track back. > > I have changed the code to use sed and to fail if the generated scp has > a zero length. [kkm] Ah, and the sort. My find(1) finds files quite out of order, maybe because of ext4? $ find dnn4_pretrain-dbn_dnn_denlats/lat1 -name '*.gz' | head -3 dnn4_pretrain-dbn_dnn_denlats/lat1/41/BertrandPiccard_2009G-0097823-0098802.gz dnn4_pretrain-dbn_dnn_denlats/lat1/41/BernieKrause_2013G-0047540-0048091.gz dnn4_pretrain-dbn_dnn_denlats/lat1/41/BethNoveck_2012G-0024724-0026655.gz I do not know if sorted promise is used on the lat.scp later, so I sorted it just in case. May not be really required. -kkm |