<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt">Hello,<br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div><br>I would like to use the lattice-tool in order to prune lattices using the density-prune function.<br><br>I have lattices in AT&amp;T format, and use the following command to convert AT &amp; T fsm format lattices to PFSG format:<br>
<br>fsm-to-pfsg pfsg_name=New.lat scale=-10000.5 ATTFormat.txt &gt; New.lat<br><br>I am able to print the 1st best path in the lattice without a problem:<br>lattice-tool -in-lattice New.lat -nbest-decode 1 -out-nbest-dir ~/Dirs/<br>
<br>However, when I try to get a pruned lattice using this command:<br><br>lattice-tool -in-lattice New.lat -density-prune 3000 -out-lattice NewPruned.lat<br><br>I get an error "Lattice::prunePosteriors: cannot compute lattice density". Can anyone explain to me what the problem might be.<br>
<br>Regards,<br>Aarthi<br>
</div>
</div><br>

      </div></div>
</div><br>

      </body></html>