<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I am trying to generate lattices in HTK, which I would then rescore using a language model in SRILM. The quoted sections are meant to represent the files being operated on.<div><br></div><div><div><blockquote type="cite"><div>config/dev.crop.filelist.old:</div></blockquote><blockquote type="cite"><div>data/video004</div></blockquote><blockquote type="cite"><div>data/video013</div><div>data/video014</div><div>data/video016</div><div>...</div></blockquote></div><div><br></div><div>#Generate lattices</div><div>HVite -w config/train.wdnet -A -T 1 -D -H models/mono-nmix2-npass1/MMF -S config/dev.crop.filelist.old &nbsp;-p -100.0 -s 0.0 -l lattices -z lat -n 4 config/train.dictionary config/phonelist</div><div><br></div><div><div></div><blockquote type="cite"><div>No HTK Configuration Parameters Set</div><div><br></div><div>Read 248 physical / 248 logical HMMs</div><div>Read lattice with 118 nodes / 341 arcs</div><div>Created network with 480 nodes / 703 links</div><div>File: data/video004</div><div>SOMETHING_ONE . &nbsp;== &nbsp;[86 frames] -490.2613 [Ac=-41862.5 LM=-300.0] (Act=453.2)</div><div>File: data/video013</div><div>sil GO1 . &nbsp;== &nbsp;[68 frames] -493.8586 [Ac=-33182.4 LM=-400.0] (Act=446.6)</div><div>File: data/video014</div><div>sil GO1 . &nbsp;== &nbsp;[76 frames] -481.3506 [Ac=-36182.6 LM=-400.0] (Act=449.9)</div><div>File: data/video016</div><div>IX . &nbsp;== &nbsp;[93 frames] -501.9774 [Ac=-46383.9 LM=-300.0] (Act=455.1)</div><div><font class="Apple-style-span"><font class="Apple-style-span" color="#144FAE">...</font></font></div></blockquote><blockquote type="cite"><div>File: data/video192</div><div>sil IX GIVE1 . &nbsp;== &nbsp;[97 frames] -525.5662 [Ac=-50479.9 LM=-500.0] (Act=456.0)</div><div><br></div><div>No HTK Configuration Parameters Set</div></blockquote><div><br></div></div><div><br></div><div>ls -1 lattices/*.lat | awk '{print $1}' &gt; lattice_list</div><div><br></div><div><div></div><blockquote type="cite"><div>lattice_list:</div></blockquote><blockquote type="cite"><div>lattices/video004.lat</div></blockquote><blockquote type="cite"><div>lattices/video013.lat</div><div>lattices/video014.lat</div><div>lattices/video016.lat</div><div>...</div></blockquote></div><div><br></div><div>#apply LM</div><div>lattice-tool -read-htk -write-htk -in-lattice-list lattice_list -out-lattice-dir lattices_out/ -order 3 -lm ../lm/ukn.3.lm.gz -no-nulls</div><div><br></div><div>ls -1 lattices_out/ | awk '{print "lattices_out/" $1}' &gt; trigram_lattice.lst</div><div><br></div><div><div></div><blockquote type="cite"><div>trigram_lattice.lst&nbsp;</div></blockquote><blockquote type="cite"><div>lattices_out/video004.lat</div></blockquote><blockquote type="cite"></blockquote><blockquote type="cite"><div>lattices_out/video013.lat</div><div>lattices_out/video014.lat</div><div>lattices_out/video016.lat</div><div>...</div><div>lattices_out/video144.lat</div><div>lattices_out/video151.lat</div></blockquote></div><div><br></div><div>#decode</div><div>lattice-tool -read-htk -htk-lmscale 10 -htk-wdpenalty 0 -in-lattice-list trigram_lattice.lst -viterbi-decode &gt; rescore_trigram.out</div><div><br></div><div><div></div><blockquote type="cite"><div>rescore_trigram.out:</div></blockquote><blockquote type="cite"><div>data/video004</div></blockquote><blockquote type="cite"></blockquote><blockquote type="cite"><div>data/video013</div><div>data/video014</div><div>data/video016</div><div>...</div><div>data/video151</div></blockquote><div><br></div><div>I believe this is where I should see the result of the rescored lattices, in the form of transcriptions, but I get nothing at all.</div><div><br></div><div>For what it's worth, substituting the following code for the first line does produces some output in rescore_trigram.out, just for a few data files, and badly. If possible, we'd rather avoid reference to recout.mlf – the naive output of the recognizer before the LM is applied.</div><div><br></div><div><div>cat models/mono-nmix2-npass1/recout.mlf | perl -pe 's/rec/lab/g' &gt; models/mono-nmix2-npass1/recout1.mlf</div><div><br></div><div>HVite -A -T 1 -D -I models/mono-nmix2-npass1/recout1.mlf -H models/mono-nmix2-npass1/MMF -S config/dev.crop.filelist.old &nbsp;-p -100.0 -s 0.0 -l lattices -z lat -n 4 config/train.dictionary config/phonelist&nbsp;</div><div><br></div><div><br></div><div>Does anyone see anything wrong with the program as is that might prevent any meaningful output?<br><br>Any help would be greatly appreciated.</div><div><br></div><div>Thanks,</div><div><br>Sam Bowman<br>University of Chicago<br><br></div></div></div></div></div></body></html>