<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix"><br>
The error message says there is no way to write the interpolated
model to a single model file. But wherever you would apply
(evaluate) the interpolated LM with SRILM, you can just use the
same options<br>
<br>
-bayes 0 -lm LM1Class_Based.lm -mix-lm LM2tri.lm -classes
output.classes <br>
<br>
to reconstruct the interpolated model.<br>
<br>
If your goal is to "convert" the interpolated LM into a standard
word-based ngram model, you can try to first expand the
class-based LM into a word-based LM:<br>
<br>
ngram -lm LM1Class_Based.lm -classes output.classes
-expand-classes K -write-lm LM1Class-EXPANDED.lm <br>
<br>
K is the maximal length of ngrams that are allowed to result from
expanding the class tokens. This is an approximation, and can
blow up the model size combinatorially, so check the perplexity
after expansion. If it looks reasonable you can then interpolate
the expanded LM with your other LM without using the -bayes
option.<br>
<br>
Andreas<br>
<br>
<br>
On 8/14/2017 10:35 AM, Tiba Zaki Abdulhameed Abdulhameed wrote:<br>
</div>
<blockquote type="cite"
cite="mid:MWHPR08MB34215B8E146D2DD1F8C102AB948C0@MWHPR08MB3421.namprd08.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper"
style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;"
dir="ltr">
<div>
<div>Hi,<br>
Hope this email finds you well.<br>
Please I need help. I need to do interpolated LM.<br>
</div>
my command line <br>
<p><span>ngram -unk -bayes 0 -lm LM1Class_Based.lm -mix-lm
LM2tri.lm -classes output.classes -write-lm
LM3Interpolated.lm -ppl data/test</span></p>
<p><span>I have error</span></p>
write() method not implemented<br>
error writing LM3Interpolated.lm<br>
I can't remove -bayes because I have read that to mix
different type of LM we need it to be dynamic<br>
So what is the best way to do so? please I really appreciate
your advice. the documentations are not clearly identify this
issue<br>
<br>
Best Regards<br>
Tiba<br>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SRILM-User site list
<a class="moz-txt-link-abbreviated" href="mailto:SRILM-User@speech.sri.com">SRILM-User@speech.sri.com</a>
<a class="moz-txt-link-freetext" href="http://mailman.speech.sri.com/cgi-bin/mailman/listinfo/srilm-user">http://mailman.speech.sri.com/cgi-bin/mailman/listinfo/srilm-user</a></pre>
</blockquote>
<p><br>
</p>
</body>
</html>