<html><body><div style="color:#000; background-color:#fff; font-family:tahoma, new york, times, serif;font-size:12pt"><div><span><br></span></div><div><br></div><div style="font-family: tahoma, 'new york', times, serif; font-size: 12pt;"><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><div id="yiv995125569"><div><div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: tahoma, 'new york', times, serif; font-size: 12pt;"><div style="font-family: tahoma, 'new york', times, serif; font-size: 12pt;">Dear Mr. Long,</div><div style="font-family:tahoma, 'new york', times, serif;font-size:12pt;" class="yui_3_7_2_20_1361736285853_69"><br></div><div style="font-family:tahoma, 'new york', times, serif;font-size:12pt;" class="yui_3_7_2_20_1361736285853_69">Thanks a lot.</div><div style="font-family:tahoma, 'new york', times, serif;font-size:12pt;" class="yui_3_7_2_20_1361736285853_69"><br></div><div
style="font-family:tahoma, 'new york', times, serif;font-size:12pt;" class="yui_3_7_2_20_1361736285853_69">About your email:</div><div style="font-family:tahoma, 'new york', times, serif;font-size:12pt;" class="yui_3_7_2_20_1361736285853_69"><br></div><div style="font-family: tahoma, 'new york', times, serif; font-size: 12pt;">Do you mean use sphinx 3 like this command using LM.arpa?</div><div style="font-family: tahoma, 'new york', times, serif; font-size: 12pt;"><br></div><div><div class="yiv995125569MsoNormal" style="font-family: tahoma, 'new york', times, serif; font-size: 12pt;">decode -cepdir mfc -ctl file.ctl -hyp out.trn -dict file.dict
-fdict file.filler -lm LM.arpa -hmm HMMpath - test.log</div><div class="yiv995125569MsoNormal" style="font-family: tahoma, 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><br></div><div class="yiv995125569MsoNormal" style="font-family: tahoma, 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;">can do that or need another parameter to support this command for arpa file?</div><div class="yiv995125569MsoNormal" style="font-family: tahoma, 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><br></div><div class="yiv995125569MsoNormal" style="font-family: tahoma, 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;">what I did:</div><div class="yiv995125569MsoNormal" style="font-family: tahoma, 'new
york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><br></div><div class="yiv995125569MsoNormal" style="font-family: tahoma, 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;">1. create LM using srilm order 3 gram<span class="yiv995125569Apple-tab-span" style="white-space:pre;"> </span>2. <span style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;">add-dummy-bows</span><span style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> 3. sort-lm </span></div><div class="yiv995125569MsoNormal" style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><span style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;">4. testing LM in
sphinx 3 as above.</span></div><div class="yiv995125569MsoNormal" style="font-family:'times new roman', 'new
york', times, serif;font-size:12pt;color:rgb(0, 0, 0);background-color:transparent;font-style:normal;"><span style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><br></span></div><div class="yiv995125569MsoNormal" style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><span style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;">but still I have the following problem:</span></div><div class="yiv995125569MsoNormal" style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><span style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><br></span></div><div class="yiv995125569MsoNormal" style="background-color:transparent;">LM is not a DMP file ..... lm_read_advance(LM.arpa,
9.500000e+00, 7.000000e-01,
7.000000e-01 74961 [Arbitrary Fmt], Weighted Apply) failed<br></div><div class="yiv995125569MsoNormal" style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: tahoma, 'new york', times, serif; font-style: normal;"><br></div><div class="yiv995125569MsoNormal" style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: tahoma, 'new york', times, serif; font-style: normal;">Please tell me what is the problem here?</div><div class="yiv995125569MsoNormal" style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: tahoma, 'new york', times, serif; font-style: normal;"><br></div><div class="yiv995125569MsoNormal" style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: tahoma, 'new york', times, serif; font-style: normal;">Thanks and best regards,</div><div class="yiv995125569MsoNormal" style="background-color: transparent; color: rgb(0,
0, 0); font-size: 16px; font-family: tahoma, 'new york', times, serif; font-style: normal;"><br></div><div class="yiv995125569MsoNormal" style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: tahoma, 'new york', times, serif; font-style: normal;">Noor</div><div class="yiv995125569MsoNormal" style="font-family: tahoma, 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><br></div></div> <div style="font-family: tahoma, 'new york', times, serif; font-size: 12pt;"> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1"> <b><span style="font-weight:bold;">From:</span></b> Long Qin <lqin+@cs.cmu.edu><br> <b><span style="font-weight:bold;">To:</span></b> Noor Noor <noor2004noor@ymail.com> <br><b><span style="font-weight:bold;">Cc:</span></b>
"srilm-user@speech.sri.com" <srilm-user@speech.sri.com> <br> <b><span style="
font-weight:bold;">Sent:</span></b> Saturday, 23 February 2013, 21:06<br> <b><span style="font-weight:bold;">Subject:</span></b> Re: [SRILM User List] srilm problem in sphin3<br> </font> </div> <br>Hi Noor,<br><br>You don't have to convert the LM to DMP format. Sphinx3 can directly <br>load ARPA LM in TXT format. But you will still need to run <br>add-dummy-bows to add 0 to ngrams whose back-off weight is zero.<br><br>Sometimes, the bigrams or trigrams are not sorted in the same order as <br>unigram, which may cause an error in Sphinx3. If that happens, you will <br>need to re-sort ngrams in your LM.<br><br>Thanks,<br>Long<br><br>On 2/23/13 11:54 PM, Noor Noor wrote:<br>> Dear Sir,<br>><br>> I have problem in sphinx 3 when I create LM using SRILM tools.<br>><br>> I used<br>><br>> ngram-count -text text1.txt -lm LM<br>><br>> then I try to use<br>><br>> lm_convert (sphinx3 command) to convert the LM to DMP file.<br>> I
get this
error:<br>> Fail to read inputfn LM in inputfmt TXT<br>><br>> Also I try to use<br>><br>> lm3g2dmp also I have the same problem<br>> the error is "line 385: No \data\ mark in LM file"<br>><br>> also I try to use add-dummy-bows<br>> my question is how I can used arpa file that I create it from SRILM<br>> tools in sphinx 3 testing? is that possible or not?<br>> how I can resolve this problem?<br>><br>> Thanks and I look forward to hearing from you as soon as possible<br>><br>> Regards,<br>><br>><br>><br>><br>> _______________________________________________<br>> SRILM-User site list<br>> <a rel="nofollow" ymailto="mailto:SRILM-User@speech.sri.com" target="_blank" href="mailto:SRILM-User@speech.sri.com">SRILM-User@speech.sri.com</a><br>> <a rel="nofollow" target="_blank"
href="http://www.speech.sri.com/mailman/listinfo/srilm-user">http://www.speech.sri.com/mailman/listinfo/srilm-user</a><br>><br><br><br> </div> </div>
</div></div></div><br><br> </div> </div> </div></body></html>