Hello, <br><br>On the Sphinx website (<a href="http://cmusphinx.sourceforge.net/html/cmusphinx.php">http://cmusphinx.sourceforge.net/html/cmusphinx.php</a>)&nbsp; there is a tool called&nbsp; lm3g2dmp&nbsp; that converts a 3-gram lm to binary DMP format to use in Sphinx 3 decoder.<br>
<br>The ngram-count doesnt output n-gram in the rigth order for Sphinx&#39;s lm3g2dmp utility. You will need to resort the lm somehow.<br><br>sort-lm could do that but I used a script written by <a href="mailto:fuegen@ira.uka.de">fuegen@ira.uka.de</a> to convert before passing to lm3g2dmp.<br>
<br>if you could not find this script on the net, please e-mail me.<br><br>Best, <br><br>Sopheap<br><br><br><br><div class="gmail_quote">On Tue, Apr 15, 2008 at 9:24 PM, Andreas Stolcke &lt;<a href="mailto:stolcke@speech.sri.com" target="_blank">stolcke@speech.sri.com</a>&gt; wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Christian Schrumpf wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Dear Mr. Stolcke,<br>
&nbsp;how can I convert an n-gram lm prduced with the ngram-count program of SRILM to a lm I can use in Sphinx 3?<br>
Thank you in advance.<br>
</blockquote>
I understand Sphinx LMs require the N-grams to be sorted in a certain way.<br>
The &quot;sort-lm&quot; command described in the lm-scripts man page was made for this reason.<br>
<br>
If you google &quot;srilm sphinx&quot; you will find several mentions of apparently successful use of SRILM in combination with Sphinx.<br><font color="#888888">
<br>
Andreas<br>
<br>
<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>---------------------------------------------<br>Sopheap SENG<br><br>Laboratoire d&#39;Informatique de Grenoble (LIG)<br>Equipe GETALP Bureau C118 <br>220, avenue de la Chimie<br>

Campus Scientifique, BP53<br>38041 GRENOBLE Cedex 9, FRANCE<br>Tél : (33)-4-76-63-55-81 <br>Télécopie : (33)-4-76-63-55-52<br>Courriel : sopheap.seng@imag.f<br>URL : <a href="http://www-geod.imag.fr" target="_blank">http://www-geod.imag.fr</a><br>

---------------------------------------------<br>Enseignant<br>Institut de Technologie du Cambodge<br>BP 86, Bd de Pochentong<br>Phnom Penh - Cambodge<br>Tél : (855)-23-88-03-70/98-24-45<br>Télécopie : (855)-23-88-03-69<br>

Courriel : <a href="mailto:sopheap.seng@itc.edu.kh" target="_blank">sopheap.seng@itc.edu.kh</a><br>URL : <a href="http://www.itc.edu.kh" target="_blank">http://www.itc.edu.kh</a><br>---------------------------------------------